Skip to main content

1. Start PasteGuard

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

2. Choose Your Path

Browser Chat

Use the experimental browser extension with ChatGPT, Claude, and Gemini.

Apps & APIs

Change one base URL for your app or SDK.

Coding Agents

Point Codex, Claude Code, Cursor, and other coding agents at PasteGuard.

3. API Endpoints

Point your app, SDK, or coding agent to PasteGuard:
TargetPasteGuard URL
OpenAIhttp://localhost:3000/openai/v1
Anthropichttp://localhost:3000/anthropic
Codex CLIhttp://localhost:3000/codex

4. 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.

5. View Dashboard

Open http://localhost:3000 in your browser to see:
  • Request history
  • Detected PII and secrets
  • Masked content sent to upstream APIs or Codex CLI
PasteGuard Dashboard