Introducing boringai: Privacy-First LLM Gateway
A gateway that detects and redacts sensitive data — PII, credentials, secrets, PHI — before forwarding a request to an LLM provider, so the provider receives redacted text. Hosted, the original text passes through the boringai gateway; self-hosted, it stays inside your own infrastructure.

Prompts sent to a hosted LLM often carry patient records, source code with API keys, user chat messages or financial documents, and all of it lands with a third party. boringai is a gateway that detects and redacts that data before the request reaches the model provider.
It is also an agent-native gateway: agents call its tools over MCP, GraphQL or REST. The model receives only the redacted text.
Transcript
Prompts sent to a hosted language model often carry patient records, API keys or financial documents. boringai is a gateway that detects and redacts that data before the request reaches the model provider.
An app or agent calls it over MCP, GraphQL or REST. The gateway scans the text with regex across 14 categories, redacts what it finds, and forwards only the redacted text.
Where the original text goes depends on where the gateway runs. Hosted, on boracode.ai, it passes through the boringai gateway. Self-hosted, it stays inside your own infrastructure.
Redaction is not de-identification. HIPAA's Safe Harbor method requires all 18 listed identifier types to be removed, and free-text notes can still identify a patient. boringai reduces what reaches the provider. It does not by itself make a deployment HIPAA-compliant.
It ships 12 tools in 4 categories. Each is registered once, and its REST, MCP and GraphQL interfaces are generated from that one definition.
So the model provider receives redacted text, and whether that meets Safe Harbor is for the covered entity to decide. The full write-up is at boracode.ai.
The problem
Take a hospital that wants GLM-4.7 to draft synoptic pathology reports. The input contains the patient name, DOB, MRN, accession number, clinical history and specimen details. Sending it directly to z.ai has these consequences:
- —A BAA is required, and it sits on the Enterprise tier.
- —Patient data leaves your infrastructure.
- —A failure triggers HIPAA breach notification requirements.
- —In practice, many hospitals do not use AI at all.
The design goal follows from that list: the LLM provider receives only redacted text.
Where the raw PHI goes depends on where the gateway runs. In hosted mode (boracode.ai), the application sends the original text, PHI included, to the boringai gateway, which redacts it and forwards only the redacted text to the LLM provider. In self-hosted mode, the gateway runs inside the hospital's own infrastructure, so the original text stays there and only the redacted text leaves.
The architecture
boringai sits between the application and the LLM provider. It detects and redacts PII before forwarding, so the model receives redacted text only.
Redaction is not the same as de-identification. HIPAA's Safe Harbor method counts data as de-identified only when all 18 identifier types it lists are removed (names, geographic subdivisions smaller than a state, all date elements except the year, phone and fax numbers, email addresses, SSNs, MRNs, health-plan and account numbers, licence, vehicle and device identifiers, URLs, IP addresses, biometric identifiers, full-face photos, and any other unique identifying number or code), and the covered entity has no actual knowledge that what remains could identify the patient.
Free-text clinical fields such as history and specimen notes can still identify a patient after the structured identifiers are gone, through a dated event, a place or a rare condition, and a detector can miss them. boringai reduces what reaches the LLM provider; it does not by itself make a deployment HIPAA-compliant, and whether a given output meets Safe Harbor is a determination the covered entity has to make.
How PII detection works
12 tools, 4 categories
Each tool is registered once. REST, MCP and GraphQL interfaces are all generated from that single definition.
Domain namespaces
Tools are grouped into domains. Healthcare is the only one implemented today; Education and Legal are planned.
Try it
curl -X POST https://boracode.ai/api/tools/pii_check \
-H "Authorization: Bearer bai_..." \
-d '{"text":"Email: patient@hospital.com"}'
# Response:
{"redacted_text":"Email: [REDACTED:email]","counts":{"email":1}}Corrected 2026-10-10: the post said PHI never leaves the hospital's boundary and that redacted output is de-identified under HIPAA. In hosted mode the original text reaches the boringai gateway, and redaction alone does not meet Safe Harbor; the text and the architecture diagram now say what the gateway does in each mode.
boringai is built by boracode labs, a software studio and AI experimentation hub in Kampala, Uganda.
