Configuration Overview
PasteGuard is configured viaconfig.yaml. Copy from the example:
Mode
Privacy mode determines how PII is handled.| Value | Description |
|---|---|
mask | Replace PII with placeholders, send to provider, restore in response |
route | PII requests stay on your local LLM (Ollama, vLLM, llama.cpp), others go to your configured provider |
Server
| Option | Default | Description |
|---|---|---|
port | 3000 | HTTP port |
host | 0.0.0.0 | Bind address |
Dashboard
| Option | Default | Description |
|---|---|---|
enabled | true | Enable dashboard at /dashboard |
auth.username | - | Basic auth username |
auth.password | - | Basic auth password |
Environment Variables
Use${VAR} or ${VAR:-default} syntax: