1Password CLI brings 1Password to your terminal
commercial software
1Password CLI (op) lets you use your 1Password vaults from the command line: sign in with biometrics through the desktop app, read and write items, and replace secret references in environment variables and config files with real values at runtime (op run, op inject), so secrets don't sit in plaintext files. Shell plugins let other command-line tools authenticate with credentials kept in 1Password, and admins can script users, groups and vault permissions. Service accounts give scripts and CI access to chosen vaults. It runs on macOS, Windows and Linux and needs a 1Password subscription; it is also part of 1Password's secrets automation offering.
Problems it solves
- stop keeping API keys in plaintext .env files on my laptop
- load secrets from my password manager into environment variables only while a command runs
- fill real secrets into a config file template at deploy time from a shared team vault
- unlock the tokens my command-line tools use with my fingerprint instead of pasting them
- stop third-party CLIs saving my API tokens in plain config files in my home directory
- create and read password vault items from a shell script
- script adding and removing people and groups in our company password manager
- give a CI job access to just one vault of secrets without using a person's account
- generate an SSH key and keep it in my password manager
- secrets my commands print keep ending up in terminal output, logs and AI agent transcripts
Features
- biometric sign-in through the 1Password app
- secret references resolved at runtime (
op run,op inject) - shell plugins that authenticate third-party CLIs, and a way to build your own
- load project secrets from 1Password Environments
- service accounts limited to chosen vaults
- create and retrieve items
- manage users, groups and vault permissions
- generate SSH keys
- installs with Homebrew, winget, APT, YUM/DNF, Alpine apk or by hand
Capabilities
| Has a command line tool | plan not known |
|---|---|
| Takes plugins | plan not known |
Alternatives
The same job
These do what 1Password CLI does.
- Teller Open source universal secret manager for developers, in the terminal
- Doppler Secrets management platform for teams and infrastructure
- Infisical Open-source platform for secrets, certificates and privileged access
- Passlet Short-lived credentials for your agents
- chamber CLI for managing secrets in AWS SSM Parameter Store
- 1Password Secrets Automation Use 1Password to store and deliver secrets to infrastructure, CI and apps
