Hey HN! I built PIICloak because I needed a simple way to sanitize user data before sending it to OpenAI/Claude APIs.

Key features: - Detects 31 PII types (emails, phones, SSNs, credit cards, API keys, etc.) - Multiple modes: redact, mask, hash, or replace with fake data - REST API + Python library - Self-hosted, no data leaves your server - Uses Microsoft Presidio + spaCy NER under the hood

Quick example:

    curl -X POST http://localhost:8000/anonymize \
      -H "Content-Type: application/json" \
      -d '{"text": "Contact john@example.com or call 555-123-4567"}'
Returns: "Contact <EMAIL> or call <PHONE_NUMBER>"

Docker: docker run -p 8000:8000 dimanjet/piicloak PyPI: pip install piicloak

Happy to answer any questions!

  • dimanjet 4 hours ago |
    Hey HN! I built this because I needed to sanitize user data before sending it to OpenAI/Claude APIs.

    It detects 31 PII types (emails, phones, SSNs, credit cards, names, API keys, etc.) and can redact, mask, hash, or replace with fake data.

    Self-hosted via Docker or pip install. Uses Microsoft Presidio + spaCy NER under the hood.

    Happy to answer any questions!