Forum Discussion

daniels's avatar
daniels
New Contributor
24 days ago

Reference for Private vault copied from GUI doesn't work in CLI

I use the `op` cli with a personal/family account. When I right click a password/key in the GUI in my Private account and selects "Copy Secret Reference", the reference starts with "op://Private". If I tried to read the reference using `op read` it fails with 

[ERROR] 2025/08/08 15:24:36 could not read secret op://Private/{Item}/{Field}: could not get item Private/{Item}: "Private" isn't a vault in this account. Specify the vault with its ID or name.

So I have to replace the vault segment it with "Personal" or the vault reference hash to make it work with `op`. This is really inconvenient.

Why is this happening? Is there anything I can do to fix it? (The "Private" vault can't be renamed.)

2 Replies

  • Hi daniels​ ,

    Sorry for the delay, for your setup.  Do you have more than 1 1Password accounts on this machine?  Also one thing you can try is "op signin" to make sure that the CLI is pointing to your 1Password account.

    Thanks!
    Phil

    • daniels's avatar
      daniels
      New Contributor

      Thanks for the reply, Phil!

      There is only one account. It was originally a personal account but I upgraded it to a family account a few years ago.

      I’ve now tried `op signin` and the problem persists after this.

      Which side (GUI/CLI) is it that handles this wrong? I.e. what is the actual name of my vault, and how can I tell? (I guess it may be a problem of two truths.)

      Kind regards

      /Daniel