Home / Claude Code mods / Security / secrets-guard

secrets-guard

secrets-guard is a Claude Code mod by charlie947 that stops Claude reading .env and key files, masks API keys in command output, and lets you hand Claude a key through a pane without it ever seeing the value.

Updated 2026-10-04

What is secrets-guard?

secrets-guard is a Claude Code mod by charlie947 that stops Claude reading .env and key files, masks API keys in command output, and lets you hand Claude a key through a pane without it ever seeing the value. It is listed under Security and has 6 GitHub stars.

TypeClaude code mod
Authorcharlie947
Repositorycharlie947/mod-maker
Popularity6 GitHub stars
CategorySecurity
SecurityLow risk (80/100)
Rank#637 of 5,272 Claude Code mods; #83 in Security
Last commit2026-10-04
Stars this week+3
Hooks4 events
Seesevery tool call, mcp__secrets-guard__env_list calls, mcp__secrets-guard__env_request calls
Draws onPane

Is secrets-guard safe to install?

secrets-guard scores 80/100 on the MCPMods security check: Low risk. Things to review: writes files or config. It passed 5 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 files or configReview
Doesn't read environment variablesPass
Only sees the events it hooksPass
Drives Claude (model calls, prompts)Note
Passes claude plugin validatePass
No license detectedNote

API calls in its code

CallWhat it means
$.command.register
$.fs.listreads files
$.fs.readreads files
$.fs.writewrites files
$.prompt.submitdrives Claude
$.session.cwd
$.state.get
$.state.set
$.tool.registerdrives Claude
$.ui.opendraws interface
$.ui.resolvedraws interface
$.ui.toastdraws interface

How do I install secrets-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/charlie947/mod-maker
    claude plugin validate ./mod-maker/plugins/secrets-guard
  3. Install it. Run this in your terminal, then /reload-plugins in an open session.
    claude plugin marketplace add charlie947/mod-maker && claude plugin install secrets-guard@charlie-free-mods

Or ask Claude to set it up

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

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

More from charlie947/mod-maker

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

  • brand-theme: Dresses Claude Code in your brand: a branded spinner, tool rows and question dialog, plus a band above the prompt with y (Low risk)
  • done-ping: A desktop notification with a sound when Claude finishes a long answer or may need your OK (Review before installing)
  • mission-control: A live panel above your prompt: the plan as a stage bar, what Claude is doing in plain English, your asks ticked off, an (Low risk)
  • mod-maker: Find what you ask Claude again and again, then build a mod that does it for you: /mod-audit, /mod-build, /mod-check and (High risk)
  • office: A pixel-art office in a local web page: every Claude session gets a desk, walks to the filing cabinet when it reads, typ (High risk)
  • open-loops: Live pane of every ask you make in a session, ticked only with proof. Ask-splitter: right after you send a prompt, a ban (Review before installing)
  • outbox: Holds every message Claude tries to send (WhatsApp, email, Slack) until you read it, see who it goes to, and press Send (Low risk)
  • plain-reply: Grades every reply for length, long sentences and jargon, and offers a one-click 'Say it simpler' draft when it goes ove (Low risk)