Main
Treat PasteGuard as a drop-in reverse proxy: you change the base URL once, and it masks secrets/PII before the request leaves your machine.
Use it both for chat and coding tools: the proxy path supports OpenAI-style
/v1routing and a dedicated/anthropicendpoint.If you need higher privacy, enable the project’s “route mode” idea: sensitive requests can be routed to a local model while non-sensitive traffic goes to a hosted provider (see docs).
Source-backed notes
- README Quick Start runs a local proxy container on port 3000 and shows base URLs like
http://localhost:3000/openai/v1. - README claims it detects 30+ types of sensitive data across 24 languages and keeps data on-device.
- README includes a Claude Code example using
ANTHROPIC_BASE_URL=http://localhost:3000/anthropic.
FAQ
- Does it require code changes?: Usually no — you swap the provider base URL to the localhost proxy and keep the rest the same.
- What does it mask?: README highlights names, emails, and API keys; masking behavior depends on its detection engine and config.
- Can I use it with Claude Code?: Yes — README shows routing Anthropic requests via
ANTHROPIC_BASE_URLto the local proxy.