Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
By datumbrain Verified Orgv1.0.3MITIn 1 marketplace
Blocks secrets and PII from reaching Claude Code through your prompts, tool calls and files before the model sees them. Hooks run on every prompt and tool call, and it claims to work locally with no network calls.
Trending plugins
7-day copy clicks
Run automatically on Claude Code events. Claude doesn't decide.
1 caution to review before installing
A hook runs when Claude uses the Bash tool
Static checks of hooks, mods, MCP servers and commands. Not a security audit.
1 marketplace, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
🛡️ Stops Claude Code from reading your secrets, not just from you typing them.
A privacy-first plugin for Claude Code. Coding agents don't only see what you type: they read files and run commands on their own, and one cat .env puts your credentials in the model's context. Privacy Guard checks every path a secret can take - your prompts, the agent's tool calls, the files it reads, and the output it gets back - and blocks the leak before it reaches the AI. It keeps protecting in auto mode, where nobody is approving tool calls.
.env, SSH keys, cloud credential files, or any file whose contents hold a secret, and from dumping the environment through Bash.env lines, high-entropy tokens), and opt-in card, SSN and phone detection[email protected] are never flagged.privacy-guard.json, or via npx claude-code-privacy-guard rules for a local web UI# Add the marketplace (if not already added)
/plugin marketplace add datumbrain/claude-code-privacy-guard
# Install the plugin
/plugin install claude-code-privacy-guard
⚠️ Important: Restart Required
After installing the plugin, you must restart your Claude Code session for it to take effect. This is because hooks are registered at session startup - Claude Code doesn't dynamically load new hooks mid-session.
Simply close and reopen Claude Code, or start a new session.
Once restarted, the plugin automatically scans your prompts and Claude's tool calls. To update later, run /plugin marketplace update datumbrain-plugins and restart.
The rules/allowlist web UI also ships as an npm package, so it can be run without installing the Claude Code plugin:
npx claude-code-privacy-guard rules
From a clone, node dist/cli/index.js rules does the same.
✅ Secrets
sk-..., sk-proj-...)postgresql+psycopg2:// and redis://:password@host)END line=, :, Go's :=, Ruby/PHP's =>).env-style assignments (API_KEY=..., export SECRET=...)token:, api_key=, secret, password, ...). Entropy is never used alone, so git SHAs, UUIDs and hashes without a keyword in front are not flagged. Thresholds live in ENTROPY_CONFIG in src/scanner/entropy.ts.Plus about 200 service-specific rules converted from gitleaks' MIT-licensed ruleset (data/gitleaks-rules.json, license in data/gitleaks-LICENSE). Like gitleaks, each rule only runs when one of its keywords appears in the text and drops low-entropy matches, which keeps false positives down. See Managing Rules to browse the full list, and scripts/convert-gitleaks-rules.mjs to refresh it.
✅ Personal Information (PII)
example.com, example.org, example.net, and anything ending in .test, .example, .invalid or .localhost - which never belong to a real person, so README and test fixtures don't trip the guard; git SSH remotes like [email protected] and image names like [email protected] are not treated as emails either)Built from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
npx claudepluginhub datumbrain/claude-code-privacy-guard --plugin claude-code-privacy-guardPlugins from other owners that cover similar ground