First time using 1P CLI (0.5.4) - why is this so slow?


I've just heard of 1P CLI and it sounds like it could resolve major pains for me, so thanks for making it!

However, I'm experiencing serious slowness: I timed op list items at 3.9 seconds (real), op get item <blah> at 4.4 seconds (real). For my use case, I would need this to be closer to 100-200ms at most. Is there a reason for this slowness? Is it specific to me or is everyone dealing with these speeds?

Thanks Ahead!

1Password Version: 0.5.4 (CLI)
Extension Version: Not Provided
OS Version: 10.14.1 Beta (18B50c)
Sync Type: Not Provided


  • cohixcohix

    Team Member

    @motak Thanks for writing in. This is indeed something we've seen from several users.

    This is something we're actively working on, keep an eye out for upcoming releases.

  • This is something we're actively working on, keep an eye out for upcoming releases.

    I've seen this response on several threads; is there an op announcement mailing list or RSS feed or anything like that I could sign up for to be notified of new releases? Thanks!

  • cohixcohix

    Team Member


    We do not have a mailing list at this time.

  • I'm using version 0.5.7 and it is still SUPER slow, a simple get item requires 30s to complete. btw. my all vaults contains 2000 items. Will it be faster if I specific the vault?

    λ date; .\op.exe get item 'gqw2xx4uxq***************; date
    Mon Jul 15 17:56:02 CST 2019

    Mon Jul 15 17:56:34 CST 2019

  • cohixcohix

    Team Member

    @tangyouze yes, adding the --vault flag will indeed speed that up a bit.

    We have identified the performance bottlenecks and we have a plan to address them, it's just a matter of getting the bandwidth to implement those plans, which is proving difficult at the moment, but I promise we have not forgotten about this.

  • ARM77ARM77
    edited November 21

    Any progress on this issue? I'm using 1P to get credentials ("op get item") and it takes at least one second per credential:

    $ time ./ 3
    real 0m3.176s
    $ op --version

  • felix_1pfelix_1p

    Team Member

    @ARM77 , how are you fetching the item? If you regularly fetch a specific item (e.g. in a script) I suggest to fetch the item by UUID. That should be the fasted way.

  • @felix_1p - It's only a marginal improvement. Database access (which is what 1Password is essentially) should be much faster:

    $ echo $NAME : $UUID
    DockerHub : wsdfnr73tzekdslkdtrb7h2kxyae

    $ time op get item $NAME --vault=$VAULT > /dev/null

    real 0m1.139s
    user 0m0.112s
    sys 0m0.049s

    $ time op get item $UUID --vault=$VAULT > /dev/null

    real 0m0.973s
    user 0m0.111s
    sys 0m0.049s

  • cohixcohix

    Team Member

    @ARM77 have you updated to the 0.8 release yet?

  • $ op --version

  • felix_1pfelix_1p

    Team Member

    @ARM77, thank you for the numbers! I will do some investigating but there is also a limit to our ability to improve performance here. While you are right that it's basically a database lookup, there are a number of things happening:

    Fetching an item by UUID is more effective compared to fetching by name if you have many items in your vault.

Leave a Comment

BoldItalicStrikethroughOrdered listUnordered list
Align leftAlign centerAlign rightToggle HTML viewToggle full pageToggle lights
Drop image/file