Skip to main content
PasteGuard is configured via config.yaml. Copy from the example:

Mode

Privacy mode determines how PII is handled.
See Mask Mode and Route Mode for details.

Server

The OpenAI, Anthropic, and Codex proxy routes reject browser requests. SDKs, CLIs, and other non-browser clients are unaffected. The standalone /api/mask endpoint keeps permissive CORS for the browser extension. Restrict network access when using a configured provider-key fallback.

Dashboard

Environment Variables

Use ${VAR} or ${VAR:-default} syntax:
config.yaml controls the proxy’s PII policy and connection to the detector. Backend settings are documented under Semantic Backends.