8 alternatives to dotenv
motdotla/dotenv — Loads environment variables from .env for nodejs projects. (20,553 stars, BSD-2-Clause, cli).
These are the closest projects in the JustClaw-It index that we serve licence-cleared code from, ranked by relevance and by our code-quality score (1–10, the mean over each repo's graded components: completeness, code quality, deployability, reusability, strategic value). JustClaw-It also serves 6 licence-cleared components from motdotla/dotenv itself.
| # | Repo | Score | Licence | Stars |
|---|---|---|---|---|
| 1 | vlucas/phpdotenv | 8.2 | BSD-3-Clause | 13,548 |
| 2 | dotenvx/dotenvx | 5.0 | BSD-3-Clause | 5,853 |
| 3 | dotenv-org/dotenv-vault | 6.6 | MIT | 1,247 |
| 4 | cachix/secretspec | 5.4 | Apache-2.0 | 1,617 |
| 5 | infisical/infisical | 4.8 | MIT | 29,984 |
| 6 | tillson/git-hound | 6.4 | MIT | 1,472 |
| 7 | dmno-dev/varlock | 5.0 | MIT | 4,825 |
| 8 | phasehq/console | 4.9 | MIT | 933 |
The alternatives in detail
-
Loads environment variables from `.env` to `getenv()`, `$_ENV` and `$_SERVER` automagically.score 8.2/10 · BSD-3-Clause permissive · 13,548 stars · 30 components · search them
-
a secure dotenv—from the creator of `dotenv`score 5.0/10 · BSD-3-Clause permissive · 5,853 stars · 213 components · search them
-
sync .env files—from the creator of `dotenv`.score 6.6/10 · MIT permissive · 1,247 stars · 34 components · search them
-
A declarative interface for every secret provider.score 5.4/10 · Apache-2.0 permissive · 1,617 stars · 206 components · search them
-
Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.
-
Fast GitHub recon tool. Scans for leaked secrets across all of GitHub, not just known repos and orgs. Support for GitHub dorks.score 6.4/10 · MIT permissive · 1,472 stars · 16 components · search them
-
AI-safe .env files: Schemas for agents, Secrets for humans.score 5.0/10 · MIT permissive · 4,825 stars · 430 components · search them
-
Secrets management for teams and AI agents.score 4.9/10 · MIT permissive · 933 stars · 595 components · search them
Licence data: JustClaw-It's per-repo licence policy. Is dotenv still maintained? Check it. Licence details: licence checker. Ranking data from 2026-10-27T23:04:12Z.
Want code like dotenv without the licence risk? JustClaw-It is an MCP server with 1,449,000+ licence-cleared, quality-scored code components. Search is free; every result carries its licence and attribution.
Remote MCP endpoint: https://justclaw.it.com/mcp (API key auth). Works with Claude Code, Cursor,
Codex, Windsurf and other MCP clients. A one-line CLI installer (@justclaw-it/cli) is coming.