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.
| Type | Claude code mod |
|---|---|
| Author | charlie947 |
| Repository | charlie947/mod-maker |
| Popularity | 6 GitHub stars |
| Category | Security |
| Security | Low risk (80/100) |
| Rank | #637 of 5,272 Claude Code mods; #83 in Security |
| Last commit | 2026-10-04 |
| Stars this week | +3 |
| Hooks | 4 events |
| Sees | every tool call, mcp__secrets-guard__env_list calls, mcp__secrets-guard__env_request calls |
| Draws on | Pane |
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.
| Check | Result |
|---|---|
| No network access | Pass |
| Starts no processes | Pass |
| Writes files or config | Review |
| Doesn't read environment variables | Pass |
| Only sees the events it hooks | Pass |
| Drives Claude (model calls, prompts) | Note |
| Passes claude plugin validate | Pass |
| No license detected | Note |
API calls in its code
| Call | What it means |
|---|---|
$.command.register | |
$.fs.list | reads files |
$.fs.read | reads files |
$.fs.write | writes files |
$.prompt.submit | drives Claude |
$.session.cwd | |
$.state.get | |
$.state.set | |
$.tool.register | drives Claude |
$.ui.open | draws interface |
$.ui.resolve | draws interface |
$.ui.toast | draws interface |
How do I install secrets-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/charlie947/mod-maker claude plugin validate ./mod-maker/plugins/secrets-guard
- 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)