serkankorkut/mask2ai
21 stars · Last commit 2026-10-16
PII redaction for ChatGPT, claude.ai and Claude Code. Masks names, emails, phone numbers, cards, IBANs and IDs before they leave your machine and restores them on screen. Chrome extension and Claude Code plugin, no server.
README preview
<p align="center"><picture><source media="(prefers-color-scheme: dark)" srcset="brand/logo-dark.svg"><img src="brand/logo.svg" width="280" alt="mask2ai"></picture></p> # mask2ai [](https://github.com/serkankorkut/mask2ai/releases/latest) [](https://github.com/serkankorkut/mask2ai/actions/workflows/test.yml) [](LICENSE) [](https://github.com/serkankorkut/mask2ai/stargazers) Protects your privacy when you use AI. mask2ai keeps personal data on your machine when you work with an AI assistant. It detects names, contact details, identity numbers, payment details and addresses in what you send, replaces them with placeholders before anything leaves your device, and puts the real values back on your screen. Website and docs: [mask2ai.com](https://mask2ai.com) Two integrations share one detection core: | Environment | Integration | Verified by | | --- | --- | --- | | Claude Code CLI | plugin, six hooks, PDF to text, image redaction (macOS natively, Linux with poppler, tesseract and ImageMagick) | `node test.js`, `node demo/prove.js` | | claude.ai in Chrome | extension on the [Chrome Web Store](https://chromewebstore.google.com/detail/lohmecihoickmpmnkocgdchahlhjiejb), chat text and Office or text uploads | `node demo/verify-web.js` | | ChatGPT web (chatgpt.com) in Chrome | extension, chat text | `node demo/verify-web.js` |