Claude Code mod
secret-guard
Stops Claude from writing API keys, tokens, private keys and database passwords into files.
Install
git clone https://github.com/ShriD5/claude-mods.git
claude --plugin-dir ./claude-mods/secret-guardThe repo has no marketplace file, so load the plugin folder directly with --plugin-dir.
What it can access
- Reach
- L1Reads: reads files, persists state, draws
- Sees
- every tool call
- Hooks
session.startcommand.runtool.call
From a static scan of the mod's code by awesome-claude-code-mods. It shows what the code asks for, not a security review.
How Claude Code mods work
- A mod is a plugin with a JavaScript or TypeScript module that runs inside Claude Code (version 2.1.287 or later). It can draw panes beside the transcript, a band above the prompt, buttons and toasts, restyle the spinner and tool rows, and watch or rewrite tool calls and prompts.
- It installs like any plugin: add its marketplace with /plugin marketplace add owner/repo, then /plugin install name@marketplace.
- Check what a mod can reach before installing: it runs with your permissions. Reach goes from drawing only, to reading files, to writing files or running processes, to the network. Run claude plugin validate on a clone to list its hooks and calls without running it.
- Turn one off from the Installed tab in /plugin, or start Claude Code with --safe-mode to skip every customization for a session.
Details
- Repository
- ShriD5/claude-mods
- Folder
secret-guard- Author
- Shrithan Devaiah
- License
- MIT
- Last updated
- 4 October 2026
- Listed in
- awesome-claude-code-mods
FAQ
What is secret-guard?
Stops Claude from writing API keys, tokens, private keys and database passwords into files. It is a mod for Claude Code, from ShriD5/claude-mods on GitHub.
What can the secret-guard mod access?
Its widest reach is "reads" (reads files, persists state, draws). It sees every tool call. Like any mod, it runs with your permissions.
How do I install secret-guard?
Clone ShriD5/claude-mods and start Claude Code with --plugin-dir pointing at the mod's folder (secret-guard).
Is secret-guard popular?
ShriD5/claude-mods has 2 GitHub stars and 0 forks, and is included in 1 curated Claude Code list. It was last updated on 4 October 2026.
More guard & safety mods
secret-box
2iuliandita/mods
Resolves {{secret:NAME}} placeholders from Linux Secret Service or macOS Keychain at execution time, with optional directory scopes and host-specific output scrubbing.
rainbow-prompt
1Broo37/claude-mods
Colors the prompt box as you type: ticket ids, paths, links, rainbow words, and a red warning on anything that looks like a secret
probe2
24ucsandman/Agnostic-AI
Interception probe: deny, rewrite, replace result, delay, throw, register tool, classify
sensitive-file-guard
1Justmalhar/awesome-claude-mods
Blocks Read, Write, Edit, Grep, Glob and Bash calls that touch .env files, private keys and credential stores.
dash-guard
6mutlumehmet/claude-plugins
Refuses prose that Claude writes with an em dash, an en dash or a double hyphen, and tells Claude which lines to rewrite
redact
3schreibse/claude-code-mods
Secrets found by betterleaks reach the model as ‹secret:…› tokens; Write/Edit restore them, other tools refuse them
Browse the most popular Claude Code mods, all guard & safety mods, or the skills and MCP server directories.