Environments Beta
Environments simplify management of environment variables and secrets within 1Password. Each environment operates independently, so you can separate secrets across different projects, stages, or applications.
Use Environments to keep your sensitive environment variables secure as part of your personal workflow or in shared environments across your team.
Requirements
Before you can use Environments, you'll need to:
- Sign up for 1Password.
- Install and sign in to 1Password for Mac, Windows, or Linux.
This feature is not available in 1Password for iOS or Android. - Have 1Password Developer turned on.
Turn on 1Password Developer
- 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 experience.
Create an environment
- In the 1Password desktop app, go to Developer > View Environments.
- Select New environment.
- Enter a name for the new environment, then select Save. If you have multiple 1Password accounts, you can select which account to save the environment to.
Manage an environment
If you want to rename or remove an environment, select Manage Environment from within that environment. Choose Rename environment or Delete environment as needed.
Deleted environments cannot be restored and any associated integrations will stop working. 1Password will prompt you to confirm whether or not you want to delete your environment before proceeding.
Add or remove users to an environment
If you're using a shared account, such as for a team or business, you can share environments with team members. Each environment remains independant, allowing you to work across multiple environments in different accounts while keeping environment variables separate. Access must be granted for each environment.
- From your environment, select Manage environment > Manage access.
- Select Add People, then search for and select the user you want to add to the environment. Select Next.
- Select View & Edit, and choose whether the user can view, edit, and or manage the environment.
- To remove a user from an environment, return to that user on the "Manage access" screen and select Remove from environment.
Add variables
Variables are where key-pairs are stored within 1Password Environments. From the Environments screen, select View environment for the environment you want to add variables for.
-
If you have an existing
.env
file with the variable information you want to add to the Environment, select Import.env file. The information will automatically fill into the correct fields. -
To manually add environment variables, select New variable. Enter your key-value pair information to the Name and Value fields.
Select New variable to add additional key-value pairs to the same environment.
Values are hidden by default, but you can toggle the visibility on or off in the Actions column. You can also delete variables from this column. Select Edit within the environment to add, edit, or delete variables at a later time.
After you've added variables to an environment, you can use the Action column on the Variables screen within your environment to quickly copy your values without revealing them. Or, you can choose to reveal them.
Destinations
Destinations are where you can use your environments. Right now, you can sync environment variables to AWS Secrets Manager.
You can view, add, or edit destinations from the Destination tab within your environment. You might also need to configure settings within your destination.