env-guard

env-guard is a Claude Code mod by seanrobertwright that asks you before Claude reads a .env or key file, and refuses when no one is there to answer.

Updated 2026-10-12

What is env-guard?

env-guard is a Claude Code mod by seanrobertwright that asks you before Claude reads a .env or key file, and refuses when no one is there to answer. It is listed under Security and has 3 GitHub stars.

TypeClaude code mod
Authorseanrobertwright
Repositoryseanrobertwright/claude-mods
Popularity3 GitHub stars
CategorySecurity
SecurityLow risk (92/100)
Rank#984 of 5,272 Claude Code mods; #115 in Security
Last commit2026-10-12
Stars this week+2
Hooks2 events
Sees/"^(Bash|PowerShell)$"/ calls, /"^(Read|Grep|Glob)$"/ calls
Draws onnothing

Is env-guard safe to install?

env-guard scores 92/100 on the MCPMods security check: Low risk. No checks raised a concern. It passed 6 of 8 checks.

Mod footprints come from claude plugin validate, which lists every event a mod hooks and every API call it makes without running it.

CheckResult
No network accessPass
Starts no processesPass
Writes no files or configPass
Doesn't read environment variablesPass
Only sees the events it hooksPass
Doesn't drive ClaudePass
Validator reported problemsNote
No license detectedNote

API calls in its code

CallWhat it means
$.command.list
$.fs.statreads files
$.session.surfaces
$.ui.askdraws interface
$.ui.toastdraws interface

How do I install env-guard?

  1. Check your Claude Code version. Mods need Claude Code 2.1.287 or later and are on by default.
    claude --version
  2. Read its footprint. This lists every event it hooks and every API call it makes, without running it.
    git clone https://github.com/seanrobertwright/claude-mods
    claude plugin validate ./claude-mods/mods/env-guard
  3. Install it. Run this in your terminal, then /reload-plugins in an open session.
    claude plugin marketplace add seanrobertwright/claude-mods && claude plugin install env-guard@claude-mods

Or ask Claude to set it up

Paste this into Claude Code and it installs env-guard for you:

Install the "env-guard" Claude Code mod from https://github.com/seanrobertwright/claude-mods/tree/main/mods/env-guard. Run claude plugin validate on it first and show me what it can access before you enable it.

More from seanrobertwright/claude-mods

This repository has at least 9 Claude Code mods on MCPMods.

  • archon-panel: An Archon pane in the side panel: this project's workflow runs, their graphs and logs, and the approvals that wait on yo (High risk)
  • auto-resume: When a turn dies on a rate limit (or an overloaded API), counts down to the reset and sends "continue" for you. (Review before installing)
  • bash-quoting-rescue: Before a shell command runs, parses it with the shell's own parser and refuses one that does not parse, such as an unclo (Low risk)
  • branch-guard: Before Claude commits or pushes on the default branch, asks you whether to create a branch first. (Low risk)
  • chrome-tab-self-heal: When a Claude in Chrome tool says its tab is gone, tells Claude to fetch the current tab IDs before trying again. (Low risk)
  • dev-server-manager: A pane of the project's dev servers: start, restart and watch them, and fill a crash's error into the prompt. (Review before installing)
  • github-panel: A GitHub pane in the side panel: the repo's open pull requests and issues; click one to open it in the browser, or fill (Low risk)
  • hud: Two coloured, animated lines under the prompt, every figure named: model, effort, context window, rate limits, turn time (Low risk)