Automic VaultAutomic Vault

brew

Install direnv with Homebrew, apk, apt, dnf, MacPorts, Nix, pacman, scoop, winget, zypper

Load/unload environment variables based on $PWD. Version 2.37.1 via Homebrew; verified 2026-06-22.

install

Additional install commands

macOS

Homebrewverified · 100%
brew install direnv

local Homebrew formula metadata

MacPortsverified · 94%
sudo port install direnv

MacPorts ports tree · devel/direnv/Portfile · source: api.github.com

Linux

Alpine Linux apkverified · 92%
sudo apk add direnv

Alpine Linux edge package indexes · direnv · source: dl-cdn.alpinelinux.org

Debian aptverified · 92%
sudo apt install direnv

Debian stable package indexes · direnv · source: deb.debian.org

Fedora dnfverified · 92%
sudo dnf install direnv

Fedora Rawhide package metadata · direnv · source: dl.fedoraproject.org

Nixverified · 92%
nix profile install nixpkgs#direnv

nixpkgs package indexes · pkgs/by-name/di/direnv/package.nix · source: api.github.com

Arch Linux pacmanverified · 92%
sudo pacman -S direnv

Arch Linux sync databases · direnv · source: geo.mirror.pkgbuild.com

openSUSE zypperverified · 92%
sudo zypper install direnv

openSUSE Tumbleweed package metadata · direnv · source: download.opensuse.org

Windows

Scoopverified · 92%
scoop install main/direnv

Scoop official bucket manifest trees · bucket/direnv.json · source: api.github.com

Windows Package Managerverified · 92%
winget install --id direnv.direnv -e

Windows Package Manager source index · direnv.direnv · source: cdn.winget.microsoft.com

overview

Package summary

Load/unload environment variables based on $PWD

Commands and aliases

  • direnv

history

Project history and usage

direnv is a shell extension for loading and unloading project-specific environment variables as the current working directory changes.

Project history

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.

Adoption history

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.

How it is used

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.

Why package nerds care

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.

Timeline

  • 2011: GitHub repository created.
  • 2019: direnv.toml manual documents the TOML config file path.
  • 2025: v2.37.1 published on GitHub releases.

Related projects

  • The official README points users toward adjacent tools including Environment Modules, autoenv, zsh-autoenv, asdf, shadowenv, quickenv, and mise.

security posture

Risk level: green

narrow executable package without higher-risk signals.

Risk classifier

green risk · low confidence · appliance

Why

  • narrow executable package without higher-risk signals

Signals

  • metadata:no-higher-risk-signals

Install behavior

  • No Homebrew post-install hook is recorded in formula metadata.
  • Homebrew bottle metadata is available for 8 platform targets.
  • Installs with 1 runtime dependencies.
  • Build metadata lists 1 build dependencies.

Recommended review

Before unattended agent use, check whether the tool reads plaintext credentials, writes remote state, publishes artifacts, or shells out to plugins.

local files

Configuration and credential file locations

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.

Configuration files

Config paths the tool may read or write during local use.

Unix
$XDG_CONFIG_HOME/direnv/direnv.toml~/.config/direnv/direnv.toml~/.config/direnv/direnvrc.envrc

executables

Installed executables

CommandKindExposureNote
direnvcliglobal executable

freshness

Version and 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.

page generated2026-07-08
manager version2.37.1
manager updated2026-06-22
local dataok
upstreamcurrent
latest detectedv2.37.1

https://github.com/direnv/direnv

  • okNo freshness warnings were generated.

install metadata

Package metadata

Package keybrew:direnv
Version2.37.1
Package managerHomebrew
Package manager pagehttps://formulae.brew.sh/formula/direnv
Homepagehttps://direnv.net/
Repositoryhttps://github.com/direnv/direnv
Upstream docshttps://direnv.net/docs
LicenseMIT
Source archivehttps://github.com/direnv/direnv/archive/refs/tags/v2.37.1.tar.gz
Last updated2026-06-22T14:03:09-07:00
Pulseupdated
Dependenciesbash
Build dependenciesgo
Bottleavailable (on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, arm64_ventura, sonoma, ventura, x86_64_linux)
Homebrew post-installnot defined
Servicenone declared

registry facts

Source database details

Source DatabaseHomebrew formula API
Taphomebrew/core
Full Namedirenv
Version Scheme0
Revision0
Head VersionHEAD
Bottle Stable Root URLhttps://ghcr.io/v2/homebrew/core
Deprecatedno
Disabledno
Keg Onlyno
URL Keys
  • head
  • stable

source database matches

Other package-manager records

Matches are pulled from external package-manager indexes and kept separate from local Automic Vault package links.

Debian apt95%

direnv 2.32.1-2+b16

Utility to set directory specific environment variables

http://direnv.net/

sudo apt install direnv
  • Section: utils
  • Architecture: amd64
  • Source Package: direnv
  • 1 dependencies
  • normalized package name match
  • Matched by: Direnv
Debian stable package indexes · deb.debian.org · Debian stable package indexes: direnv from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Nix95%

direnv

nix profile install nixpkgs#direnv
  • normalized package name match
  • Matched by: Direnv
