PasteGuard sits between your self-hosted chat interface and the LLM provider. Users interact with Open WebUI, LibreChat, or similar tools — PasteGuard handles privacy automatically in the background.Documentation Index
Fetch the complete documentation index at: https://pasteguard.com/docs/llms.txt
Use this file to discover all available pages before exploring further.
Open WebUI
Point Open WebUI to PasteGuard instead of OpenAI directly:In Docker Compose, use the service name instead of
localhost (e.g., http://pasteguard:3000/openai/v1).LibreChat
Add PasteGuard as a custom endpoint in your LibreChat configuration:Mask Mode vs Route Mode
Self-hosted setups can use either privacy mode depending on your requirements:| Mode | Best for | How it works |
|---|---|---|
| Mask | Teams using cloud LLMs (OpenAI, Anthropic) | Replaces PII with placeholders, sends to cloud provider, restores in response |
| Route | Teams with a local LLM (Ollama, vLLM) | Requests containing PII stay on your local LLM, others go to the cloud provider |
config.yaml. See Route Mode for setup details.
Mask Mode works out of the box with any provider. See Mask Mode for how masking and unmasking works.
API Endpoints
| API | PasteGuard URL |
|---|---|
| OpenAI | http://localhost:3000/openai/v1 |
| Anthropic | http://localhost:3000/anthropic |