Protect what matters – even after you're gone. Make a plan for your digital legacy today.
Forum Discussion
dproATtwilio
2 years agoNew Contributor
Why is the CLI so slow? Any tips?
I like to load various passwords into environment variables in my .zshrc file like so:
export TWILIO_ACCOUNT_SID=$(op --cache --account teamtwilio read "op://private/Twilio Account/username")
However, each read operation seems to take about a second, and so, if I've got 6 reads in the script, then it takes 6 seconds before my shell will load.
Are there plans to improve the speed of the 1Password CLI? In the meantime, have folks found any workarounds or hacks to improve the situation?
I'm on CLI version 2.29.0.
1Password Version: 8.10.40
Extension Version: 8.10.44.34
OS Version: macOS 14.5 (23F79)
Browser: Edge 128.0.2739.67 arm64
2 Replies
- maver1ckNew Contributor
Let's move discussion to:
https://www.1password.community/discussions/developers/op-read-is-pretty-slow-700ms-per-invocation/25907 - maver1ckNew Contributor
Hi 1Password Team,
Is there any solution for this problem ?
On my macbook it's more than 1 second per **CACHED** read.time op read op://vault/OPENAI_API_KEY/password --debug 5:24PM | DEBUG | Session delegation enabled 5:24PM | DEBUG | NM request: NmRequestAccounts 5:24PM | DEBUG | NM response: Success 5:24PM | DEBUG | NM request: NmRequestAccounts 5:24PM | DEBUG | NM response: Success 5:24PM | DEBUG | InitDefaultCache: successfully initialized cache 5:24PM | DEBUG | EncryptedKeysets: Cache hit on keyset 5:24PM | DEBUG | AllVaults: cache hit on vault j2.....................sa 5:24PM | DEBUG | AllVaults: cache hit on vault bg........................ty 5:24PM | DEBUG | AllVaults: cache hit on vaultk7.................ny 5:24PM | DEBUG | VaultItems: cache hit on vault items of vault k7.................ny 5:24PM | DEBUG | VaultItems: cache hit on vault items of vault k7.................ny 5:24PM | DEBUG | Item: VaultItems cache hit for vault k7.................ny - validating staleness using item version 5:24PM | DEBUG | Item: cache hit on item xe...................c474 of vault k7.................ny op read op://vault/OPENAI_API_KEY/password --debug 0.05s user 0.03s system 6% cpu 1.274 total