Loading skill
Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Use dotenvx to run commands with environment variables, manage multiple .env files, expand variables, and encrypt env files for safe commits and CI/CD.
| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-01 | ✗→✓ | ▲ Improved | -27% | 0% |
| case-10 | ✗→✓ | ▲ Improved | 8% | 0% |
| case-20 | ✗→✓ | ▲ Improved | -12% | 0% |
| case-22 | ✓→✗ | ▼ Worse | 10% | 0% |
| case-03 | ✓→✓ | = Same ✓ | 0% | 0% |
Use this skill when users need encrypted env workflows, multi-environment loading, or runtime env injection for any language.
npm install @dotenvx/dotenvxAlternative package managers
yarn add @dotenvx/dotenvx
pnpm add @dotenvx/dotenvx
bun add @dotenvx/dotenvxCreate a .env file in the root of your project:
ini# .env HELLO="Dotenv" OPENAI_API_KEY="your-api-key-goes-here"
Encrypt it.
dotenvx encryptAs early as possible in your application, import and configure dotenvx:
javascript// index.js require('@dotenvx/dotenvx').config() // or import '@dotenvx/dotenvx/config' // for esm console.log(`Hello ${process.env.HELLO}`)
sh$ node index.js ◇ injected env (2) from .env Hello Dotenv
That's it. process.env now has the keys and decrypted values you defined in your .env file.
.env.keys..env files as untrusted input..env artifacts in source control..env secrets should not be exposed.jsrequire('@dotenvx/dotenvx').config() // or: import '@dotenvx/dotenvx/config'
Typical requests:
Response style for agents:
Other measured skills in the registry, with their headline benchmark lift.