Encrypt your secrets.
Ship them with your code.
Encrypt
$ echo "HELLO=Secret" > .env
$ dotenvx encrypt
◈ encrypted (.env)
Encrypt your secrets in .env files. Only your private key can unlock them.
Commit
HELLO=encrypted:BAgYNmJ3PV9+aajRwCh1Wx...
$ git add .env
$ git commit -m "Add encrypted secrets"
Commit your encrypted .env. Your secrets ship with your code.
Ship
$ dotenvx run -- node index.js
⟐ injected env (2) from .env
Hello Secret
Ship your code and encrypted secrets together. Dotenvx unlocks them at runtime.
Three foundational technologies.
One elegant way to manage secrets.
Dotenvx brings together .env’s simplicity, git’s distribution, and ECIES’ battle-tested encryption, built on the same elliptic curve used by Bitcoin, so your secrets can ship with your code.
Chosen for projects at Google, NASA, AWS, PayPal, CrowdStrike, Supabase, and the Republic of France, with all the features you need.
- Make .env safe to commit
- Password protect your .env file
- Store keys in your OS keychain
- Same on Mac, Linux, and Windows
- Ship the right secrets to each environment
- Runtime leak protection and log redaction
- Catch missing keys before you run
- Protect your team from secret leaks
- Give .env live, computed values
- Pull secrets remotely from places like 1Password
- and more