Home / Claude Code mods / Security / env-protect

env-protect

env-protect is a Claude Code mod by vincentlauriat that asks the user before Claude reads secret files (.env, private keys, .netrc, .npmrc, .aws/credentials, keychains…) with Read, Grep, Glob or Bash.

Updated 2026-10-05

What is env-protect?

env-protect is a Claude Code mod by vincentlauriat that asks the user before Claude reads secret files (.env, private keys, .netrc, .npmrc, .aws/credentials, keychains…) with Read, Grep, Glob or Bash. It is listed under Security and has no public popularity data yet.

TypeClaude code mod
Authorvincentlauriat
Repositoryvincentlauriat/ModsTools
Popularityno public popularity data yet
CategorySecurity
SecurityLow risk (100/100)
Rank#5,034 of 5,272 Claude Code mods; #519 in Security
LicenseMIT
Last commit2026-10-05
Hooks3 events
Seesonly the events it hooks
Draws onnothing

Is env-protect safe to install?

env-protect scores 100/100 on the MCPMods security check: Low risk. No checks raised a concern. It passed 8 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
Passes claude plugin validatePass
Has an open-source licensePass

API calls in its code

CallWhat it means
$.command.register
$.state.get
$.state.set
$.ui.statusdraws interface

How do I install env-protect?

  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/vincentlauriat/ModsTools
    claude plugin validate ./ModsTools/mods/env-protect
  3. Install it. Run this in your terminal, then /reload-plugins in an open session.
    git clone https://github.com/vincentlauriat/ModsTools && claude --plugin-dir ./ModsTools/mods/env-protect

Or ask Claude to set it up

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

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

More from vincentlauriat/ModsTools

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

  • achievement: Playful badges unlocked once ever from real events (tool calls, turns, subagents, tests, git); /achievements lists them (Low risk)
  • agent-tracker: A pane listing the subagents launched this session with their status and duration (Low risk)
  • ascii-weather: Weather from wttr.in in the status line (refreshed at most once an hour); /weather shows the one-line forecast (Low risk)
  • auto-context: Adds git branch, dirty count, last commit and next TODOS to the session's system prompt (Low risk)
  • branch-guard: Asks the user before Edit/Write/NotebookEdit changes a file of a git repo whose current branch is main or master (once p (Low risk)
  • build-gate: Band above the prompt when a turn changed source code without running a matching build or type-check (Low risk)
  • changed-files: A pane listing the files Claude modified during the session (Low risk)
  • ci-watch: Follows the GitHub Actions runs of a commit after git push: status line while they run, toast with the failed workflows (Low risk)