Watch: Keep my API keys in 1Password, not in plain files | Vovy
Watch Vovy do it on a Mac: "Move my .env secrets into 1Password and load them when I run the app". Vovy sets up the 1Password CLI, moves your secrets into a vault, and swaps your .env values for op:// references that load only at run time.
"Move my .env secrets into 1Password and load them when I run the app"
Vovy sets up the 1Password CLI, moves your secrets into a vault, and swaps your .env values for op:// references that load only at run time.
What happens in the video
- Install the 1Password CLI: Vovy installs the op command with Homebrew and checks it runs. This works alongside the 1Password app you already use.
- Turn on app integration: Vovy opens 1Password Settings, Developer and turns on Integrate with 1Password CLI, so you unlock with Touch ID instead of typing a password.
- Move secrets into a vault: Vovy creates a Dev vault item per project and stores each key there, reading them from your current .env file.
- Swap values for references: Vovy replaces real keys with op://Dev/project/field references, which are safe to share because they are only pointers.
- Run the app with op run: Vovy starts your app with op run --env-file, so secrets are injected only while it runs, and shows a card of every mapped key.
Read the step-by-step guideLoading...