- Seamlessly sign to the 1Password accounts you’ve added to the app in your terminal.
- Authenticate 1Password CLI the same way you unlock your device, like with your fingerprint, face, Apple Watch, Windows Hello PIN, or device user password.
- Track recent 1Password CLI activity from your 1Password app.
Requirements
- Mac
- Windows
- Linux
Set up the app integration
Step 1: Turn on the app integration
- Mac
- Windows
- Linux
- Open and unlock the 1Password app.
- Select your account or collection at the top of the sidebar.
- Navigate to Settings > Developer.
- Select Integrate with 1Password CLI.
- If you want to authenticate 1Password CLI with your fingerprint, turn on Touch ID in the app.
Step 2: Enter any command to sign in
If you have multiple accounts
If you’ve added multiple 1Password accounts to your desktop app, you can useop signin to select an account to sign in to with 1Password CLI. Use the arrow keys to choose from the list of all accounts added to your 1Password app.
You can also select an account on a per-command basis using the --account flag with your account’s sign-in address or ID.
OP_ACCOUNT environment variable to your account’s sign-in address or ID.
Optional: Remove previously added account details
If you previously added an account to 1Password CLI manually and now want to exclusively use the 1Password app to sign in, you can remove your account details from your configuration file. Your configuration file is in one of the following locations:~/.op/config~/.config/op/config~/.config/.op/config
Optional: Set the biometric unlock environment variable
You can use theOP_BIOMETRIC_UNLOCK_ENABLED environment variable to temporarily toggle the app integration on or off.
- Bash, Zsh, sh
- fish
- PowerShell
To turn on the integration:To turn off the integration:
Track 1Password CLI activity
You can track 1Password CLI activity authenticated with the 1Password app, including the command, when it was run, the application where it was run, and the name of the account accessed.To see your 1Password CLI activity log:
- Open and unlock the 1Password desktop app.
- Select your account or collection at the top of the sidebar and choose Settings > Developer.
- Turn on Show 1Password Developer in Sidebar.
- Close the settings window, then select Developer in the sidebar.
- Select View CLI.

Troubleshooting
If op signin doesn’t list your account
op signin returns a list of all accounts you’ve added to the 1Password desktop app. To sign in to 1Password CLI with a new 1Password account, you’ll need to add the account to the app.
If you see a connection error
If you see aconnectionreset error, or an error that 1Password CLI couldn’t connect to the 1Password desktop app, try the following:
- Mac
- Windows
- Linux
Open System Settings > General > Login Items and make sure Allow in background is turned on for 1Password.
If you still see an error, try the following:
If you still see an error, try the following:
- Make sure you’re using the latest version of the 1Password desktop app.
- Restart the app.
/usr/local/bin/ directory.LostConnectionToApp error when you try to authenticate:
- Mac
- Windows
- Linux
Make sure the option to keep 1Password in the menu bar is turned on:
- Open and unlock the 1Password desktop app.
- Select your account or collection at the top of the sidebar.
- Select Settings > General.
- Make sure “Keep 1Password in the menu bar” is selected.
If you aren’t prompted to authenticate with your preferred method
If you’ve turned on the app integration, but aren’t prompted to sign in to 1Password CLI with your expected authentication method:- Mac
- Windows
- Linux
Make sure you’ve set up Touch ID or an Apple Watch to unlock 1Password on your Mac.