datumbrain/claude-code-privacy-guard
10 stars ยท Last commit 2026-07-23
๐ก๏ธ Claude Code plugin that blocks prompts containing secrets, API keys, and PII before they reach Claude.
README preview
# Claude Code Privacy Guard <img src="./assets/claude-code-privacy-guard-logo.png" alt="Claude Code Privacy Guard Logo" align="right" height="80" /> > ๐ก๏ธ Prevent secrets and PII from being accidentally shared with Claude Code. A privacy-first plugin for Claude Code that scans prompts for sensitive data and **blocks** them before they reach the AI.  ## Features - โ **Blocks prompts** containing sensitive data before they're sent to Claude - โ **Detects** PII, secrets, API keys, tokens, and sensitive information - โ **Works locally** - all scanning happens on your machine - โ **Zero configuration** - works out of the box - โ **Detailed reporting** - shows exactly what was detected - โ **Toggle rules and manage allowlists** - by hand in `.privacy-guard.json`, or via `npx claude-code-privacy-guard rules` for a local web UI ## Installation