Before you begin
You can authenticate 1Password developer tools in two ways:- Local development: Use the 1Password desktop app for fast setup and human-in-the-loop approval with biometrics.
- Automation and production: Use service accounts for automated workflows with least privilege access.
Step 1: Install the 1Password app
If you haven’t already, sign up for a 1Password account. Then install 1Password for Mac, Windows, or Linux. After you install the app:- Open the 1Password app and select your account or collection at the top of the sidebar.
- Navigate to Settings > Security.
- Turn on the setting to unlock the app using Touch ID, Windows Hello, or Linux system authentication. This allows you to authenticate most developer tools with your fingerprint.
Step 2: Install 1Password CLI
1Password CLI (op) lets you access secrets and manage your account from your terminal and scripts. It’s the fastest way to start experimenting with 1Password developer tools.
To install 1Password CLI, use one of the following package managers, or download the latest release.
- homebrew
- winget
- Open the 1Password app and select your account or collection at the top of the sidebar.
- Navigate to Settings > Developer.
- Select Integrate with 1Password CLI.
op vault list lists all the vaults in the authenticated account.
Step 3: Create an Environment
Environments are like vaults for your developer credentials. You can manage your project’s secrets together in an Environment, then securely load each set of secrets directly from 1Password when you need them. Start by creating an Environment for a specific project or development context, likeiOS App Staging.
- In the 1Password app, select Developer in the sidebar, then select Environments.
- Select New environment, enter a name, and select Save.
- Open the Environment, then select Import .env file to import project secrets from an existing environment file or New secret to add secrets manually.
Step 4: Load your first secret
You can access the project secrets stored in an Environment directly from 1Password using a locally mounted.env file or 1Password CLI.
- Local .env file (Mac, Linux)
- 1Password CLI (all platforms)
A locally mounted 
.env file lets you access your Environment from tools that expect an environment file on disk. The contents of this file aren’t tracked by Git or stored on disk, and are only available at the moment you access it.- In the 1Password app, go to Developer > Environments and open the Environment you created in step 3.
- Under “Connect to”, select the Connect button next to “Local .env file”.
- Select Choose file path and choose the path on your device where you want to create your local
.envfile, then select Mount .env file.
.env file is saved. Then run the following command with the name of your file.
Next steps
You’re set up. Pick what you’re building next:Set up SSH and Git
Store SSH keys in 1Password and approve Git pushes and commit signing with your fingerprint.
Deploy with secrets
Load secrets into CI/CD, containers, and production apps.
Give your AI agent secrets
Give coding agents project secrets without plaintext .env files on disk.
Build an integration
Use the SDKs and APIs to work with 1Password from your code.