Alternatives to direnv

Loads and unloads environment variables as you change directory. The listings below can replace it for an important use case. Each note says what changes if you switch.

The original

Replacements

Listings that take over the same core job as direnv.

  • mise

    Keep project tools, environment variables and tasks in one configuration.

    mise keeps environment variables in one project configuration alongside tool versions and tasks, and it also runs on Windows, while direnv covers only macOS and Linux.

  • Devbox

    A command-line tool that creates isolated, reproducible development environments from Nix packages without containers.

    Devbox builds reproducible per-project environments from Nix packages, covering toolchains as well as environment settings, but depends on Nix underneath.

Similar software

Related functionality, not a direct replacement.