Skip to main content

1. Start PasteGuard

docker run --rm -p 3000:3000 ghcr.io/sgasser/pasteguard:en
PasteGuard runs on http://localhost:3000. Open http://localhost:3000/dashboard to see the dashboard.
For custom configuration, European languages, or persistent logs, see Installation.

2. API Endpoints

Point your tools or SDKs to PasteGuard:
APIPasteGuard URL
OpenAIhttp://localhost:3000/openai/v1
Anthropichttp://localhost:3000/anthropic

3. Verify It Works

Send a test request and check the response headers:
curl -i http://localhost:3000/openai/v1/chat/completions \
  -H "Authorization: Bearer $OPENAI_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model": "gpt-5.2", "messages": [{"role": "user", "content": "Write a follow-up email to Dr. Sarah Chen (sarah.chen@hospital.org)"}]}'
Look for:
X-PasteGuard-PII-Detected: true
X-PasteGuard-PII-Masked: true
The name and email were masked before reaching OpenAI and restored in the response.

4. View Dashboard

Open http://localhost:3000/dashboard in your browser to see:
  • Request history
  • Detected PII entities
  • Masked content sent to OpenAI or Anthropic
PasteGuard Dashboard

Now Configure Your Tool