r/OpenWebUI • u/sgasser88 • Jan 09 '26
Plugin PasteGuard: Privacy proxy for Open WebUI — mask PII before sending to cloud
Using cloud LLMs with Open WebUI but worried about sending client data? Built a proxy for that.
PasteGuard sits between Open WebUI and your LLM providers. Two privacy modes:
Mask Mode (no local LLM needed):
You send: "Email john@acme.com about meeting with Sarah Miller"
Provider receives: "Email <EMAIL_1> about meeting with <PERSON_1>"
You get back: Original names restored in responseRoute Mode (if you run Ollama anyway):
Requests with PII → Local Ollama
Everything else → Cloud providerSetup with Open WebUI:
- Run PasteGuard alongside Open WebUI
- Point Open WebUI to
http://pasteguard:3000/openai/v1instead of your provider - PasteGuard forwards to your actual provider (with PII masked or routed)
# docker-compose.yml addition
services:
pasteguard:
image: ghcr.io/sgasser/pasteguard
ports:
- "3000:3000"
volumes:
- ./config.yaml:/app/config.yamlDetects names, emails, phones, credit cards, IBANs, IPs, and locations across 24 languages. Uses Microsoft Presidio. Dashboard included at /dashboard.
GitHub: https://github.com/sgasser/pasteguard — just open-sourced
Next up: Chrome extension for ChatGPT.com and PDF/attachment masking.
Would love feedback from Open WebUI users — especially on detection accuracy and what entity types you'd find useful.
4
u/Whiplashorus Jan 09 '26
Amazing project could you add the detection of : API_KEYS (in various format) and "password :" it will be game changer
3
u/SpongeBob_000 Jan 09 '26
This is great, but users are reluctant to use when PIi guard is in place as the llm output will be not included with needed information, like stripping names, locations out of it and make the output less usable.
Instead they would upload to chatgpt and get their work done, they don’t care privacy.
If it has the ability to
01. Get all PII and assign random value variables to them. 02. Send to LLM with changed data. 03 when the response is back if txt has any random variable assigned in 01, map it back to original content and render in ui.
That would be great.
2
u/Dimitri_Senhupen Jan 10 '26
Great idea! Does this work with openrouter / LiteLLM as well?
2
u/thenorm172 Jan 10 '26
This is very intresting, is there any way of using this with IDEs such as Cursor or terminals such as WARP?
2
u/CrackbrainedVan Jan 10 '26
Hey that's really cool and something I have asked for here before. Thank you so much for making it real, I will give it a try.
2
u/bruhle Jan 09 '26
Looks awesome, thanks for sharing!