direnv/direnv
unclutter your .profile observed · 2026-08-28
Health v2 · maintenance only
64/100
- Activity 75
- Release rhythm 28
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: 82
- age_days: 5720
- days_rel: 409
- days_push: 155
- n_releases_24m: 4
Adoption not part of the score
15401 stars · 813 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-29, confidence not recorded
direnv is a shell extension that loads and unloads environment variables based on the current directory by evaluating an authorized .envrc (or .env) file. It is a single static Go binary that hooks into bash, zsh, fish, tcsh, and other shells to provide per-project environments without cluttering ~/.profile.
Use cases
- load project-specific environment variables when entering a directory
- manage 12factor app configuration per project
- load deployment secrets into the shell automatically
- create isolated per-project development environments like rbenv or pyenv
- reuse .envrc files in GitHub Actions CI pipelines
- stop duplicating environment setup in ~/.profile
When to choose
- you want directory-scoped environment variables that load and unload automatically
- you need per-project tool versions or secrets without editing your shell profile
- you want one language-agnostic tool shared across bash, zsh, fish, and other shells
- you want consistent env setup between local dev and CI
When to avoid
- you are on a purely Windows workflow without a Unix-like shell
- you need container-level or system-wide environment management rather than per-directory shell env
- your team cannot tolerate an explicit allow-list security step for each .envrc
Facets
cli-tool · maturity stable
configuration-management secrets-management developer-tools cli developer-tools windows cli cross-platform environment-variables shell-extension envrc dotenv per-project-environments shell-hook command-line automation devops linux macos
7 sources
- readme: https://github.com/direnv/direnv · fetched 2026-08-28 · f27f794e8611
- homepage: http://direnv.net · fetched 2026-08-29 · e782d6ca6548
- site_page: https://direnv.net/docs/installation.html · fetched 2026-08-29 · c500c015986e
- site_page: https://direnv.net/docs/hook.html · fetched 2026-08-29 · 25ad0a506a90
- site_page: https://direnv.net/docs/development.html · fetched 2026-08-29 · 4bbfa3bfc47f
- site_page: https://direnv.net/docs/ruby.html · fetched 2026-08-29 · 76544cc0360b
- site_page: https://direnv.net/docs/github-actions.html · fetched 2026-08-29 · 94eb568eb23d
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| direnv/direnv | main | 64 |
For agents
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem