capy run to decrypt .env and pass the plaintext values to your binary. Your code reads env vars the standard way with os.Getenv, with no library to add. Libraries that read the process environment (envconfig, Viper’s AutomaticEnv) work unchanged. Once Capy syncs, .env holds capy:… ciphertext rather than plaintext, so drop godotenv.Load() and anything else that parses .env from disk — capy run is what supplies the real values.
1
Install the CLI
2
Sync your secrets
.env, and rewrites the file with capy:… snippets.3
Run your app
4
Invite a teammate
5
Deploy
What’s next
Running your app
The full story on
capy run.Deploying
Deploy tokens and platform walkthroughs.