direnv
brew install direnv
v2.37.1
MIT
Shell utility that auto-loads/unloads environment variables based on the current directory.
Why you might care
Keeps project-specific env vars (secrets, tool versions, PATH overrides) in .envrc files instead of cluttering your shell profile. Integrates seamlessly with any POSIX shell and supports directives for Ruby, Node, Python, and more. Essential for multi-project workflows where different projects need conflicting env setups.
10.0k
30-day installs · #355
33.5k
90-day · #365
149.0k
365-day · #334
Runtime dependencies
Build dependencies
Links
- https://direnv.net/
- Brew formula source: Formula/d/direnv.rb
Blurb generated by claude-haiku-4-5 on today.
Raw metadata
{
"aliases": [],
"alternatives": [
"nix",
"direnv-alternatives"
],
"build_dependencies": [
"go"
],
"categories": [
"shell",
"sysadmin"
],
"caveats": null,
"conflicts_with": [],
"dependencies": [
"bash"
],
"deprecated": 0,
"deprecation_reason": null,
"desc": "Load/unload environment variables based on $PWD",
"disable_reason": null,
"disabled": 0,
"enrichment_fetched_at": "2026-06-20T23:36:58+00:00",
"first_seen": "2026-06-20T23:34:18+00:00",
"full_name": "direnv",
"github_default_branch": null,
"github_last_commit_at": null,
"github_readme_excerpt": null,
"github_repo": null,
"github_stars": null,
"github_topics": [],
"homepage": "https://direnv.net/",
"homepage_og_description": "unclutter your .profile",
"homepage_og_image": null,
"homepage_title": "direnv \u2013 unclutter your .profile | direnv",
"installs_30d": 9997,
"installs_365d": 148981,
"installs_90d": 33498,
"keg_only": 0,
"keg_only_reason": null,
"last_seen": "2026-06-20T23:34:18+00:00",
"license": "MIT",
"llm_generated_at": "2026-06-20T23:44:21+00:00",
"llm_model": "claude-haiku-4-5",
"name": "direnv",
"oldnames": [],
"one_liner": "Shell utility that auto-loads/unloads environment variables based on the current directory.",
"optional_dependencies": [],
"rank_30d": 355,
"rank_365d": 334,
"rank_90d": 365,
"raw_hash": "4c65818a68c873c6",
"recommended_dependencies": [],
"revision": 0,
"ruby_source_path": "Formula/d/direnv.rb",
"tap": "homebrew/core",
"test_dependencies": [],
"uses_from_macos": [],
"version_head": "HEAD",
"version_stable": "2.37.1",
"versioned_formulae": [],
"why_use_this": "Keeps project-specific env vars (secrets, tool versions, PATH overrides) in .envrc files instead of cluttering your shell profile. Integrates seamlessly with any POSIX shell and supports directives for Ruby, Node, Python, and more. Essential for multi-project workflows where different projects need conflicting env setups."
}