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.
| Type | Claude code mod |
|---|---|
| Author | seanrobertwright |
| Repository | seanrobertwright/claude-mods |
| Popularity | 3 GitHub stars |
| Category | Security |
| Security | Low risk (92/100) |
| Rank | #984 of 5,272 Claude Code mods; #115 in Security |
| Last commit | 2026-10-12 |
| Stars this week | +2 |
| Hooks | 2 events |
| Sees | /"^(Bash|PowerShell)$"/ calls, /"^(Read|Grep|Glob)$"/ calls |
| Draws on | nothing |
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.
| Check | Result |
|---|---|
| No network access | Pass |
| Starts no processes | Pass |
| Writes no files or config | Pass |
| Doesn't read environment variables | Pass |
| Only sees the events it hooks | Pass |
| Doesn't drive Claude | Pass |
| Validator reported problems | Note |
| No license detected | Note |
API calls in its code
| Call | What it means |
|---|---|
$.command.list | |
$.fs.stat | reads files |
$.session.surfaces | |
$.ui.ask | draws interface |
$.ui.toast | draws interface |
How do I install env-guard?
- Check your Claude Code version. Mods need Claude Code 2.1.287 or later and are on by default.
claude --version
- 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
- 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)