ClaudeCodeMod

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.

In Claude Code
/plugin marketplace add davekiss/mods
/plugin install env@davekiss
Open the repo

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

The opening of the env README: Claude sets up your secrets and never sees them, the problem it solves, and an example card, Claude needs a value, asking for CLOUDFLARE_ACCOUNT_ID for .env with the reason, three steps to find it, a link to the dashboard, what the value looks like, a paste field with save, and skip for now.
Screenshot of the author's GitHub page.

What it hooks into

  • session.startWhen a session starts
  • command.runWhen you run its slash command/env
  • ui.closeWhen its pane closes
  • tool.callAround a tool call, where it can hold onemcp__env__listmcp__env__requestmcp__env__generatemcp__env__copymcp__env__removemcp__env__pushmcp__env__pull
  • session.appendWhen an entry is written to the transcript
  • session.sendA Claude Code event
  • ui.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

Other mods in Safety

model-allowlisterikdarlingdataHolds a commandRefuses a subagent spawn that pins a model id instead of a tier alias such as opus or sonnet, and holds spawns to model rules you write per agent type.ruflo-browserruvnetHolds a commandRefuses ruflo browser opens of file, javascript, data, or chrome URLs, credentialed or cloud-metadata hosts, unsafe Chrome flags, and cookie-reading scripts.ruflo-intelligenceruvnetHolds a commandRefuses a key, token, or password in what ruflo learns from, an email address in a public transfer, and a reset of ruflo's intelligence without confirm.ruflo-jujutsuruvnetHolds a commandRefuses a pull request ruflo creates or reviews when its title or body holds a key, token, or password, and a merge or close that does not carry confirm.ruflo-neural-traderruvnetHolds a commandRefuses a live order from ruflo's neural-trader tools unless it is confirmed, paper, or a dry run, and any trader call or memory write that holds a broker key.ruflo-loop-workersruvnetHolds a commandRefuses a ruflo background worker dispatch whose context holds a key, token, or password, and any dispatch past a per-session cap, which catches a stuck loop.ruflo-workflowsruvnetHolds a commandRefuses a ruflo workflow definition, run, or workflow memory record that holds a secret, and a workflow_delete that names no single workflow id.ruflo-federationruvnetHolds a commandRefuses ruflo federation publishes and syncs to other machines that hold a key, token, or password, or personal data such as an SSN or a card number.ruflo-agentruvnetHolds a commandRefuses text sent into a ruflo agent runtime, a local WASM sandbox or Anthropic's managed cloud agents, when it holds a key, token, or password.ruflo-agentdbruvnetHolds a commandRefuses a write to ruflo's agent memory, or a memory import, that holds a private key, token, or key-like value, and can add the best memories to each prompt.ruflo-aidefenceruvnetHolds a commandRefuses a sample sent to ruflo's AI defence to learn from when it holds a key, token, or password, since learned patterns are stored and replayed.ruflo-autopilotruvnetHolds a commandRefuses a ruflo autopilot log or lesson that holds a key, token, or password, and an autopilot config that raises the loop past its iteration cap.
All 73 in Safety