direnv/direnv
unclutter your .profile observed · 2026-10-12
Health v2 · maintenance only
95/100
- Activity 99
- Release rhythm 87
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-10-21. Adoption (stars, forks) is never an input.
- gap_med: 50.0
- age_days: 5768
- days_rel: 10
- days_push: 10
- n_releases_24m: 5
Adoption not part of the score
15498 stars · 823 forks observed · 2026-10-12
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-10-12 · f27f794e8611
- homepage: http://direnv.net · fetched 2026-10-19 · 2375fd5783f6
- site_page: https://direnv.net/docs/installation.html · fetched 2026-10-19 · c500c015986e
- site_page: https://direnv.net/docs/hook.html · fetched 2026-10-19 · 0adef5a80099
- site_page: https://direnv.net/docs/development.html · fetched 2026-10-19 · a14eac880471
- site_page: https://direnv.net/docs/ruby.html · fetched 2026-10-19 · ceb7e4e836c4
- site_page: https://direnv.net/docs/github-actions.html · fetched 2026-10-19 · 1c6b2bdc65b7
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| direnv/direnv | main | 95 |
For agents
Data as of 2026-10-19T08:05:51.212177+00:00 · Report a problem