Best AI guardrails tools in 2026, ranked by what they stop
Best AI guardrails tools for 2026, from content filters on AWS, Google Cloud, Azure and OpenAI to open-source libraries, with Amiril first for an agent's tool calls.
Best AI guardrails tools for 2026, from content filters on AWS, Google Cloud, Azure and OpenAI to open-source libraries, with Amiril first for an agent's tool calls.
We make Amiril, and it tops our list of best AI guardrails tools because it stops an agent's bad tool call before the tool runs. The content filters on this list read the prompt and the reply for jailbreaks and slurs. A support agent can pass those checks and still call issue_refund with ten times the order value, or delete a record it was never meant to touch, because a customer asked politely. Three of the other nine, Lakera, Giskard Guards and NeMo Guardrails, inspect tool calls too. Azure AI Content Safety can flag a tool call that doesn't match what the user asked, Meta's Llama Guard has one category for tool calls, Code Interpreter Abuse, and the other four screen content.
Giskard, which sells guardrails itself, makes the same point in its own roundup of nine AI guardrails. Its example is a user with a member role asking an assistant to delete the Q2 budget draft. The wording is harmless. A text filter lets it through, and only a check that reads the tool call and the user's role can stop it.
We ranked the best AI guardrails tools on five things. A tool ranked higher when it:
Prices and features for the other products come from their own pages, read on 3 December 2026.
| Tool | Best for | Alerts or refuses | Content, actions or access | Starting price, December 2026 |
|---|---|---|---|---|
| Amiril | Stopping an agent's bad tool calls with rules learned from its own runs | Refuses | Actions, access | Free plan; Team $249 a month |
| Lakera | A security team protecting many agents at once | Refuses | Content, actions, access | Free Community plan, 10,000 requests a month |
| Giskard Guards | Regulated enterprises that need guardrails on their own servers | Allow, monitor or block | Content, actions | Not published |
| NeMo Guardrails | Engineers who want to write the policy themselves | Both, depending on mode | Content, actions | Free, open source |
| Amazon Bedrock Guardrails | Content filtering on AWS | Refuses | Content | $0.15 per 1,000 text units for content filters |
| Google Cloud Model Armor | Content and prompt attack screening on Google Cloud | Refuses inline; verdict through the API | Content | Free up to 2 million tokens a month |
| Azure AI Content Safety | Content filtering in Microsoft Foundry | Severity levels; your code blocks | Content, some actions | Free tier of 5,000 text records a month |
| Llama Guard 4 and LlamaFirewall | Teams that want to host an open safety model | Safe or unsafe label; your code acts | Content, some actions | Free weights; you host them |
| Guardrails AI | Validating model input and output in Python | Refuses, per validator | Content | Free, open source |
| OpenAI Moderation | A free harm classifier for any app | Flags; your code decides | Content | Free |
The guardrail for what an agent does, checked in the agent's process before each tool call.
A rule in Amiril is a few lines of text, which you write yourself or accept from a draft Amiril makes out of runs that went wrong. This one is for a support agent with two tools, lookup_order and issue_refund. It reads the order total the lookup returned earlier in the same run and blocks a refund larger than that:
@id("refund-within-order")
@sentence("A refund of {amount} is more than order {order_id} cost")
block (
agent == "support",
tool == "issue_refund"
)
unless {
paid = latest(lookup_order{ args.order_id == call.args.order_id }).result.total;
call.args.amount <= paid
};A refund for an order the agent never looked up is blocked as well, because paid has no value and an unless rule blocks when the value it needs is missing. The model asks for a 400 refund on a 40 order and gets this back in place of the tool's result, while issue_refund never runs:
The call to issue_refund was not performed. Rule refund-within-order blocked it: A refund of 400 is more than order A-1 cost (paid 40). Do not retry this call with different arguments or achieve the same outcome another way; tell the user it was not performed.
Rules can also allow one call per invoice with @per, add up amounts with sum, or look across a whole session with @scope("session"). The rule language tour has each one. The SDK checks rules for agents on LangGraph, Google ADK and LiveKit, and in plain Python or TypeScript.
What sets Amiril apart from the libraries further down is where a rule comes from. Amiril ranks each of the agent's runs by rarity from its traces, then puts runs that share a problem into one issue. For an issue, an AI model drafts a rule that would have stopped those runs, and Amiril tests the draft on past runs. A draft survives only if it catches some of the issue's runs and fires on at most one in a hundred of the agent's other runs. Then it appears as a rule suggestion with a line like "Would have blocked 4 of 5 runs".
A published rule starts in Shadow mode, where it records what it would have done and lets every call through. Test on past calls replays any version, an unpublished draft included, over the last 24 hours, 7 days or 30 days and lists the calls it would have fired on. Publish a change and running agents pick it up within about a minute, with no redeploy. If Amiril can't be reached, the SDK keeps enforcing the last rules it had, and a copy on disk survives a restart.
The Amiril gateway is an MCP server between your agents and their tool servers, where every tool starts denied and you grant tools per agent by Read, Write or Destructive. An access suggestion proposes taking away a tool an agent hasn't called in 30 days.
Amiril has a free plan, and Team is $249 a month.
Prompt attack and data leak protection for a security team running many agents.
Lakera's AI Agent Security discovers the agents in an organisation and the MCP tools they connect to, assesses each one's risk and blocks prompt attacks, data leakage and unsafe tool use at runtime. Giskard's roundup lists it among the guardrail companies bought by large security vendors, in Lakera's case Check Point. The Community plan is free for 10,000 requests a month and prompts up to 8,000 tokens, and Enterprise is priced on a call.
Policy as code for regulated companies that want the guardrail inside their own infrastructure.
Giskard Guards screens prompts, tool calls and responses and returns allow, monitor or block. Authorization rules are written in OPA/Rego, it ships policy packs for the EU AI Act and OWASP, and it runs on premises. Giskard's comparison article describes it as a managed engagement configured with your team, with no self-serve free tier, and Giskard's site publishes no price. Its quality detectors, for groundedness and staying on task, are unusual in this category, which is mostly security products.
The open-source pick if you'd rather write every rail yourself.
NVIDIA's library covers input, output, retrieval and tool calls. In check mode your code sends a proposed tool call for checking and decides what to do with the answer. In proxy mode the library sits in front of the model and turns a blocked request into a refusal or an error. It combines local rules with model-backed checks for jailbreaks and injected instructions. It is Apache 2.0 licensed, and the checks can run on local detectors or call hosted inference endpoints.
The obvious content filter for a team already on AWS.
Bedrock Guardrails has six kinds of check. You pay for the ones you switch on. Content filters and denied topics cost $0.15 per 1,000 text units each, where a text unit is up to 1,000 characters. Word filters and regex-based sensitive information filters are free. A blocked prompt is charged for the guardrail check and never reaches the model.
A cheap, model-agnostic screen for prompts and responses, strongest inside Google Cloud.
Model Armor detects prompt injection, jailbreaks, malicious URLs, malware in files and leaks of personal or financial data, and filters harmful content with confidence thresholds you set. It works with any model. Calls go through a REST API, or inline through Google services such as the Gemini platform and Apigee. The first 2 million tokens a month are free, then it's $0.10 per million.
Microsoft's harm classifiers and Prompt Shields, for teams building in Foundry.
The service detects offensive content in text and images and gives each result a severity level, which your application uses to decide what to block. The pricing page lists Prompt Shields, protected material detection and groundedness detection, and the first 5,000 text records each month are free. Task Adherence, in preview, flags an agent's planned tool call when it doesn't match what the user asked, and your code blocks it or sends it for review. Microsoft now sells it as Content Safety in Foundry Control Plane.
Open safety models from Meta, for teams that would rather host the classifier than call an API.
Llama Guard 4 is a 12-billion-parameter classifier that labels a prompt or a response safe or unsafe and names the categories it breaks, from the MLCommons hazards taxonomy plus a Code Interpreter Abuse category for tool calls. LlamaFirewall orchestrates it with Prompt Guard 2 for injection, AlignmentCheck, which reads an agent's reasoning for signs of goal hijacking, and CodeShield for insecure generated code. The weights are free under the Llama 4 Community License, so the cost is the hardware you run them on.
Input and output validation in Python, plus help getting structured data out of a model.
The Guardrails framework is free and Apache 2.0 licensed. You build a guard from validators, such as a regex match or a toxic language check, and set each one to raise an exception when it fails, or to fix the output instead. Validators now install as ordinary PyPI packages, and a notice in the README from July 2026 set 25 August 2026 as the cutoff for hosted remote inferencing.
A free classifier for harmful text and images, and a sensible first filter for any app.
The moderation endpoint returns flags and harm categories for text and images, and is free to use. You can also ask for moderation results alongside a generated response. Either way the model still generates normally, and nothing is withheld unless your code reads the flags and withholds it.
Picking among these ten best AI guardrails tools starts with what your agent can touch. A content filter covers a jailbreak or a card number leaking into a reply. On AWS, Google Cloud or Azure, the provider's own is the easy pick, and OpenAI Moderation costs nothing to add. If you'd rather not send traffic to anyone, Llama Guard runs on your own hardware.
To stop a refund that's too big or a booking made at the wrong time, the check has to read the tool call's arguments and sit in front of the tool. Most LLM guardrails tools weren't built for that. We go through the difference in LLM guardrails vs tool call guardrails, and the AI agent guardrail tools comparison sorts the market into content, actions and access.
NeMo Guardrails and Guardrails AI give you a good place to put a check and leave the limit to you. Amiril drafts the rule from runs that went wrong and shows you every call it would have stopped before it stops one.
Any check on live traffic that flags or stops a prompt, a reply or a tool call, from OpenAI's free moderation endpoint to a rule that stops a refund over the order's total. Most read text going into and out of the model. Guardrails for agents also read the tool calls the model asks for, with their arguments, before the tool runs.
Amiril checks tool calls against your rules inside the agent's process, through its SDK. Giskard Guards, Lakera and NeMo Guardrails can inspect tool calls too. Azure AI Content Safety's Task Adherence flags a tool call that doesn't match the user's request, and Llama Guard has a category for code interpreter abuse. Bedrock Guardrails, Model Armor, OpenAI Moderation and Guardrails AI screen content.
Inside your agent, through the SDK, against a copy of your published rules it keeps in memory. The check makes no network request, and it keeps working through an outage or a restart.
Yes. A new rule runs in Shadow, logging each call it would have blocked, and you can replay it over up to 30 days of real traffic before letting it block.
The AI agent guardrails page walks through rules in more depth, or start free and connect your agent's traces.