Guide
The best LLM guardrails in 2026, open source and commercial
Executive summary
- What it is
- LLM guardrails screen prompts going into a model and answers coming out, looking for prompt injection, jailbreaks, personal data, harmful content and malformed output. They ship as open-source libraries and models, cloud provider APIs or hosted firewalls.
- The risk
- An instruction hidden in a prompt, a retrieved document or a tool result can make an AI application leak data or act outside its rules. OWASP says it is unclear whether fool-proof prevention of prompt injection exists.
- What to buy or do
- Choose the deployment shape first: a library or model you host, your cloud provider's guardrail API, or a hosted firewall. Then shortlist by the OWASP risks each product documents, and measure detection on your own traffic before you rely on it.
Short answer
A guardrail screens prompts, retrieved content and model responses for prompt injection, leaked data and unsafe output, because one hidden instruction can make an LLM app ignore its rules or call a tool it should not. Pick by deployment shape first (a library or model you run yourself, a cloud provider’s API, or a hosted firewall), then by the OWASP LLM risks each product documents. OWASP says it is unclear whether fool-proof prevention of prompt injection exists, so run a guardrail next to least privilege and human approval.
How we picked and ordered them
“Best” in this guide means a shortlist, not a ranked winner. The tools below are entries in our guardrails category with enough sourced facts to compare. We compile from vendors’ own pages and repositories and do not run the products. The list is grouped by deployment shape: open-source libraries and models first, then cloud provider APIs, then hosted platforms and AI firewalls. Within a group the order is not a ranking of detection quality. The table shows each tool’s Coverage Score, which our methodology computes from documented facts; it measures what a vendor documents, not how well a product works, and it does not set the order here. No tool on this page is a sponsored listing or carries an affiliate link. Archived projects appear only as context.
| Tool | Type | Deployment | Pricing model | OWASP risks | Coverage Score |
|---|---|---|---|---|---|
| NeMo Guardrails NVIDIA | Open sourceApache-2.0 |
| Free |
| Coverage Score 76 out of 100 |
| Guardrails AI Guardrails AI | Open sourceApache-2.0 |
| Free |
| Coverage Score 52 out of 100 |
| Llama Protections Meta | Open, custom license |
| Free |
| Coverage Score 56 out of 100 |
| Granite Guardian IBM | Open sourceApache-2.0 |
| Free |
| Coverage Score 57 out of 100 |
| gpt-oss-safeguard OpenAI | Open sourceApache-2.0 |
| Free | None mapped | Coverage Score 44 out of 100 |
| Qwen3Guard Alibaba Cloud | Open sourceApache-2.0 |
| Free |
| Coverage Score 50 out of 100 |
| Bedrock Guardrails Amazon Web Services | Commercial |
| Usage-based |
| Coverage Score 60 out of 100 |
| Azure AI Content Safety Microsoft Renamed | Commercial |
| Freemium |
| Coverage Score 55 out of 100 |
| Model Armor Google Cloud | Commercial |
| Usage-based |
| Coverage Score 44 out of 100 |
| Lakera Guard Check Point (Lakera) Now Check Point AI Guardrails | Commercial |
| Not published |
| Coverage Score 57 out of 100 |
| Firewall for AI Cloudflare Now AI Security for Apps | Commercial |
| Contact sales |
| Coverage Score 29 out of 100 |
| Pangea AI Guard CrowdStrike (Pangea) | Commercial |
| Not published |
| Coverage Score 48 out of 100 |
| Prompt Security SentinelOne (Prompt Security) | Commercial |
| Not published |
| Coverage Score 29 out of 100 |
| Cisco AI Defense Cisco | Commercial |
| Not published |
| Coverage Score 47 out of 100 |
| Radware LLM Firewall Radware | Commercial |
| Not published |
| Coverage Score 41 out of 100 |
| Alice Alice | Commercial |
| Not published |
| Coverage Score 42 out of 100 |
Coverage Score measures what each vendor documents publicly, within one category. What this measures. Pricing models are as stated on each vendor's page; check the vendor for current pricing.
What a guardrail screens
A guardrail sits between your application and a model. On the way in it screens the prompt, for example for an injection attempt or personal data. On the way out it checks the answer for harmful content, leaked data or a wrong format before your code uses it. OWASP lists input and output filtering among its mitigations for prompt injection, recommends independent guardrails that inspect outputs for system prompt leakage, and says to treat model output as untrusted to prevent improper output handling.
In our AI Security Layers model these products make up the runtime guardrails layer for live AI traffic. Several also redact personal data in the request path, which counts toward the data protection layer for prompts and uploads.
A guardrail lowers risk and leaves some behind
OWASP describes its prompt injection mitigations as ways to reduce impact. Keep least privilege, output validation and human approval for high-risk actions in place whichever guardrail you choose.
Open-source libraries and models
These run in your own environment, so prompts and answers stay with you. In exchange, your team hosts, tunes and monitors them.
NVIDIA NeMo Guardrails
NVIDIA · open-source programmable guardrails toolkit
NeMo Guardrails detects jailbreak and adversarial prompts using self-check, heuristic patterns, NemoGuard or third-party services Source, checked October 21, 2026: docs.nvidia.com (opens in a new tab) , and validates tool inputs and outputs around tool calls (execution rails) Source, checked October 21, 2026: docs.nvidia.com (opens in a new tab) . It is released under the Apache-2.0 license Source, checked October 21, 2026: github.com (opens in a new tab) , with deployment as library, self-hosted, api Source, checked October 21, 2026: docs.nvidia.com (opens in a new tab) . Best for teams that want to script rules for one LLM application in Python and run them on their own infrastructure. See NeMo Guardrails vs Guardrails AI for a side-by-side view.
Guardrails AI
Guardrails AI · open-source Python guardrails framework
Guardrails AI runs input and output guards that detect and mitigate specific risks Source, checked October 21, 2026: guardrailsai.com (opens in a new tab) , and combines pre-built validators from the Guardrails Hub into guards for your own rules Source, checked October 21, 2026: guardrailsai.com (opens in a new tab) . It is released under the Apache-2.0 license Source, checked October 21, 2026: api.github.com (opens in a new tab) . On ownership, Harvey announced its acquisition of Guardrails AI on September 9, 2026. Source, checked October 21, 2026: harvey.ai (opens in a new tab) Best for Python teams that want to compose validators around LLM calls.
Meta Llama protections
Meta · open suite of LLM safety models and tools
The Meta Llama protections suite ships Llama Guard and Prompt Guard as downloadable classifier models Source, checked October 21, 2026: github.com (opens in a new tab) , and it detects prompt injections and jailbreaks with the Prompt Guard 2 classifiers Source, checked October 21, 2026: dev.meta.ai (opens in a new tab) . Its license is a Custom license Source, checked October 21, 2026: github.com (opens in a new tab) , not a standard open-source license, so read the terms before you build on it. Best for teams that want open-weight safety classifiers on their own infrastructure.
IBM Granite Guardian
IBM · open safety and risk-detection model family
Granite Guardian ships open guardian models of several sizes that return a yes or no score Source, checked October 21, 2026: huggingface.co (opens in a new tab) , and it checks whether answers are grounded in the retrieved context in RAG pipelines Source, checked October 21, 2026: github.com (opens in a new tab) . It is released under the Apache-2.0 license Source, checked October 21, 2026: github.com (opens in a new tab) . Best for teams that want a safety classifier they can host and call from their own guardrail pipeline.
OpenAI gpt-oss-safeguard
OpenAI · open-weight policy-following safety model family
gpt-oss-safeguard ships two open reasoning models (20B and 120B) that classify content against a policy you supply Source, checked October 21, 2026: github.com (opens in a new tab) . It takes your own written safety policy at inference time, so definitions change without retraining Source, checked October 21, 2026: developers.openai.com (opens in a new tab) . It is released under the Apache-2.0 license Source, checked October 21, 2026: huggingface.co (opens in a new tab) . Best for trust and safety teams that want to write their own policy in plain language and change it without training a new classifier.
Qwen3Guard
Alibaba Cloud · open multilingual safety moderation model family
Qwen3Guard labels content Safe, Controversial or Unsafe across categories such as violent, sexual, self-harm, politically sensitive and copyright Source, checked October 21, 2026: github.com (opens in a new tab) , and it includes Jailbreak as an input-only safety category for prompts Source, checked October 21, 2026: huggingface.co (opens in a new tab) . For personal data, its model card lists personally identifiable information as a safety category that it labels but does not mask, so pair it with a redaction tool if you need data masked. It is released under the Apache-2.0 license Source, checked October 21, 2026: huggingface.co (opens in a new tab) . Best for teams that want a self-hosted moderation model for prompts and responses.
Cloud provider guardrail APIs
If you already build on one provider, its guardrail API is the least work to adopt, because it plugs into that provider’s model services. Pricing models differ, so check each tool page.
Amazon Bedrock Guardrails
Amazon Web Services · managed AWS guardrail service for generative AI
Amazon Bedrock Guardrails helps protect against prompt injection through the prompt attack content filter Source, checked October 21, 2026: aws.amazon.com (opens in a new tab) , and blocks or masks PII and custom regex patterns in inputs and responses Source, checked October 21, 2026: docs.aws.amazon.com (opens in a new tab) . It is closed source Source, checked October 21, 2026: aws.amazon.com (opens in a new tab) . Best for teams that already build on AWS.
Azure AI Content Safety
Microsoft · cloud API for harmful content and prompt attacks
Azure AI Content Safety detects user prompt attacks that try to bypass system instructions or safety training Source, checked October 21, 2026: learn.microsoft.com (opens in a new tab) , and detects whether LLM text responses are grounded in the source material (preview) Source, checked October 21, 2026: learn.microsoft.com (opens in a new tab) . It is closed source Source, checked October 21, 2026: learn.microsoft.com (opens in a new tab) . Best for teams that build on Azure or Foundry.
Google Cloud Model Armor
Google Cloud · managed screening service for LLM traffic
Model Armor detects prompt injection attempts that try to bypass system guardrails Source, checked October 21, 2026: docs.cloud.google.com (opens in a new tab) , and it scans prompts and responses for malicious URLs Source, checked October 21, 2026: docs.cloud.google.com (opens in a new tab) . It is closed source Source, checked October 21, 2026: docs.cloud.google.com (opens in a new tab) . Best for teams on Google Cloud that want managed screening of prompts and responses.
Guardrail platforms and AI firewalls
The vendor runs these in your request path. You give up some control over where traffic goes and get less to operate.
Lakera Guard
Check Point (Lakera) · hosted guardrail API for prompt and data risks
Lakera Guard is a hosted guardrail API for prompt and data risks. It is closed source Source, checked October 21, 2026: docs.lakera.ai (opens in a new tab) , and its status is renamed Source, checked October 21, 2026: docs.lakera.ai (opens in a new tab) because the documentation now uses the name Check Point AI Guardrails. On ownership, Check Point completed its acquisition of Lakera in the fourth quarter of 2025. Source, checked October 21, 2026: checkpoint.com (opens in a new tab) Best for teams that want a hosted API to screen prompts and responses.
Cloudflare Firewall for AI
Cloudflare Firewall for AI (AI Security for Apps)
Cloudflare · set of WAF detections for LLM-powered apps
Cloudflare Firewall for AI scores prompts for prompt injection so WAF rules can act on the result Source, checked October 21, 2026: developers.cloudflare.com (opens in a new tab) , and detects PII such as phone numbers, email addresses and card numbers in incoming prompts Source, checked October 21, 2026: developers.cloudflare.com (opens in a new tab) . It is closed source Source, checked October 21, 2026: developers.cloudflare.com (opens in a new tab) . Best for teams already on Cloudflare WAF that want prompt rules managed in the same place.
Pangea AI Guard
CrowdStrike (Pangea) · hosted guardrail API for prompts and responses
Pangea AI Guard blocks prompt injection with a Malicious Prompt detector Source, checked October 21, 2026: pangea.cloud (opens in a new tab) , and redacts PII and sensitive data with a Confidential and PII detector Source, checked October 21, 2026: pangea.cloud (opens in a new tab) . On ownership, CrowdStrike's fiscal 2026 Form 10-K states that it acquired 100% of the equity interest of Pangea Cyber Corporation on September 26, 2025. Source, checked October 21, 2026: sec.gov (opens in a new tab) Best for teams that want a hosted guardrail API with configurable recipes.
Prompt Security
SentinelOne (Prompt Security) · AI firewall and usage control platform
Prompt Security blocks adversarial prompts with a real-time AI firewall Source, checked October 21, 2026: sentinelone.com (opens in a new tab) , and it governs what agents can access and which actions they can take, with least-privilege scope Source, checked October 21, 2026: sentinelone.com (opens in a new tab) . It is closed source Source, checked October 21, 2026: prompt.security (opens in a new tab) . On ownership, SentinelOne reported in a Form 8-K dated September 8, 2025 that its acquisition of Prompt Security was completed on September 5, 2025. Source, checked October 21, 2026: sec.gov (opens in a new tab) Best for security teams that already run SentinelOne and want AI usage controls and agent governance in the same console.
Cisco AI Defense
Cisco · AI validation and runtime protection suite
Cisco AI Defense inspects prompts and responses to block prompt injection and denial-of-service attacks Source, checked October 21, 2026: cisco.com (opens in a new tab) , and it scans model outputs for sensitive information, hallucinations and other harmful content Source, checked October 21, 2026: cisco.com (opens in a new tab) . It is closed source Source, checked October 21, 2026: github.com (opens in a new tab) . Best for organizations that already use Cisco security products and want AI discovery, validation and runtime enforcement from one vendor.
Radware LLM Firewall
Radware · inline prompt-level LLM firewall
Radware LLM Firewall inspects prompts for prompt injection and resource abuse before they reach the LLM Source, checked October 21, 2026: jp.radware.com (opens in a new tab) , and it detects and masks, blocks or logs PII in prompts and responses, and blocks attempts to extract PII before it reaches the LLM Source, checked October 21, 2026: jp.radware.com (opens in a new tab) . It is closed source Source, checked October 21, 2026: jp.radware.com (opens in a new tab) . Best for teams that want a vendor-run firewall in front of their LLM applications.
Alice WonderSuite
Alice · AI safety suite with a runtime guardrail
Alice blocks harmful, non-compliant or off-policy responses before they reach users or systems Source, checked October 21, 2026: alice.io (opens in a new tab) , and its dashboard categories include hate speech, violent extremism, child protection, misinformation and financial safety Source, checked October 21, 2026: alice.io (opens in a new tab) . It is closed source Source, checked October 21, 2026: alice.io (opens in a new tab) . Best for consumer-facing products whose main worry is harmful or off-policy content rather than prompt attacks alone.
Layering guardrails in a request path
Each control sees a different part of the request, so most teams run more than one. The order below is our analysis, built from the mitigations OWASP lists for prompt injection.
- Screen the input. Check for prompt attacks and sensitive data before the prompt reaches the model. Most products above sit here.
- Constrain the model. Keep the system prompt narrow and give the model only the tools and tokens it needs, so a bypassed filter cannot do much. Tool and credential limits belong to the agent and tool access layer.
- Validate the output. Check structure with deterministic code, then screen the answer for leaked data, unsafe content or links.
- Log every decision. Record what each control allowed or blocked, so you can tune thresholds and show an auditor what ran.
- Test the whole chain. Attack the application with the guardrail in place, not only the model. Our guide to open-source AI red teaming tools covers free options, and the testing and red teaming layer maps the controls.
A product that covers several steps is convenient, but it is still one vendor’s view of the traffic. If injection is your main worry, our guide to prompt injection detection tools explains how detectors differ.
Left out on purpose
LLM Guard is archived Source, checked October 21, 2026: github.com (opens in a new tab) and Rebuff is archived Source, checked October 21, 2026: api.github.com (opens in a new tab) , so neither is a pick. Read the LLM Guard and Rebuff pages before you consider forking either one.
How to choose
The checklist is our analysis.
- Start from your hosting constraint. If prompts cannot leave your environment, shortlist the libraries and models. If you build on one cloud, check that provider’s API first.
- List the OWASP risks you need covered. Match them to the mapped risks in the table, and open each tool page for the capability behind each mapping.
- Check license and pricing model. The table shows both, linked to the vendor page that states them.
- Check maintenance. Tool pages show the latest release, repository status and any ownership change.
- Measure on your own traffic. Our facts describe what vendors document. Detection quality, false positives and latency are yours to measure before you depend on a guardrail.
Choose a library or model if
Our analysis- Prompts and answers must stay inside your environment.
- You want to edit rules, validators or policies yourself.
- Your team can host and monitor the component.
See NeMo Guardrails, Guardrails AI, Granite Guardian, gpt-oss-safeguard.
Choose a managed service if
Our analysis- You already build on that provider or want one vendor to run the control.
- You would rather configure policies than operate a service.
- You accept sending traffic to a hosted API.
For more on injection defenses, read prompt injection: questions and answers and the glossary entry on guardrails.
Frequently asked questions
What is the difference between LLM guardrails and an LLM firewall?
Both screen traffic to and from a model, and the checks can be the same. Firewall is a label some products use when the control sits in the request path, for example as a gateway or a web application firewall rule. Compare what each product documents instead of the label.
Do guardrails stop prompt injection?
They reduce it but cannot be relied on alone. OWASP says it is unclear whether fool-proof prevention of prompt injection exists, and recommends combining filtering with least privilege, output validation and human approval for high-risk actions.
Are open-source guardrails enough?
They can be, if your team can host, tune and monitor them. A library or a model gives you control over where data goes, and a managed service gives you less to run. The table above shows license, deployment and pricing model for each option.
Which OWASP LLM risks do guardrail tools address?
In our scoring, guardrail tools are weighed on LLM01 prompt injection, LLM02 sensitive information disclosure, LLM05 improper output handling, LLM07 system prompt leakage, LLM09 misinformation and LLM10 unbounded consumption. Each tool page shows which of these it maps to and why.
Does the Coverage Score show which guardrail detects attacks best?
No. The Coverage Score measures how much a vendor documents publicly, such as capabilities, deployment options and documentation. We do not run these products, so it says nothing about detection accuracy, false positives or latency.
Key facts you can cite
-
NeMo Guardrails is released under the Apache-2.0 license.
Source Source, checked October 21, 2026: github.com (opens in a new tab) Checked
-
Guardrails AI is released under the Apache-2.0 license.
Source Source, checked October 21, 2026: api.github.com (opens in a new tab) Checked
-
Llama Protections is released under the Custom license.
Source Source, checked October 21, 2026: github.com (opens in a new tab) Checked
-
Granite Guardian is released under the Apache-2.0 license.
Source Source, checked October 21, 2026: github.com (opens in a new tab) Checked
-
gpt-oss-safeguard is released under the Apache-2.0 license.
Source Source, checked October 21, 2026: huggingface.co (opens in a new tab) Checked
Sources & last reviewed
Standards and references (3 sources)
NVIDIA NeMo Guardrails (7 sources)
- github.com/NVIDIA-NeMo/Guardrails/blob/main/LICENSE.md checked
- api.github.com/repos/NVIDIA-NeMo/Guardrails checked
- docs.nvidia.com/nemo/guardrails/latest/get-started/installation-guide checked
- github.com/NVIDIA-NeMo/Guardrails checked
- docs.nvidia.com/nemo/guardrails/latest/index.html checked
- github.com/NVIDIA-NeMo/Guardrails/blob/develop/SECURITY.md checked
- api.github.com/repos/NVIDIA-NeMo/Guardrails/releases/latest checked
Guardrails AI (6 sources)
Meta Llama Protections (6 sources)
- meta-llama.github.io/PurpleLlama/LlamaFirewall checked
- api.github.com/repos/meta-llama/PurpleLlama checked
- github.com/meta-llama/PurpleLlama/tree/main/LlamaFirewall checked
- github.com/meta-llama/PurpleLlama checked
- github.com/meta-llama/PurpleLlama/blob/main/LICENSE checked
- dev.meta.ai/llama/llama-protections checked
IBM Granite Guardian (5 sources)
OpenAI gpt-oss-safeguard (5 sources)
- github.com/openai/gpt-oss-safeguard checked
- api.github.com/repos/openai/gpt-oss-safeguard checked
- huggingface.co/openai/gpt-oss-safeguard-20b checked
- developers.openai.com/cookbook/articles/gpt-oss-safeguard-guide checked
- cdn.openai.com/pdf/08b7dee4-8bc6-4955-a219-7793fb69090c/Technical_r... checked
Qwen3Guard (6 sources)
Amazon Bedrock Guardrails (4 sources)
Azure AI Content Safety (7 sources)
- learn.microsoft.com/en-us/azure/ai-services/content-safety/overview checked
- azure.microsoft.com/en-us/blog/enhance-ai-security-with-azure-promp... checked
- azure.microsoft.com/en-us/products/ai-services/ai-content-safety checked
- learn.microsoft.com/en-us/azure/ai-services/content-safety/quicksta... checked
- azure.microsoft.com/en-us/pricing/details/cognitive-services/conten... checked
- learn.microsoft.com/en-us/azure/ai-services/content-safety/concepts... checked
- learn.microsoft.com/en-us/rest/api/contentsafety/text-operations/de... checked
Google Cloud Model Armor (4 sources)
Lakera Guard (10 sources)
- checkpoint.com/press-releases/check-point-software-reports-2025-thi... checked
- checkpoint.com/press-releases/check-point-software-reports-fourth-q... checked
- docs.lakera.ai/docs/quickstart checked
- docs.lakera.ai/guard checked
- docs.lakera.ai/docs/platform checked
- docs.lakera.ai/docs/defenses checked
- docs.lakera.ai/docs/integration checked
- lakera.ai/lakera-guard checked
- docs.lakera.ai checked
- docs.lakera.ai/api-reference checked
Cloudflare Firewall for AI (AI Security for Apps) (1 sources)
Pangea AI Guard (6 sources)
Prompt Security (4 sources)
Cisco AI Defense (6 sources)
- cisco.com/site/us/en/products/security/ai-defense/index.html checked
- cisco.com/c/en/us/products/collateral/security/ai-defense/ai-defens... checked
- github.com/cisco-ai-defense checked
- cisco.com/site/us/en/products/security/ai-defense/ai-runtime/index.... checked
- developer.cisco.com/docs/ai-defense-inspection checked
- developer.cisco.com/docs/ai-defense/getting-started checked
Radware LLM Firewall (4 sources)
Alice WonderSuite (4 sources)
- alice.io checked
- alice.io/blog/why-we-became-alice checked
- alice.io/products/wonderfence checked
- docs.alice.io checked