All shelves / Mods / Safety
env
By davekiss
env is a Claude Code safety mod by davekiss.
Opens a card when Claude needs a key, so you paste the value into a pane Claude can't read, and holds Claude's reads of .env files and commands that print them.
DrawsHolds a command
Install
The marketplace name is davekiss.
/plugin marketplace add davekiss/mods /plugin install env@davekiss
It runs inside the Claude Code process. The side panel is only what the author's README names. Read the repo before you install, or run claude plugin validate on the plugin folder.
- Version
- 0.5.0
- License
- MIT
- Repo stars
- 5
- Last change
- 2026-10-13
What it can reach
- Draws in the session
- Holds a command
- Runs a command when you press
- Calls another program on this machine
- Reaches the network or an outside service
Needs Claude Code 2.1.287 or newer. Then ask Claude for something that needs a key, or type /env to open the pane. A pane Claude opens on its own needs 144 columns; below that, the card shows in the band above the prompt. The paste field isn't masked, so a value is visible on your screen until you press Enter. Values shorter than 8 characters, booleans, and numbers aren't scrubbed. Only the project root is scanned. Don't paste a secret into the chat box. In the VS Code extension and claude -p, the fence, the scrubber, and the tools still work, but there's no pane.
The marketplace name is davekiss, from davekiss/mods, which points at this repository. The marketplace also holds leaks, ci-light, shot, md, burn, and agentcam. This one installs on its own. Keeping secrets out of the conversation is why this page files it under safety. secret-box opens a masked box when Claude needs a key, writes the key to .env, and gives Claude a placeholder. secret-guard hides API keys and private keys before the model or the transcript sees them, and blocks credential files. This one gives the card the steps to find the value and a link to its page, gives Claude tools to list keys by their shape, generate a secret, copy a value to another worktree or over ssh, push values through hosting CLIs such as vercel, gh, and wrangler after you approve the command, and pull them back, and replaces every env value of 8 characters or more with [env:KEY] in tool results, messages, and prompts. Templates like .env.example stay readable. In the source, the refusals of .env reads come from its tool.call hook.
Demo

What it hooks into
session.startWhen a session startscommand.runWhen you run its slash command/envui.closeWhen its pane closestool.callAround a tool call, where it can hold onemcp__env__listmcp__env__requestmcp__env__generatemcp__env__copymcp__env__removemcp__env__pushmcp__env__pullsession.appendWhen an entry is written to the transcriptsession.sendA Claude Code eventui.renderDraws into the sessionAbovePromptPane
Read from the on() calls in its hook modules. Open its source under Files to check what each one does.
Slash commands 1
/envEdit .env files without showing values to Claude
Files
The author's README and source, 4 files. They load when you open them.
Facts
- Author
- davekiss
- Category
- Safety
- Marketplace
- davekiss
- Repo
- davekiss/env
- Version
- 0.5.0
- License
- MIT
- Repo stars
- 5
- Last change
- 2026-10-13
- Language
- TypeScript
- Files
- 24