talira

Compare

dotenvdotenvxdirenv
What it isLoad environment variables from a .env file into process.env in Node.jsA secure dotenv, from the creator of dotenvunclutter your .profile
KindOpen sourceOpen coreOpen source
Trust0.720.720.64
Stars20575589215565
Last commit2026-11-092026-11-262026-10-12
LicenceBSD-2-ClauseBSD-3-ClauseMIT
PricingFree and open sourceFree tier, from $5/monthFree and open source
Free tierYesYesYes
Self-hostable—Yes—
Ways to run it—
  • dotenvx (open source) (self-hosted, BSD-3-Clause): free
    You arrange: somewhere safe for the private keys
  • Dotenvx Armor: Member $5/month, Business $90/month
—
SOC 2———
HIPAA———
SSO———
API—YesNo
Plugins—NoNo
MCP server——No
CompanyScott MotteDotenvx—
Features
  • Loads .env files into process.env with no dependencies
  • dotenv run CLI loads env files and runs a command
  • Multiple files, with override and precedence options
  • Multiline values and comments
  • Parse and populate functions for custom loading
  • encrypt .env values with secp256k1
  • run any command with decrypted env vars injected
  • separate files and keys per environment
  • keys in .env.keys, OS keychains, 1Password or Bitwarden
  • leak prevention for plaintext secrets
  • SDKs for Node.js, Python, Ruby, Rust and PHP
  • Armor managed key custody (paid)
  • human approvals and audit logs (Armor)
  • .envrc per directory
  • authorization of env files
  • optional .env loading
  • stdlib helpers
  • many shells supported
  • .envrc loading/unloading
  • explicit allow for security
  • optional .env support
  • All 9 features
Limitations
  • Variable expansion, command substitution and encryption aren't built in: its makers point to dotenvx for those