whatisgithub

What is direnv-vscode?

direnv/direnv-vscode — explained in plain English

Analysis updated 2026-07-17 · repo last pushed 2024-12-04

250TypeScriptAudience · developerComplexity · 2/5StaleSetup · moderate

In one sentence

A VS Code extension that automatically loads per-project environment variables (from a .envrc file) into the editor's terminal, tasks, and settings.

Mindmap

mindmap
  root((repo))
    What it does
      Loads envrc files
      Syncs env vars
      Works in terminal
      Works in tasks
    Tech stack
      TypeScript
      VS Code API
      direnv CLI
    Use cases
      Switch project configs
      Share team setup
      Manage API keys
      Match shell environment
    Audience
      Multi project devs
      Teams with envrc
      Direnv shell users
    Setup
      Requires direnv installed
      Approve envrc first
      Status indicator shown

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

What do people build with it?

USE CASE 1

Automatically load the right Node, Python, or other runtime version when opening a project folder.

USE CASE 2

Keep API keys and secrets available in VS Code without hardcoding them.

USE CASE 3

Give a team a shared .envrc so everyone's editor environment matches automatically.

USE CASE 4

Sync environment variables across VS Code's terminal, tasks, and variable substitutions.

What is it built with?

TypeScriptVS Code APIdirenv

How does it compare?

direnv/direnv-vscoderasoir0591/crosshair-xshinyatomitsuka/arbitrage-trading-bot
Stars250251251
LanguageTypeScriptTypeScriptTypeScript
Last pushed2024-12-04
MaintenanceStale
Setup difficultymoderateeasymoderate
Complexity2/51/54/5
Audiencedevelopergeneraldeveloper

Figures from each repo's GitHub metadata at analysis time.

How do you get it running?

Difficulty · moderate Time to first run · 30min

Requires direnv itself to be installed separately, outside the VS Code extension.

Not specified in the explanation.

Copy-paste prompts

Prompt 1
Help me write a .envrc file for a Node.js project that sets NODE_ENV and loads a .env file.
Prompt 2
Explain how to structure .envrc files for a monorepo with different environments per subfolder.
Prompt 3
Write a .envrc that exports API keys from a local secrets file without committing them to git.
Prompt 4
Show me how to approve and reload a .envrc file in VS Code using this extension's commands.
Prompt 5
Debug why VS Code's terminal isn't picking up the environment variables from my .envrc file.

Frequently asked questions

What is direnv-vscode?

A VS Code extension that automatically loads per-project environment variables (from a .envrc file) into the editor's terminal, tasks, and settings.

What language is direnv-vscode written in?

Mainly TypeScript. The stack also includes TypeScript, VS Code API, direnv.

Is direnv-vscode actively maintained?

Stale — no commits in 1-2 years (last push 2024-12-04).

What license does direnv-vscode use?

Not specified in the explanation.

How hard is direnv-vscode to set up?

Setup difficulty is rated moderate, with roughly 30min to a first successful run.

Who is direnv-vscode for?

Mainly developer.

Open on GitHub → Ask about another repo

This repo across BitVibe Labs

Verify against the repo before relying on details.