Best LLM Guardrails Platform in 2026
This post defines the criteria that matter, shows how Bifrost meets each one, and walks through rules, profiles, redaction, streaming, MCP coverage, and audit.
TL;DR
- An LLM guardrails platform enforces content and security policy on prompts, responses, and tool calls at a single control point, so every application and model provider inherits the same protection.
- Bifrost ships three managed guardrails (Secrets Detection, Prompt Guardrails, Custom Regex with a PII template) and integrates eleven external providers, all attached to CEL-based rules and reusable profiles.
- Bifrost guardrails cover LLM traffic and MCP tool executions, support detect, block, and redact actions, and offer three redaction modes including reversible placeholders with permission-gated reveal.
- Streaming responses stay streamed for detect-only and logs-only rules; block-capable rules hold the stream until the guardrail decision is made.
- With AI Gateway + Bifrost Edge (alpha), the same guardrail rules extend to desktop apps, browser AI, and coding agents on every company machine.
Prompt injection is LLM01 and sensitive information disclosure is LLM02 in the OWASP Top 10 for LLM Applications 2025, and both are failures at the request boundary rather than inside the model. LLM guardrails are the control that inspects that boundary, and an LLM guardrails platform is the infrastructure that applies them consistently across every application, provider, and tool call. Bifrost, the open-source AI gateway built in Go by Maxim AI, is the best choice for enterprises running mission-critical AI workloads that require best-in-class performance, scalability, and reliability, and its enterprise guardrails run inside that same request path. This post sets out the criteria an LLM guardrails platform must meet, shows how Bifrost satisfies each one, and walks through the implementation from rule to audit record.
What Is an LLM Guardrails Platform?
An LLM guardrails platform is a policy enforcement layer that validates LLM inputs, outputs, and tool executions against organizational rules before content reaches a model, a user, or an external system. It sits between applications and providers, so policy is defined once and applied to all traffic rather than reimplemented inside each application.
A single detector, whether a regex, a classifier, or a hosted moderation API, is a guardrail. A platform decides which detector runs, on which traffic, at which phase, and what happens when it fires. The NIST AI Risk Management Framework frames this as the Govern, Map, Measure, and Manage functions: the detector measures, but the platform governs and manages.
A gateway is the natural place for that platform, which is why Bifrost implements guardrails inside the request pipeline rather than as a separate service. The broader argument is covered in why LLM guardrails belong at the gateway layer.
Evaluation Criteria for an LLM Guardrails Platform
Eight criteria separate a guardrails platform from a collection of detectors. Each maps to a failure mode: a detector that cannot see tool calls misses excessive agency, a platform that can only block turns every PII hit into a broken session, and a platform without an audit record cannot satisfy a compliance reviewer.
| Criterion | What it means in production |
|---|---|
| Coverage of the request boundary | Inspects prompts, responses, and tool-call arguments and results |
| Deterministic plus semantic detection | Local pattern checks for known formats, plus a judge for contextual policy |
| Targeting | Rules apply by model, provider, team, virtual key, header, or tool, not per application |
| Remediation beyond block | Detect, block, or redact, with control over where redaction applies |
| Streaming-aware execution | Streamed responses are inspected without breaking delivery |
| Provider choice | Managed checks with no external dependency, plus integrations with existing security vendors |
| Auditability | Guardrail decisions in request logs, and configuration changes in signed audit logs |
| Reach | Applies to endpoint AI usage, not only server-side SDK traffic |
The governance resource page covers how these criteria fit with budgets, rate limits, and access control, which are the other half of an enterprise control plane. Teams still deciding which detectors they need should start with the guide to LLM guardrails and how to implement them before evaluating platforms against this list.
How Bifrost Meets Each Criterion
Bifrost satisfies all eight criteria within the gateway request path, using two primitives: rules that decide when to evaluate, and profiles that decide how. Guardrails apply to both the llm and mcp targets, support three remediation actions and three redaction modes, run on streaming responses, and record every decision.
| Criterion | How Bifrost meets it |
|---|---|
| Coverage of the request boundary | Rule targets llm (prompt and response) and mcp (tool arguments and result); tool-call arguments in LLM responses are scanned by default |
| Deterministic plus semantic detection | Secrets Detection and Custom Regex run in-process; Prompt Guardrails uses a configured judge model for natural-language policies |
| Targeting | CEL expressions over model, provider, headers, virtual key, team, customer, user, MCP client, tool, and arguments, plus per-rule sampling |
| Remediation beyond block | detect_only, block, or redact, with replace, mask, or hash strategies |
| Streaming-aware execution | Detect-only and logs-only rules never delay delivery; runtime redaction releases buffered safe segments; block-capable rules hold the stream |
| Provider choice | Three Bifrost-managed providers and eleven integrated external providers, all attachable to the same rules |
| Auditability | Guardrail details on each request log; HMAC-signed audit logs for rule and profile changes, exportable as JSON, JSON Lines, or Syslog |
| Reach | AI Gateway + Bifrost Edge (alpha) routes endpoint AI traffic through the same rules |
The cost of running this at the gateway is small. Bifrost adds 11 microseconds of overhead per request at 5,000 requests per second in sustained benchmarks, so the latency budget is spent on the guardrail provider, not the gateway. A local profile such as Secrets Detection adds no network round trip; sampling and timeouts bound external and judge-based profiles.
Secrets Detection, PII Redaction, and Semantic Policy Without External Services
Bifrost includes three managed guardrail providers that need no external account: Secrets Detection, Custom Regex, and Prompt Guardrails. The first two run in-process with no network dependency and can detect, block, or redact. Prompt Guardrails uses an LLM judge already configured in Bifrost and returns an allow or block decision.
| Managed provider | Evaluation | Decisions | Best for |
|---|---|---|---|
| Secrets Detection | Embedded Gitleaks v8.30.1 rules, 222 in the current build | Detect, block, or redact | API keys, tokens, private keys, credentials |
| Custom Regex | Local RE2 patterns, including a PII Detection template | Detect, block, or redact | Known formats, internal identifiers, PII-like values |
| Prompt Guardrails | Configured Bifrost judge model | Allow or block | Semantic, organization-specific policies |
Secrets Detection covers cloud credentials, source control tokens, package registry tokens, AI provider keys (OpenAI, Anthropic, Cohere, Hugging Face, and others), messaging webhooks, and generic patterns such as JWTs. Its default action is block; set action: "redact" to rewrite the secret instead of failing the request. An ignored_secret_keywords allowlist suppresses known test fixtures and should stay narrow.
The Custom Regex PII Detection template pre-fills five patterns: email address, US phone number, US Social Security Number, credit-card-like number, and IPv4 address. It is pattern-based, so it does not classify names or international identifiers; for semantic PII classification, pair it with Microsoft Presidio or Azure AI Language PII. Custom Regex uses Go's RE2 engine, so patterns cannot use lookaheads, lookbehinds, or backreferences.
Prompt Guardrails is the right tool for policies that depend on meaning: blocking impersonation of an employee, preventing definitive medical diagnoses, or restricting discussion of unreleased products. The judge model must support response_format, and each profile has a Verify step that runs a real judge call before it is enabled. Each evaluated phase costs one extra model call, and Prompt Guardrails fails open on judge timeouts or errors, so it should not be the only control on a security-critical boundary. The PII, injection, and toxicity guardrails guide covers how to layer deterministic and semantic checks.
Integrated Guardrail Providers
Bifrost integrates eleven external guardrail providers as profiles, so a team with an existing security vendor keeps that vendor and gains gateway-level targeting, sampling, and logging. The integrations are Microsoft Presidio, Azure AI Language PII, AWS Bedrock Guardrails, Azure Content Safety, Google Model Armor, CrowdStrike AIDR, Gray Swan Cygnal, Patronus AI, Check Point AI Agent Security, Repello Argus, and Singulr AI.
Three groups matter when choosing among them. Microsoft Presidio, Azure AI Language PII, Check Point AI Agent Security, and Singulr AI return findings that Bifrost redacts itself. AWS Bedrock Guardrails, Google Model Armor, and CrowdStrike AIDR can return provider-managed transformed text. Azure Content Safety, Gray Swan Cygnal, Patronus AI, and Repello Argus detect and block, with Patronus adding hallucination detection and Gray Swan adding natural-language rules and mutation detection.
Every provider can be linked to both LLM and MCP rules without separate setup. One constraint applies when mixing them: a provider that returns transformed text cannot rewrite the same phase as a Bifrost-managed redaction provider, and Bifrost fails closed rather than merging two rewritten outputs. Detection-only and blocking profiles run alongside redaction freely. A worked example is in the AWS Bedrock Guardrails setup in Bifrost.
Implementation Walkthrough: Rules, Profiles, Targets, and Actions
A Bifrost guardrail deployment has two objects. A profile configures a provider (credentials, thresholds, patterns, action, redaction settings) and is reusable. A rule is a CEL expression that selects traffic, names a target (llm or mcp) and a phase (input, output, or both), and links one or more profiles, evaluated in order until one intervenes or fails.
Start with a profile. This Secrets Detection profile redacts credentials in logs only, so the model call proceeds with the original text while Bifrost logs and trace exports never store the raw secret:
{
"id": 10,
"provider_name": "secrets",
"policy_name": "redact-credentials-in-logs",
"enabled": true,
"config": {
"ignored_secret_keywords": ["example", "dummy"],
"action": "redact",
"redaction_strategy": "replace",
"redaction_mode": "logs_only"
}
}
Then a rule that applies it to production traffic from one team, on both phases:
{
"id": 101,
"name": "credential-hygiene-production",
"enabled": true,
"target": "llm",
"cel_expression": "team == \"team-platform\" && headers[\"x-bf-env\"] == \"production\"",
"apply_to": "both",
"sampling_rate": 100,
"timeout": 5000,
"provider_config_ids": [10]
}
The CEL expression is where targeting lives. LLM rules can reference model, provider, and params; MCP rules can reference mcp_client, mcp_tool, and mcp_arguments; both can reference headers, virtual_key, customer, team, and user. Identity fields come from the virtual key that authenticated the request, so one rule covers a whole team or customer with no application change. Message content is not exposed to CEL; the linked profiles inspect it.
Three rule properties matter beyond the basics. sampling_rate evaluates a percentage of matching requests, which keeps an expensive judge profile affordable on high-volume endpoints. send_all_conversation_turns and max_turns_to_send control how much history an input rule sends to the provider. timeout bounds the provider call so a slow guardrail service cannot stall the request.
Rules and profiles can be managed in the dashboard, through the management API at /api/guardrails/rules and /api/guardrails/{provider}, in config.json, or in Helm values. A blocked request returns HTTP 446 with a guardrail_violation error naming the guardrail, the validation stage, and each violation. A longer setup narrative is in implementing LLM guardrails with Bifrost.
Redaction Modes and Streaming Behavior
Bifrost supports three redaction modes, and the mode decides where the rewrite applies: the live payload, Bifrost logs, or both. Six providers support Bifrost-managed redaction: Custom Regex, Secrets Detection, Microsoft Presidio, Azure AI Language PII, Check Point AI Agent Security, and Singulr AI. The others detect, block, or return provider-managed transformations.
| Mode | Runtime request and response | Bifrost logs | Trace-export connectors | Reveal |
|---|---|---|---|---|
runtime |
Redacted with replace, mask, or hash |
Redacted the same way | Redacted content only | No |
logs_only |
Left raw | Reversible placeholders such as [EMAIL-1] |
Placeholderized | Yes, Bifrost logs only |
runtime_reversible |
Reversible placeholders | Reversible placeholders | Placeholderized | Yes, Bifrost logs only |
The replace strategy keeps only the entity type ([EMAIL]), mask preserves approximate length, and hash substitutes a deterministic short hash. Reversible modes store a placeholder mapping with the log row, encrypted when an encryption key is configured, and only a user holding the Logs:Reveal permission can retrieve it. The mapping is never exported to trace connectors. Presidio and Azure AI Language PII default to detect_only, so action: "redact" must be set explicitly.
Streaming behavior follows from what the matched rules can do. Detect-only and logs-only rules observe the stream and never delay delivery. Runtime redaction checks buffered text segments and releases redacted text as generation proceeds. If any matched rule can block, Bifrost holds the complete stream until evaluation finishes, then replays it or returns the guardrail intervention. Replay pacing is off by default and is configurable up to 1,000 milliseconds between buffered events via stream_replay_event_interval_ms. This applies to streaming Chat Completions, Text Completions, and Responses API requests.
Tool-call arguments in LLM responses are scanned by default for Custom Regex, Secrets Detection, Presidio, and Azure AI Language PII. Runtime redaction of an argument can change what a shell command does, so logs_only is the safer choice when agents execute those calls. The redaction modes reference has the full behavior matrix.
MCP Security: Guardrails on Tool Calls, Not Just Prompts
Bifrost applies guardrails at the MCP tool-execution boundary, which means the rule runs against the arguments a tool will receive and the result it returns, not merely against the tool call an LLM proposed. This is the control that addresses excessive agency (LLM06 in the OWASP list): a blocked input rule stops the tool before it executes, and a blocked output rule withholds the result.
An MCP rule sets target: "mcp" and selects traffic by client, tool, or argument value. The first example scans arguments before a GitHub tool creates an issue; the second selects any payment above a threshold:
{
"name": "protect-github-issue-creation",
"enabled": true,
"target": "mcp",
"celExpression": "mcp_client == \"github\" && mcp_tool == \"create_issue\"",
"applyTo": "input",
"samplingRate": 100,
"timeout": 5000,
"selectedGuardrailProfiles": ["regex:1", "bedrock:2"]
}
("amount" in mcp_arguments) && mcp_arguments["amount"] > 1000
input inspects arguments, then allows, redacts and executes, or blocks before execution. output executes the tool, inspects a text-bearing result, then allows, redacts, or refuses to return it. both runs the input flow and, if allowed, the output flow. MCP rules use the same profiles, sampling, timeouts, and redaction modes as LLM rules.
This coverage sits on top of the rest of the MCP gateway: centralized server connections, tool filtering per virtual key, and the access controls in the MCP gateway governance post. For the broader agent threat model, see guardrails in agent workflows.
Audit, Access Control, and Deployment for Regulated Teams
Bifrost records two separate trails: request logs capture each guardrail decision, and audit logs capture who changed a rule or profile and when. Article 12 of the EU AI Act requires high-risk AI systems to allow automatic recording of events over the system's lifetime, and this separation is what makes both the decision and the policy change reviewable.
In request logs, each entry stores the redacted form of detected content, and the Guardrail Details panel shows the rule, phase, action, profile, and, for Prompt Guardrails, the judge model, token usage, and block reason. Log exports to object storage carry the same redacted fields and never the reveal mapping.
Audit logs record administrative activity with the initiator, target, path, IP, and outcome. Entries can be HMAC-signed, retained for a configurable number of days, exported as JSON, JSON Lines, or RFC 5424 Syslog, and archived to S3-compatible or GCS buckets for long-term retention.
Role-based access control exposes GuardrailsConfig and GuardrailsProviders as distinct resources and Reveal as a distinct operation, so an auditor role can view rules without editing them or revealing redacted values. For teams that cannot send traffic outside their network, Bifrost runs as an in-VPC deployment on AWS, GCP, or Azure with a 99.95% uptime SLA, and the managed providers keep the entire guardrail path inside that boundary.
The Bifrost Enterprise page covers the full deployment and compliance profile, including air-gapped and on-prem options for regulated industries.
Extending AI Guardrails to Every Endpoint with AI Gateway + Bifrost Edge
A gateway governs only the traffic configured to reach it, and AI on laptops usually is not. AI Gateway + Bifrost Edge closes that gap: the Bifrost AI gateway remains the control plane where guardrail rules and profiles are defined, and Bifrost Edge runs on each machine to route AI traffic from desktop apps, browser AI, and coding agents through it.
Nothing changes on the policy side. The same Secrets Detection, Custom Regex, and integrated provider profiles that protect gateway traffic apply to a prompt typed into ChatGPT in the browser or a request from Claude Code in the terminal, before the prompt reaches a model and before the response returns. Edge security and guardrails documents this behavior, and Edge MDM deployment covers fleet rollout through Jamf, Intune, and Kandji.
Bifrost Edge is currently in alpha, and teams register for onboarding. The guardrail rules a platform team writes for server-side traffic are exactly the rules Edge enforces at the endpoint. The Claude Code security guide shows the gateway half of that story for one coding agent.
Frequently Asked Questions
What are examples of AI guardrails?
Common LLM guardrails include secrets detection that blocks or redacts leaked API keys, PII detection that rewrites email addresses and Social Security Numbers, prompt injection detection on inputs, content safety filters on outputs, and natural-language policies enforced by a judge model. In Bifrost, each is a profile attached to a rule targeting LLM traffic or MCP tool executions.
What are the best AI guardrails for enterprise traffic?
The best configuration layers deterministic and semantic checks. Run Secrets Detection and Custom Regex locally for credentials and known formats, add a PII provider such as Microsoft Presidio with redaction, and reserve Prompt Guardrails or an integrated content safety provider for policies that depend on meaning. Bifrost lets one rule link multiple profiles in order, so layering is a configuration choice.
Why do LLM safety guardrails collapse?
Guardrails collapse when they run in only one place. A filter inside one application does not protect a second application, a coding agent, or a tool call an agent issues. Judge-based guardrails fail open on timeouts, and regex-only guardrails miss unformatted values. A gateway-level LLM guardrails platform with deterministic and semantic layers, MCP coverage, and endpoint reach addresses each gap.
How do LLM guardrails handle streaming responses?
In Bifrost, streaming delivery depends on what the matched output rules can do. Detect-only and logs-only rules observe the stream without delaying it. Runtime redaction checks buffered segments and releases safe text as the response is generated. Rules that can block hold the complete stream until evaluation finishes, then replay it or return the intervention, with optional pacing between buffered events.
Can guardrails redact sensitive data without blocking the request?
Yes. Bifrost supports a redact action for Custom Regex, Secrets Detection, Microsoft Presidio, Azure AI Language PII, Check Point AI Agent Security, and Singulr AI. The runtime mode rewrites the live payload, logs_only redacts only logs and trace exports, and runtime_reversible redacts both with placeholders that a user holding Logs:Reveal can resolve in Bifrost logs.
Do LLM guardrails apply to MCP tool calls?
In Bifrost, yes. A rule with target: "mcp" evaluates tool arguments before execution, tool results after execution, or both, scoped by MCP client, tool name, or argument value through CEL. All providers on the enterprise guardrails page can be linked to MCP rules, and a block on the input phase stops the tool before it runs.
Start Building with Bifrost
An LLM guardrails platform earns its place when it covers prompts, responses, and tool calls with one set of rules, remediates with redaction rather than only denial, keeps streaming traffic streaming, and leaves a record that survives an audit. Bifrost meets those requirements inside the gateway that already routes traffic across 25+ providers and 10,000+ models, with managed and integrated guardrails, MCP coverage, and AI Gateway + Bifrost Edge to extend the same protection to every machine.
The governance overview shows how guardrails combine with virtual keys, budgets, and audit logs into one control plane. To see the guardrails pipeline running against your own traffic, book a demo with the Bifrost team.