direnv

CLI

Load and unload environment variables depending on the current directory.

Auto-load .env files when entering a project directory

3 curated recipes · not yet executed by the harness#env#environment#per-project#shell

Recipes

Curated from documentation and usage. Percentages are estimates, not measurements.

Allow .envrc in current directory

~99% est.
direnv allow .

Create a basic .envrc

~97% est.
echo 'export API_KEY=your_key' > .envrc && direnv allow

Edit .envrc

~98% est.
direnv edit .

Install

Homebrewbrew install direnv

Agent notes

When to use
Managing per-project environment variables

Use from an agent

curl -s https://clihub.com/api/tools/direnv | jq '.agentHints.provenRecipes[] | {task, command, verified}'

Or call get_tool with slug direnv on the MCP server at https://clihub.com/mcp.

Homepage ↗Repository ↗MIT0 views