sgasser
Joined 11 years ago
Karma
10
Submissions
18
Member since
Apr 20
Joined 11 years ago
OpenAI-compatible proxy that masks personal data and secrets before sending to your provider.
Mask Mode (default):
You send: "Email [email protected] about meeting Dr. Miller"
LLM receives: "Email <EMAIL_1> about meeting <PERSON_1>"
You get back: Original names restored in response
Route Mode (if you run a local LLM): Requests with PII → Local LLM
Everything else → Cloud
What it catches: PII: Names, emails, phones, credit cards, IBANs, IPs, locations (24 languages)
Secrets: Private keys, API keys (OpenAI, AWS, GitHub), JWT tokens
Uses Microsoft Presidio for PII detection. ~500MB RAM, 10-50ms per request.Works with Cursor, Open WebUI, LangChain, or any OpenAI-compatible client.
Docs: https://pasteguard.com/docs
Feedback on edge cases welcome.
Not at the moment. Maybe Airbnb in the near future. Any other suggestions?
So I built a proxy that handles it for you — it's open source and free.
How it works:
PasteGuard finds personal data and secrets in your prompt, swaps them with placeholders, and restores the real values in the response. The LLM never sees the actual data.What it catches: - PII: Names, emails, phones, credit cards, IBANs, IPs (24 languages) - Secrets: API keys (OpenAI, Anthropic, AWS, GitHub), JWTs, SSH keys
Works with both OpenAI and Anthropic APIs. Point your app to localhost:3000/openai/v1 or localhost:3000/anthropic/v1. Compatible with LangChain, Cursor, Claude Code, Open WebUI.
One command to run:
Happy to answer questions.