1Password CLI Connect Error

· caio's blog


TL;DR: If one of the following errors are happening, it's possible that 1Password Desktop is not open or unlocked.

[ERROR] 2025/04/08 10:35:24 connecting to desktop app: 1Password CLI couldn't connect to the 1Password desktop app. To fix this, update the 1Password app to the latest version and restart the app. If you're still having trouble, visit https://developer.1password.com/docs/cli/app-integration#troubleshooting for more help.%!(EXTRA string=/usr/local/bin/op)

[ERROR] 2025/04/08 10:35:00 authorization prompt dismissed, please try again

I also saw the following error when trying to connect via ssh using 1Password pinentry:

sign_and_send_pubkey: signing failed for RSA "~/.ssh/id_rsa" from agent: agent refused operation

Solution #

In my case, I noticed this was happening because of two things:

Did it work for you? Send me a comment!

last updated: