AI gets the context. Not your private data. PasteGuard masks PII and secrets before they reach ChatGPT, Claude, Gemini, your API provider, Codex, or Claude Code. Browser Chat · Apps & APIs · Coding Agents · Documentation You keep the originals. Providers see placeholders. Run it locally or self-host it in your own infrastructure. What PasteGuard Protects PasteGuard is a local-first privacy layer for teams that…
AI gets the context. Not your private data.
PasteGuard masks PII and secrets before they reach ChatGPT, Claude, Gemini, your API provider, Codex, or Claude Code.
You keep the originals. Providers see placeholders.
Run it locally or self-host it in your own infrastructure.
What PasteGuard Protects
PasteGuard is a local-first privacy layer for teams that cannot send raw client data, customer records, logs, credentials, or production details directly to model providers.
It works in three places:
Browser Chat
ChatGPT, Claude, and Gemini. Paste customer notes, contracts, support tickets, candidate details, or internal context without sending the raw private values to the chat provider. You see the originals; the AI sees placeholders.
The experimental browser extension is available for ChatGPT, Claude, and Gemini.
Codex, Claude Code, Cursor, Windsurf, Copilot, and other coding agents. Agent prompts often include logs, stack traces, tickets, config files, test fixtures, and codebase context. PasteGuard masks secrets and PII before that context leaves your machine.
PasteGuard is a privacy control point before AI providers. It can support regulated workflows, but it does not replace your legal, security, or compliance program.
Use it when your current options are:
Do not use cloud AI for sensitive work
Redact client or production data manually
Switch to a local model even when a cloud provider would give better results
Build one-off masking code inside every app
Quick Start
Run PasteGuard as a local proxy:
docker run --rm -p 3000:3000 ghcr.io/sgasser/pasteguard:latest
If the detector in 0.9.3 exits with SIGSEGV, add -e ORT_DISABLE_TELEMETRY=1
to docker run; see installation troubleshooting.
Mask Mode replaces PII and secrets with placeholders before sending the request to the upstream AI provider. Supported responses are restored before they return to the user.
Route Mode
Route Mode sends requests containing sensitive data to a local LLM such as Ollama, vLLM, or llama.cpp. Requests without sensitive data can still go to the configured cloud provider.
Personal data: Names, locations, emails, phone numbers, credit cards, IBANs, IP addresses, EU VAT numbers, and Chinese Resident ID numbers. Detection is multilingual.
Secrets: API keys for providers such as OpenAI, Anthropic, Stripe, AWS, and GitHub; SSH and PEM private keys; JWT tokens; bearer tokens; passwords; and connection strings.
Both are detected and masked in real time, including streaming responses.
Dashboard
Every request is logged with masking details. See what was detected, what was masked, and what reached the provider.
The detector combines checksums and format checks for structured values with a
semantic backend for names and places. GLiNER is currently the only backend.
See Semantic Backends.
评论