direnv

Install command:
brew install direnv

Load/unload environment variables based on $PWD

https://direnv.net/

License: MIT

Development: Pull requests

Formula JSON API: /api/formula/direnv.json

Formula code: direnv.rb on GitHub

Bottle (binary package) installation support provided for:

macOS on
Apple Silicon
golden gate ✅
tahoe ✅
sequoia ✅
Linux ARM64 ✅
x86_64 ✅

Current versions:

stable ✅ 2.38.2
head ⚡️ HEAD

Depends on:

bash 5.3.20 Bourne-Again SHell, a UNIX command interpreter

Depends on when building from source:

go 1.27.3 Open source programming language to build simple/reliable/efficient software

Binaries: direnv

GitHub Packages downloads:

Last 30 days155,310
Downloads3,151,502
Analytics install events (30 days)27,673
Downloads / install events (30 days)5.6×

Source: GitHub Packages, fetched 2026-11-01T00:47:46Z. Analytics dates: 2026-10-02 to 2026-11-01. Totals exclude downloads from Bintray before the migration to GitHub Packages. Downloads and install attempts measure different things; the difference does not count analytics opt-outs. Definitions and limitations.

Analytics:

30 days90 days365 days
Installs27,64542,648141,207
Installs (--HEAD)2846160
Installs on Request27,50242,399140,573
Installs on Request (--HEAD)2846160
Build Errors97