nixpkgs package indexes · api.github.com · nixpkgs package indexes: pkgs/by-name/di/direnv/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
Ubuntu apt95%

direnv 2.32.1-2build1

Utility to set directory specific environment variables

http://direnv.net/

sudo apt install direnv
  • Section: universe/utils
  • Architecture: amd64
  • 1 dependencies
  • normalized package name match
  • Matched by: Direnv
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: direnv from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
apk95%

direnv 2.37.1-r7

Environment variable switcher for the shell

https://direnv.net

sudo apk add direnv
  • License: MIT
  • Architecture: x86_64
  • Source Package: direnv
  • 1 dependencies
  • 1 provides
  • normalized package name match
  • Matched by: Direnv
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: direnv from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
apk95%

direnv-doc 2.37.1-r7

Environment variable switcher for the shell (documentation)

https://direnv.net

sudo apk add direnv-doc
  • License: MIT
  • Architecture: x86_64
  • Source Package: direnv
  • normalized package name match
  • Matched by: Direnv
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: direnv-doc from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
apk95%

direnv-fish 2.37.1-r7

configuration hooks for fish

https://direnv.net

sudo apk add direnv-fish
  • License: MIT
  • Architecture: x86_64
  • Source Package: direnv
  • 1 dependencies
  • normalized package name match
  • Matched by: Direnv
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: direnv-fish from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
dnf95%

direnv 2.37.1-6.fc44

Per-directory shell configuration tool

https://github.com/direnv/direnv

sudo dnf install direnv
  • License: BSD-3-Clause AND MIT
  • Category: Unspecified
  • Architecture: x86_64
  • Source Package: direnv
  • 3 dependencies
  • 2 provides
  • normalized package name match
  • Matched by: Direnv
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: direnv from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst
pacman95%

direnv 2.37.1-1

A shell extension that manages your environment

https://direnv.net

sudo pacman -S direnv
  • License: MIT
  • Architecture: x86_64
  • 1 dependencies
  • normalized package name match
  • Matched by: Direnv
Arch Linux sync databases · geo.mirror.pkgbuild.com · Arch Linux sync databases: direnv from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz
zypper95%

direnv 2.37.1-1.4

Environment switcher for shells

https://direnv.net/

sudo zypper install direnv
  • License: MIT
  • Category: Productivity/File utilities
  • Architecture: x86_64
  • Source Package: direnv
  • 1 dependencies
  • 1 provides
  • normalized package name match
  • Matched by: Direnv
openSUSE Tumbleweed package metadata · download.opensuse.org · openSUSE Tumbleweed package metadata: direnv from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst
zypper95%

direnv-bash-completion 2.37.1-1.4

Bash Completion for direnv

https://direnv.net/

sudo zypper install direnv-bash-completion
  • License: MIT
  • Category: System/Shells
  • Architecture: noarch
  • Source Package: direnv
  • 2 dependencies
  • 1 provides
  • normalized package name match
  • Matched by: Direnv
openSUSE Tumbleweed package metadata · download.opensuse.org · openSUSE Tumbleweed package metadata: direnv-bash-completion from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst
zypper95%

direnv-fish-completion 2.37.1-1.4

Fish Completion for direnv

https://direnv.net/

sudo zypper install direnv-fish-completion
  • License: MIT
  • Category: System/Shells
  • Architecture: noarch
  • Source Package: direnv
  • 2 dependencies
  • 1 provides
  • normalized package name match
  • Matched by: Direnv
openSUSE Tumbleweed package metadata · download.opensuse.org · openSUSE Tumbleweed package metadata: direnv-fish-completion from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst
zypper95%

direnv-zsh-completion 2.37.1-1.4

Zsh Completion for direnv

https://direnv.net/

sudo zypper install direnv-zsh-completion
  • License: MIT
  • Category: System/Shells
  • Architecture: noarch
  • Source Package: direnv
  • 2 dependencies
  • 1 provides
  • normalized package name match
  • Matched by: Direnv
openSUSE Tumbleweed package metadata · download.opensuse.org · openSUSE Tumbleweed package metadata: direnv-zsh-completion from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst
MacPorts95%

direnv

sudo port install direnv
  • normalized package name match
  • Matched by: Direnv
MacPorts ports tree · api.github.com · MacPorts ports tree: devel/direnv/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1
Scoop95%

main/direnv

scoop install main/direnv
  • normalized package name match
  • Matched by: Direnv
Scoop official bucket manifest trees · api.github.com · Scoop official bucket manifest trees: bucket/direnv.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1
winget95%

direnv.direnv

winget install --id direnv.direnv -e
  • normalized package name match
  • Matched by: Direnv
Windows Package Manager source index · cdn.winget.microsoft.com · Windows Package Manager source index: direnv.direnv from https://cdn.winget.microsoft.com/cache/source.msix

source trail

Generated from repository data

This page is generated by av-web from the private package SQLite artifact built by scripts/generate-pkg-sqlite.py.

Used sources

  • Geiger risk classifier
  • Nucleus package database
  • av.db category and tag curation
  • cross-ecosystem install command graph
  • curated configuration and credential file locations
  • curated package history
  • external package-manager database matches
  • package relationship graph
  • package version freshness
  • package-page enrichment