Protecto Privacy Gateway for AI Chat runs between LibreChat and whichever model you connected. Sensitive values are masked before the model sees them and unmasked on the way back.
The Gateway is not a LibreChat feature. It sits behind the chat interface, so the interface stays yours to change.
Summarize the claim for Maria Lopez, account 4821-7730, callback 415-555-0142.
Summarize the claim for Maria Lopez, account 4821-7730, callback 415-555-0142.
Summarize the claim for [PERSON_7a1], account [ACCOUNT_3f2], callback [PHONE_9c4].
The claim for [PERSON_7a1] on account [ACCOUNT_3f2] is approved. Confirm at [PHONE_9c4].
The claim for Maria Lopez on account 4821-7730 is approved. Confirm at 415-555-0142.
LibreChat is open-source and self-hosted, which keeps your data on your own infrastructure. It does not detect, mask, or redact sensitive data before sending it to a connected model.
Protecto closes that gap: it masks PII, PHI, and other sensitive data in every prompt and uploaded document using entity-level detection and reversible tokenization, before LibreChat sends anything to OpenAI, Anthropic, Google, Azure, or Bedrock.
The response comes back masked, and Protecto unmasks it before the user sees it. The user works with real data. The model only ever sees masked values.
Why teams run LibreChat
LibreChat is open source and self-hosted. Teams choose it to get every model provider behind one interface, on their own infrastructure.
OpenAI, Anthropic, Google, Azure, Bedrock, and more.
No per-seat SaaS pricing or vendor lock-in.
SSO, SAML, LDAP, and OAuth ship with it.
LibreChat gives you infrastructure control, not content protection. Every prompt, document, and response can still carry sensitive data straight to the model.
Names, phone numbers and account numbers, in the clear.
Self-hosting LibreChat solves where the data lives. It does not solve what the connected LLM sees.
The Gateway is deployed in the request path between LibreChat and your model providers. Inside LibreChat it surfaces as a selectable secure chat mode.
Every prompt in that mode routes through the Gateway before it reaches the model. Unmasking uses controlled boundary resolution authorized by a per-user Protecto token, so your team works with real data and the model never holds it.
You type a prompt containing sensitive data, same as always.
Protecto detects and masks the sensitive entities before the prompt leaves LibreChat.
The model, whether that’s OpenAI, Anthropic, Google, or another connected provider, only ever sees masked values.
The model’s response comes back with masked data intact.
Protecto unmasks the response before you see it. You read your original data. The model never did.
Protecto shows the masked prompt, the specific values it identified and masked, and the unmasked response, side by side with the original.
In a document: Upload a file and ask the model to summarize it. Protecto masks the sensitive content in the document before it’s sent for summarization. You see the summary with real names, numbers, and details. The model generated it from masked values only.
You don’t rebuild PII detection and masking logic for every model you connect to LibreChat. Protecto sits in the request path once and covers every model behind it, including new ones you add later. The Gateway is decoupled from the chat interface itself, so swapping LibreChat for another interface later doesn’t mean rebuilding your protection layer. It’s infrastructure you point at, not a plugin you’re locked into.
Self-hosting LibreChat gives you infrastructure auditability. Protecto adds content-level protection on top of it, so sensitive data never reaches any model, internal or external, in the clear. You get visibility into exactly what was masked, when, and in which conversation, which is the evidence a HIPAA or GDPR review actually asks for.
The LibreChat chat experience doesn’t change. You work with real data in the interface you already use. Protecto’s masking and unmasking happens behind the scenes, in real time.
Protecto Privacy Gateway for AI Chat works with any model connected to LibreChat, including OpenAI, Anthropic, Google, Azure, and AWS Bedrock. As you add models or providers to your LibreChat instance, they inherit the same protection automatically.
No. Protecto Privacy Gateway for AI Chat is decoupled from the chat interface. LibreChat is the integration available today; the Gateway runs the same way behind any interface that supports it.
No. LibreChat has no built-in data masking. Protecto adds a masking layer inside LibreChat’s secure chat mode.
Yes, for what reaches the model. Retrieved content is masked before it enters the prompt, and text is masked before embedding. The original file stays in LibreChat’s own storage, outside the Gateway.
No. Masking happens on content moving through the chat path, not on files already sitting in storage. Don’t rely on the Gateway to retroactively clean sensitive files you’ve already uploaded elsewhere.
Combine LibreChat’s native SSO, SAML, and LDAP with Protecto for content-level protection. Infrastructure control alone doesn’t stop sensitive data from reaching the model.
Yes. OpenAI, Anthropic, Google, Azure, and AWS Bedrock, since masking happens before the request leaves LibreChat, independent of provider.
No. Uploaded documents are masked before summarization, and the response is unmasked before the user sees it.
Talk to us about adding Protecto to your LibreChat deployment.