AI Agent Hub
Back to plugins
🧩

dsh-env-manager

admin-security Updated 2026.08.19

Run the following command in DeepSeek Harness:

dsh plugin install uckkk/dsh-env-manager

Paste the following prompt into your AI chat to install this plugin:

Run dsh plugin install uckkk/dsh-env-manager in your terminal to install this plugin (source: https://github.com/uckkk/dsh-env-manager); after installation, add dsh-env-manager to dsh.profile.bundles in your profile package.json to activate it.

About this plugin

Maintaining environment variables across a growing codebase is easy to get wrong. A missing key in .env or a stale one left behind can surface at deploy time, and manually grepping every file is tedious. dsh-env-manager turns that routine check into two quick, local tools.

The env_check tool scans your source files for the common reference patterns — process.env.X, process.env["X"], import.meta.env.X, os.environ["X"], os.getenv("X") and similar — then cross-references them against your .env file. The result is a clear two-part list: variables referenced in code but absent from .env, and keys present in .env that no code actually uses. Directories such as node_modules and .git, along with binary and image assets, are skipped automatically so the output stays focused.

The env_example tool covers another recurring pain point: producing a safe .env.example before pushing to a repository. It reads your existing .env, keeps every key name, and replaces each value with a redacted placeholder, yielding a shareable template with zero secrets. The entire plugin is pure Node with no network calls and no external service dependencies — everything runs locally. It fits well with developers who want a fast pre-commit sanity check on their variable coverage, and with small teams that need a consistent, leak-free template across multiple repositories.

Use Cases

  • Run a quick pre-commit check to confirm .env covers every variable referenced in code
  • Prune stale keys from .env that no code path actually uses
  • Generate a sanitized .env.example template for sharing in a public repository

Best For

  • Developers managing many env vars who want a fast pre-commit sanity check
  • Small teams maintaining multiple environment configs with a consistent template
  • Engineers focused on key security who want to prevent accidental .env leaks into repos