Short answer
There is no single best tool, because they stop different things. For limits on each agent run and checks on its tool calls, use an agent-level tool such as SteerPlane, Microsoft's Agent Governance Toolkit or your framework's own middleware. For budgets across keys, users and teams, use a gateway such as LiteLLM, Portkey, Helicone or Cloudflare AI Gateway. For harmful content and prompt injection, use a content guardrail such as NVIDIA NeMo Guardrails. For seeing what happened, use tracing such as Langfuse.
Who wrote this. We make SteerPlane, one of the tools below, so read this knowing that. Every statement about another product comes from that product's own pages, linked on its comparison page with the date we checked it. Where another tool is the better fit, we say so.
How we sorted them
The useful question isn't which tool is best, it is what you need to stop. We sorted the tools by where they run and what they can refuse:
- Agent-level tools see the agent's tool calls and can stop a single run.
- Gateways see every model call and can cap spend for a key, user or team over a period.
- Content guardrails check the text itself.
- Tracing shows what happened, and increasingly adds limits.
Many teams use one from more than one group. For what each kind of check does, see runtime guardrails, explained.
SteerPlane
Built for: limits on each agent run and rules for its tool calls. Runs: in your code (Python and TypeScript), as a gateway in front of the model, or both; self-hosted or hosted.
Each run gets a dollar, step and time limit and a repeat check. Tool calls are checked before they run against allow, deny, rate-limit and approval rules, and a live run can be stopped from outside. Works with LangChain, CrewAI, AutoGen, the OpenAI Agents SDK and Claude Code.
Doesn't do: content filtering or prompt injection detection, checking whether answers are true, or removing duplicate actions. Its repeat check matches tool names, so a healthy run over a long list needs it switched off.
Limits and rules on the agent itself
These run with the agent and see its tool calls before they run. Use them to stop a run that loops or overspends and to control which tools it calls.
Microsoft Agent Governance Toolkit
Built for: Policy, identity, sandboxing and compliance for agents. Runs: A library in your code (Python, TypeScript, .NET, Rust, Go).
Pick AGT if your main need is security and compliance across many agents: agent identity, trust between agents, sandboxing and evidence for auditors.
Compared with SteerPlane, with sources (checked 20 November 2026).
Policy in Amazon Bedrock AgentCore
Built for: Allow or block tool calls with Cedar policies. Runs: AWS, on tool calls that go through AgentCore Gateway.
Pick AgentCore Policy if your agents already run on AWS AgentCore and you want AWS to manage tool permissions.
Compared with SteerPlane, with sources (checked 20 November 2026).
LangChain agent middleware
Built for: Call limits, approvals and retries inside LangChain agents. Runs: Inside LangChain agents.
Pick LangChain's middleware if all your agents are LangChain agents and counting calls is enough.
Compared with SteerPlane, with sources (checked 20 November 2026).
OpenAI Agents SDK guardrails
Built for: Checks on input, output and tool calls, plus human approval. Runs: Inside the OpenAI Agents SDK.
Pick the SDK's own guardrails if you only use the OpenAI Agents SDK and want custom checks, including model-based ones.
Compared with SteerPlane, with sources (checked 20 November 2026).
Gateways with budgets and rate limits
These sit in front of the model. Use them for spend limits across keys, users, teams or customers, and for many models behind one API.
LiteLLM
Built for: One gateway to many models, with budgets, rate limits and guardrails. Runs: A proxy in front of your model providers, self-hosted or hosted.
Pick LiteLLM if you need one gateway for many models, with budgets and rate limits per key, user, team or customer.
Compared with SteerPlane, with sources (checked 5 December 2026).
Prisma AIRS AI Gateway (formerly Portkey)
Built for: A gateway to many models, with budgets and security checks. Runs: A gateway in front of your model providers.
Pick Prisma AIRS AI Gateway if you want one enterprise gateway for all model traffic, run with your security team.
Compared with SteerPlane, with sources (checked 20 November 2026).
Helicone
Built for: LLM observability with an AI gateway and custom rate limits. Runs: Helicone's cloud or self-hosted.
Pick Helicone if you want logging for all model calls and cost-based rate limits per user, at the gateway.
Compared with SteerPlane, with sources (checked 5 December 2026).
Cloudflare AI Gateway
Built for: A proxy for model requests: caching, rate limits, spend limits. Runs: Cloudflare's network.
Pick Cloudflare AI Gateway if you mainly want caching, rate limits and a monthly or daily budget on model traffic.
Compared with SteerPlane, with sources (checked 20 November 2026).
Content and security checks
These check the text going in and out: harmful content, jailbreaks and injected instructions.
NVIDIA NeMo Guardrails
Built for: Content and security checks on what goes in and out. Runs: A Python library, or NVIDIA's microservice.
Pick NeMo Guardrails if your main risk is what the model says or reads: jailbreaks, injected instructions or off-topic answers.
Compared with SteerPlane, with sources (checked 20 November 2026).
Tracing and evaluation
These show what your agents did, what it cost and how good the answers were. Some now add budgets or guardrails on top.
Langfuse
Built for: Tracing, evaluation and prompt management, with a gateway in beta. Runs: Langfuse Cloud or self-hosted.
Pick Langfuse if you need to see, debug and evaluate what your agents do, with cost per user.
Compared with SteerPlane, with sources (checked 5 December 2026).
Splunk Agent Observability (formerly Galileo)
Built for: Tracing, evaluation, cost tracking and guardrails. Runs: The Splunk platform.
Pick Splunk Agent Observability if you need to measure and improve the quality of your agents' answers across all traffic.
Compared with SteerPlane, with sources (checked 20 November 2026).
Which to pick for which problem
Stop a single run that loops, runs too long or overspends
An agent-level tool: SteerPlane, or your framework's step limits as a floor.
Control which tools an agent calls, and with what
An agent-level tool: SteerPlane, Microsoft's toolkit, AgentCore Policy on AWS, or framework middleware.
Hold refunds, emails or deletes for a person
SteerPlane, the OpenAI Agents SDK's approvals, or LangChain's middleware.
Budgets across all model traffic, by key, user, team or workspace
A gateway. LiteLLM has budgets for keys, users, teams and customers; Helicone limits cost per user; Portkey sets them per workspace; Cloudflare AI Gateway sets daily or monthly limits.
Block harmful content, jailbreaks and prompt injection
A content guardrail such as NVIDIA NeMo Guardrails, or a gateway's guardrail add-ons.
See and debug what happened, with cost per user
Tracing: Langfuse or Splunk Agent Observability.
Before you choose
- Test it with an agent that is meant to fail. A loop, a runaway cost, a forbidden tool. Watch the limit fire.
- Check where it runs. A gateway can't see tools your code runs on its own. A library can't see calls that skip it.
- Check what happens when it is down. Does the agent stop, or carry on unchecked?
- Check what "limit" means. A monthly budget for a key and a limit on one run are different things.
The full list of checks a live agent needs is in the guardrails checklist.
Questions people ask
What is the best open-source tool for AI agent guardrails?
It depends on what you need to stop. Free, self-hostable options include SteerPlane for run limits and tool-call rules, LiteLLM and Helicone for gateway budgets and rate limits, NVIDIA NeMo Guardrails for content, and Langfuse for tracing.
What tools can cap what an AI agent spends?
Gateways such as LiteLLM, Portkey, Helicone and Cloudflare AI Gateway can cap spend per key, user or team over a period. SteerPlane caps spend per agent run. OpenAI projects and Claude Console workspaces also have monthly limits.
Which tools stop an AI agent from looping?
Framework step limits (LangGraph recursion_limit, OpenAI Agents SDK max_turns, CrewAI max_iter) cap steps. SteerPlane adds a repeat check, a step limit and a time limit per run. Gateways that only count spend over a period don't stop a cheap loop quickly.