FAQ

Keeping AI agents under control

Short, direct answers to the questions teams ask before they put an agent in front of customers.

Keeping AI agents under control

What is a runtime guardrail for an AI agent?

A runtime guardrail is a check that runs while the agent works, before each step, and can stop the step from happening. Examples are a limit on how much one run may spend, a limit on steps or time, a rule that blocks certain tools, and a pause for human approval. It differs from a prompt instruction, which the model can ignore, and from logging, which only records what already happened.

How do I stop an AI agent from getting stuck in a loop?

Put a step limit on every run and a repeat check that stops the run when the same tool is called with the same arguments several times, both in code outside the model. Check the arguments, not just the tool name, or you will also stop healthy runs that call one tool over a list.

Guide: stop an agent stuck in a loop →

How do I limit how much an AI agent can spend?

Add up the cost of each model call from the token usage it reports, keep a running total for the run, and refuse the next call once the budget is used. Call limits and turn limits are not the same as a budget, because later calls in a run cost more than early ones.

Guide: cap spend per run →

How do I stop an AI agent from deleting data?

Check every tool call in code before it runs: allow only the tools the agent needs, deny patterns like delete_* and drop_*, and require a person to approve risky actions. A line in the prompt asking the agent not to delete things is not a boundary.

Guide: stop an agent deleting data →

How do I stop an AI agent from sending the same email or refund twice?

Give every action that changes something one idempotency key, reuse that key on every retry, and skip actions whose key you have already recorded. Retries, restarts and timeouts are the usual cause of duplicates.

Guide: stop duplicate actions →

How do I add human approval to an AI agent?

Mark the risky actions, such as payments, refunds or messages to customers, and check each tool call against that list before it runs. When one matches, pause the run and ask a person to approve or reject it. If they reject it, the call never happens.

Should a language model decide what my agent is allowed to do?

For hard limits, no. A model-based check can be talked around and can give different answers to the same input. Spend limits, step limits and blocked tools work best as fixed rules in code, which always give the same answer. Model-based checks are still useful for judging content, such as tone or topic.

What is the difference between AI agent observability and guardrails?

Observability records what an agent did, so you can look at it afterwards. Guardrails act while the agent runs and can stop a step before it happens. Most teams want both: guardrails to stop the damage, and a record of every step to understand it.

Framework limits

Does LangChain have a cost limit?

No. LangChain's built-in middleware caps the number of model calls and tool calls per run or per thread, and LangGraph caps steps with recursion_limit, but none of them stops a run at a dollar amount.

Guide: cost limit for LangChain →

Does CrewAI have a budget limit?

No. CrewAI limits iterations with max_iter, time with max_execution_time and request rate with max_rpm, and reports token usage after the run, but it has no setting that stops a crew at a dollar amount.

Guide: spend limit for CrewAI →

Does the OpenAI Agents SDK have a budget limit?

No. Runner.run takes max_turns and raises MaxTurnsExceeded when a run goes over, but there is no built-in limit in dollars.

Guide: budget for the OpenAI Agents SDK →

About SteerPlane

What is SteerPlane?

SteerPlane is a runtime safety layer for AI agents. It checks every step while an agent runs, stops repeated loops, caps spend per run, limits steps and time, blocks tool calls you have denied, and records every run in a dashboard.

Which frameworks does SteerPlane work with?

LangChain and LangGraph, CrewAI, AutoGen, the OpenAI Agents SDK, and plain Python or TypeScript. Any OpenAI-compatible client can also go through the SteerPlane gateway by changing one base_url.

Setup in three steps →

Does SteerPlane use an AI model to decide what to block?

No. Every check is a fixed rule, so the same step always gets the same answer, and the check runs before the step does.

Can I run SteerPlane on my own servers?

Yes. You can self-host it, so prompts, tool calls and run data stay in your environment, or we can host it for you.

Where your data lives →

Is SteerPlane free?

The core limits are free: loop detection, cost limits, step and time limits, action rules, the gateway and the dashboard. Paid plans add advanced protections, hosting by us and support for larger teams.

Plans →

How does SteerPlane compare with other tools?

We keep honest, sourced comparisons with Microsoft Agent Governance Toolkit, AWS AgentCore Policy, LangChain middleware, OpenAI Agents SDK guardrails, NVIDIA NeMo Guardrails, Cloudflare AI Gateway, Portkey and Galileo, including when to pick them instead.

Comparisons →

Design partners

Shipping agents? Let's talk.

Our first 10 design partners get every paid feature free, plus direct help setting up.