Skip to main content

Configuration Overview

PasteGuard is configured via config.yaml. Copy from the example:
cp config.example.yaml config.yaml

Mode

Privacy mode determines how PII is handled.
mode: mask
ValueDescription
maskReplace PII with placeholders, send to provider, restore in response
routePII requests stay on your local LLM (Ollama, vLLM, llama.cpp), others go to your configured provider
See Mask Mode and Route Mode for details.

Server

server:
  port: 3000
  host: "0.0.0.0"
OptionDefaultDescription
port3000HTTP port
host0.0.0.0Bind address

Dashboard

dashboard:
  enabled: true
  auth:
    username: admin
    password: ${DASHBOARD_PASSWORD}
OptionDefaultDescription
enabledtrueEnable dashboard at /dashboard
auth.username-Basic auth username
auth.password-Basic auth password

Environment Variables

Use ${VAR} or ${VAR:-default} syntax:
providers:
  upstream:
    api_key: ${OPENAI_API_KEY}

pii_detection:
  presidio_url: ${PRESIDIO_URL:-http://localhost:5002}