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.

![Claude Code Privacy Guard Screenshot](./assets/claude-code-privacy-guard-ss.png)

## 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

View full repository on GitHub โ†’