macOS
brew install direnvlocal Homebrew formula metadata
sudo port install direnvMacPorts ports tree · devel/direnv/Portfile · source: api.github.com
brew
Load/unload environment variables based on $PWD. Version 2.37.1 via Homebrew; verified 2026-06-22.
install
brew install direnvlocal Homebrew formula metadata
sudo port install direnvMacPorts ports tree · devel/direnv/Portfile · source: api.github.com
sudo apk add direnvAlpine Linux edge package indexes · direnv · source: dl-cdn.alpinelinux.org
sudo apt install direnvDebian stable package indexes · direnv · source: deb.debian.org
sudo dnf install direnvFedora Rawhide package metadata · direnv · source: dl.fedoraproject.org
nix profile install nixpkgs#direnvnixpkgs package indexes · pkgs/by-name/di/direnv/package.nix · source: api.github.com
sudo pacman -S direnvArch Linux sync databases · direnv · source: geo.mirror.pkgbuild.com
sudo zypper install direnvopenSUSE Tumbleweed package metadata · direnv · source: download.opensuse.org
scoop install main/direnvScoop official bucket manifest trees · bucket/direnv.json · source: api.github.com
winget install --id direnv.direnv -eWindows Package Manager source index · direnv.direnv · source: cdn.winget.microsoft.com
overview
Load/unload environment variables based on $PWD
history
direnv is a shell extension for loading and unloading project-specific environment variables as the current working directory changes.
The project frames itself as a way to unclutter shell startup files: instead of putting every export in a global profile, a project can keep an authorized .envrc near its source tree. Its README and man page describe a small, language-agnostic executable that hooks into interactive shells and evaluates environment changes in a subprocess.
Official installation documentation lists packages or install paths for Fedora, Arch Linux, Debian, Gentoo Guru, NetBSD pkgsrc-wip, NixOS, Homebrew, openSUSE, MacPorts, Ubuntu, GNU Guix, and Windows winget. That packaging spread matches direnv's role as cross-language glue for local development environments.
The common workflow is to install direnv, hook it into the user's shell, create a project .envrc, and explicitly allow that file before it is evaluated. The README highlights 12-factor environment variables, isolated development environments, deployment secrets, and integrations with tools such as Nix and language version managers.
Package nerds care about direnv because it solves a small boundary problem cleanly: it lets shells, package managers, language managers, and project repositories cooperate without turning into a full environment manager.
security posture
narrow executable package without higher-risk signals.
green risk · low confidence · appliance
Before unattended agent use, check whether the tool reads plaintext credentials, writes remote state, publishes artifacts, or shells out to plugins.
local files
These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.
Config paths the tool may read or write during local use.
$XDG_CONFIG_HOME/direnv/direnv.toml~/.config/direnv/direnv.toml~/.config/direnv/direnvrc.envrcexecutables
| Command | Kind | Exposure | Note |
|---|---|---|---|
direnv | cli | global executable |
freshness
These signals separate page generation age, package-manager activity, and upstream release comparison. Version lag is warned only when an evidence URL and comparable versions are present.
https://github.com/direnv/direnv
install metadata
| Package key | brew:direnv |
|---|---|
| Version | 2.37.1 |
| Package manager | Homebrew |
| Package manager page | https://formulae.brew.sh/formula/direnv |
| Homepage | https://direnv.net/ |
| Repository | https://github.com/direnv/direnv |
| Upstream docs | https://direnv.net/docs |
| License | MIT |
| Source archive | https://github.com/direnv/direnv/archive/refs/tags/v2.37.1.tar.gz |
| Last updated | 2026-06-22T14:03:09-07:00 |
| Pulse | updated |
| Dependencies | bash |
| Build dependencies | go |
| Bottle | available (on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, arm64_ventura, sonoma, ventura, x86_64_linux) |
| Homebrew post-install | not defined |
| Service | none declared |
registry facts
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | direnv |
| Version Scheme | 0 |
| Revision | 0 |
| Head Version | HEAD |
| Bottle Stable Root URL | https://ghcr.io/v2/homebrew/core |
| Deprecated | no |
| Disabled | no |
| Keg Only | no |
| URL Keys |
|
source database matches
Matches are pulled from external package-manager indexes and kept separate from local Automic Vault package links.
direnv 2.32.1-2+b16
Utility to set directory specific environment variables
sudo apt install direnvdirenv
nix profile install nixpkgs#direnvdirenv 2.32.1-2build1
Utility to set directory specific environment variables
sudo apt install direnvdirenv 2.37.1-r7
Environment variable switcher for the shell
sudo apk add direnvdirenv-doc 2.37.1-r7
Environment variable switcher for the shell (documentation)
sudo apk add direnv-docdirenv-fish 2.37.1-r7
configuration hooks for fish
sudo apk add direnv-fishdirenv 2.37.1-6.fc44
Per-directory shell configuration tool
https://github.com/direnv/direnv
sudo dnf install direnvdirenv 2.37.1-1
A shell extension that manages your environment
sudo pacman -S direnvdirenv 2.37.1-1.4
Environment switcher for shells
sudo zypper install direnvdirenv-bash-completion 2.37.1-1.4
Bash Completion for direnv
sudo zypper install direnv-bash-completiondirenv-fish-completion 2.37.1-1.4
Fish Completion for direnv
sudo zypper install direnv-fish-completiondirenv-zsh-completion 2.37.1-1.4
Zsh Completion for direnv
sudo zypper install direnv-zsh-completiondirenv
sudo port install direnvmain/direnv
scoop install main/direnvdirenv.direnv
winget install --id direnv.direnv -esource trail
This page is generated by av-web from the private package SQLite artifact built by scripts/generate-pkg-sqlite.py.
View the package source record on GitHub.