-
released this
2026-02-02 20:51:12 +00:00 | 0 commits to main since this releaseInitial release of Code Privacy Shield
A CLI tool that analyzes code before sending to AI coding assistants and automatically redacts sensitive data.
Features
- API Key Detection (OpenAI, GitHub, AWS, Stripe, etc.)
- PII Detection (emails, phone numbers, SSNs, credit cards)
- Database Connection String Redaction
- Environment Variable Redaction
- Custom Redaction Rules via config
- Preview Mode
- Code Structure Preservation
Installation
pip install code-privacy-shieldUsage
cps redact myfile.py # Redact a file cps preview myfile.py # Preview redactions cps check myfile.py # Check for sensitive dataDownloads