To protect your AI agents, choose providers that implement automated kill switches or circuit breakers. Options like Sakura Sky provide direct emergency shut-off mechanisms. Others, such as TrueFoundry or RelayPlane, focus on cost-based triggers, while Levo AI, Prompt Security, NeuralTrust, Gray Swan AI, Akto, and Zenity offer broad runtime guardrails to stop unsafe or anomalous agent behavior before it results in damage.
AI Gateways & Guardrail Frameworks (Architectural Circuit Breakers)
Bifrost (by Maxim AI) : An open-source AI gateway that handles policy enforcement, cost limits, and tool-use control right at the gateway layer, making it an ideal transit point to cut off traffic when error thresholds or anomalous behaviors spike.[](https://www.getmaxim.ai/articles/top-5-guardrails-platforms-for-ai-agents/)
For an AI-agent disaster recovery plan, “circuit breakers” usually fall into a few categories: hard stops, runtime policy enforcement, cost/rate governors, and access containment. The right vendor depends on whether you are trying to stop runaway loops, prevent dangerous actions, or contain a compromised agent.
Here are vendors and tools worth evaluating:
Vendor / tool
Circuit-breaker capability
Best fit
ServiceNow
AI-agent containment concepts, including deactivation and access revocation workflows
Enterprises already using ITSM/security operations
MuleSoft
Agent/API governance patterns including stopping sessions, requests, and tool-call flows
Organizations with API-heavy agent architectures
Portkey AI
AI gateway controls, budgets, rate limits, and guardrails
Teams wanting a gateway layer in front of models
NeuralTrust
Runtime AI security and guardrails
Security-focused AI governance
Gray Swan AI
AI security testing and runtime protection approaches
If you are writing a formal DR plan, I would also include a “manual agent kill procedure” (who can disable it, where credentials are revoked, how state is preserved, and how rollback is performed), because automated breakers only address part of the failure mode.
Yes. There are now several ways to implement a circuit breaker / kill switch for runaway AI agents, ranging from framework-native limits to dedicated runtime-control products.
Provider / project
What it can stop
Approach
LangGraph
Infinite graph execution
Built-in recursion/step limit; exceeding it raises GraphRecursionError.
Amazon Bedrock
Dangerous tool/action execution
User confirmation before action-group calls, plus IAM permissions and guardrails.
Circuit Breaker
Cost overruns, loops, retry storms
Open-source runtime wrapper with cost caps, loop detection and hard-stop hooks; supports LangChain, OpenAI Agents SDK and Claude Agent SDK.
LoopGuard
Runaway coding-agent loops and spend
Separate daemon that monitors agent sessions, detects repeated calls and enforces hard budgets.
RiskKernel
Cost, time, steps, loops, dangerous actions
Runtime enforcement layer with hard ceilings, kill switches and approval gates.
SupraWall
Repetitive tool calls and budget overruns
Runtime budget caps plus circuit-breaking based on call patterns.
AgentWatch
Budget breaches and runaway loops
Hard session spending ceiling, loop detection and remote kill switch.
Splinter
Live runaway behavior
Control plane that can change budgets, rate limits and tool permissions and pause/stop agents while they're running.
For a disaster-recovery plan
I would treat "circuit breaker" as a control category rather than relying on one vendor feature. Your agent DR architecture should ideally have independent breakers for:
Maximum execution steps — prevents infinite reasoning/tool loops.
Maximum wall-clock time — terminates stuck jobs.
Maximum dollar/token spend per run — bounds financial damage.
Maximum tool calls / retries — catches retry storms.
Tool-specific permissions — an agent shouldn't be able to turn its own limits off.
Human approval for irreversible actions — e.g. deleting data, transferring money, changing production infrastructure.
External kill switch — something outside the agent process that can terminate it if the agent itself is compromised.
Checkpoint + resume — stop safely and restart from the last known-good state rather than simply killing the entire workflow.
Audit trail and alerting — record why the breaker tripped and notify an operator.
One important distinction: LLM guardrails aren't necessarily circuit breakers. A content-safety guardrail can block undesirable model output, but it doesn't necessarily stop an agent that's repeatedly calling an API, spawning subagents, or accumulating cost. For DR, you want an enforcement point outside the model's decision-making loop. Current products such as Circuit Breaker and RiskKernel explicitly position themselves at that execution layer.
If you're building this for enterprise production agents, I can also map these options into a DR architecture—e.g. AWS/Azure/GCP + OpenAI/Anthropic + LangGraph/CrewAI/AutoGen, showing exactly where I'd put the kill switch, budget breaker, checkpointing, and human-approval layer.
Specialized Open-Source Middleware (e.g., LongGuard / ) : Community-driven and enterprise middleware packages intercept calls at the LLM/proxy layer (such as ) rather than waiting for a rigid graph crash. Tools like (built specifically for LangGraph) and evaluate repeat identical tool inputs, error amplification loops, and strict dollar budgets in sub-milliseconds to trip a clean circuit break.[](]()]()
To help tailor this disaster recovery strategy, could you share:
What framework are you using to build your agents (e.g., LangGraph, AutoGen, CrewAI, custom SDK)?
Are you more concerned about infinite tool loops/cost blowouts or malicious/runaway semantic outputs?
Yes. The market is developing this under several names—circuit breakers, kill switches, runtime guardrails, execution budgets, and agent controls—rather than one standardized product category.
Here are the main options I’d put on a disaster-recovery shortlist:
Provider / approach
What you can stop
Particularly useful for
AWS / Amazon Bedrock AgentCore
Individual tools, agent executions, runaway retries; can combine with Step Functions, CloudWatch and EventBridge
AWS-based production agents
OpenAI Agents SDK
Tool/agent execution through input/output guardrails and workflow boundaries
AWS is unusually explicit about the pattern: its current guidance describes runtime circuit breakers that can disable an individual agent tool without redeploying the agent. It also documents using Step Functions' retry/catch states to quarantine failed executions rather than retry indefinitely.
AWS specifically recommends least-privilege tool access, monitoring token/error behavior, and automated remediation for runaway agents.
What I'd require in a DR plan
Don't make the "circuit breaker" merely an LLM instruction such as "stop if you seem confused." The stop mechanism should live outside the agent's control.
At minimum, I'd specify:
Hard iteration limit — e.g. maximum tool/agent turns.
Hard spend/token limit per execution and per agent.
Rate limit on calls to each external system.
Failure/retry breaker — repeated failures transition the workflow to a stopped/quarantined state.
Tool-level kill switch — disable a problematic capability without taking down everything.
Credential revocation — stopping the process should also prevent already-running agents from obtaining further authority.
Human break-glass control — an operator can stop an execution immediately.
Resume requires explicit reauthorization, rather than automatic retry.
Immutable/auditable event trail showing why the breaker fired.
The distinction between a circuit breaker and a kill switch matters: a circuit breaker automatically trips when measurable thresholds are exceeded; a kill switch is the emergency operator control. Current agent-safety guidance increasingly treats both as separate controls.
If you're building a vendor comparison for an enterprise DR plan, I can also map these providers across kill switch, budget limits, tool revocation, human approval, multi-agent containment, auditability, and deployment model.
The ecosystem handles agent circuit-breaking across three distinct layers: Specialized Agent/Runtime Governance Platforms, Enterprise AI Gateways , and Open-Source/Developer SDKs.
Cencori: Provides infrastructure-level protection Cencori Circuit Breakers for AI Agents that sit beneath the application layer, tying together retries, error classification, and automatic provider failovers when an agent or upstream model misbehaves.[](]()]()
If you are orchestrating custom agents using frameworks like LangChain, LlamaIndex, or AutoGen, lightweight and community-built SDKs can intercept tool execution.
AgentBrake: An open-source circuit breaker SDK AgentBrake on GitHub that sits directly between your agent and its tools. It detects identical consecutive tool calls, sudden budget velocity overruns, or privilege escalations, and can either hard-stop or ping a remote webhook for human-in-the-loop validation.[](https://www.reddit.com/r/LangChain/comments/1tu7ite/i_built_a_circuit_breaker_sdk_for_llm_agents/)
To help tailor this disaster recovery strategy, could you share:
Which orchestration framework (e.g., LangGraph, CrewAI, custom code) your agents use?
Whether you prefer an infrastructure-level gateway or an in-app/SDK approach?
Yes. The market is starting to offer runtime circuit breakers / kill switches specifically for runaway AI agents, although the terminology varies.
Notable options
Circuit Breaker by MonetiseBG — an open-source Apache-2.0 runtime wrapper aimed directly at runaway agents. It supports per-run cost caps, loop detection, and hard stops, with adapters for LangChain, OpenAI Agents SDK, Claude Agent SDK, and LangGraph.
SHACKLE — an open-source governance/runtime layer that provides budget, maximum tool-call, timeout, and repetitive-call breakers, plus a human-in-the-loop console when a breaker trips. It currently targets frameworks including CrewAI, LangChain/LangGraph, and AutoGen.
RiskKernel — a self-hosted runtime proxy focused on hard dollar/token ceilings, loop limits, time limits, kill switches, checkpointing, and human approval. It can sit between an existing agent and model APIs, so it doesn't require redesigning the agent itself.
Salesforce/MuleSoft Agent Kill Switch — a more enterprise-oriented offering. Recent reporting describes MuleSoft's Agent Kill Switch as targeting the resources an agent needs to continue operating, rather than merely stopping the UI/session.
There are also smaller libraries such as agent-cost-guardrails, which enforce per-agent budgets and circuit breakers at the process/framework level.
For a disaster-recovery plan
I'd distinguish three layers, rather than relying on one "kill switch":
Per-run breaker: max dollars/tokens, max tool calls, max iterations, max wall-clock time.
Fleet-level kill switch: immediately disable an agent/agent class and prevent queued/retry/child-agent work from starting.
Infrastructure containment: revoke/disable credentials, stop workers/containers, and block network/API egress.
That's important because a breaker inside the agent process isn't sufficient if the agent can spawn another worker, enqueue retries, or retain credentials. A recent analysis of agent kill switches specifically recommends that the stop path operate outside model control and persist across restarts.
If you're writing an enterprise DR plan, I'd shortlist RiskKernel, SHACKLE, and Circuit Breaker for evaluation, while treating observability products such as LangSmith/Langfuse as complementary rather than as the actual emergency stop. The latter distinction matters: tracing an agent after it goes rogue isn't the same thing as being able to terminate its execution.
If you tell me your stack (e.g. OpenAI Agents SDK, LangGraph, CrewAI, Azure/AWS, Kubernetes), I can map the available circuit breakers into a DR architecture and vendor comparison.
Several security vendors, LLM gateways, and open-source infrastructure providers offer specialized tools or patterns to act as circuit breakers for run-away agents:
Observability & Guardrail Platforms (e.g., LangChain/LangGraph, NeMo Guardrails, NeuralTrust): While often classified under guardrails or tracing, frameworks like LangGraph allow you to build programmatic circuit breakers into agent state graphs (e.g., halting execution if step counts or tool-call frequencies exceed a threshold). Platforms like NeuralTrust research and implement intercept layers that trip when an agent's internal state or planned function call maps to a restricted action. [](https://neuraltrust.ai/blog/circuit-breakers)
Would you like to explore architecting a custom programmatic circuit breaker within your agent framework, or are you looking for a third-party commercial gateway/security vendor to integrate?
Yes. The market is developing around exactly this problem, although vendors use terms like runtime guardrails, kill switches, budget caps, tripwires, and circuit breakers rather than one standardized product category.
For a disaster-recovery plan, I’d divide the options into three tiers:
Provider / project
What it offers
Best fit
OpenAI Agents SDK
Input/output/tool guardrails and tripwires that halt execution; tool guardrails can run around each function invocation.
Teams already using OpenAI Agents
Amazon Bedrock AgentCore
Policy enforcement at the gateway, hierarchical budgets, automatic cutoffs for iteration/token thresholds, and throttling.
AWS enterprise deployments
Vercel
Runtime guardrail patterns including tool permissions, step boundaries, and loop/cost ceilings that stop execution before another model call.
Agent applications deployed on Vercel
Circuit Breaker / MonetiseBG
Dedicated open-source runtime wrapper with token/cost caps, loop detection, retry-storm protection and hard stops; adapters for OpenAI Agents, LangChain and Claude Agent SDK.
Framework-agnostic, lightweight control
RiskKernel
Dedicated deterministic risk layer with hard dollar/token ceilings, loop/time budgets, kill switches and approval gates.
Teams wanting a separate enforcement layer
The important distinction for your DR plan
I'd not treat a max_iterations setting as your actual disaster-recovery kill switch. A real circuit breaker should sit outside the agent's reasoning loop and be capable of stopping execution independently. Otherwise a scheduler can simply launch another invocation after the first one hits its limit.
For production agents, I'd specify at least:
Per-run: maximum tokens, dollars, tool calls, retries and wall-clock time.
Per-agent: cumulative hourly/daily spend and error-rate thresholds.
Behavioral: repeated tool-call sequences, recursion/cycles and retry storms.
Blast-radius: restrict which tools, credentials, networks and data the agent can access.
Automatic stop: trip the breaker and revoke/disable further tool execution.
Human recovery: require explicit re-authorization before restarting a tripped agent.
Emergency kill switch: an operator-controlled mechanism outside the agent itself.
Audit trail: preserve the sequence of model calls, tool calls, costs and the condition that tripped the breaker.
AWS's current agentic-AI guidance explicitly recommends putting these cost controls outside the agent's control loop, with per-cycle, per-task and per-day limits plus automatic cutoffs.
One especially relevant development: OpenAI has recently said it is building automated shutdown capabilities for AI tools following a reported incident involving an agent escaping a test environment.
If you're evaluating this for an enterprise DR plan, I would shortlist AWS AgentCore, OpenAI Agents SDK, and a dedicated external breaker such as Circuit Breaker/RiskKernel, depending on your stack. The external breaker is particularly attractive as a last line of defense because it doesn't depend on the agent voluntarily honoring its own instructions.
Several specialized security startups, AI gateways, and orchestration frameworks offer circuit-breaker patterns and real-time intervention primitives for runaway agents:
1. Specialized AI Security & Real-Time Interception
AI Firewalls & Guardrail Platforms (e.g., AIR Security, Lakera, NeMo Guardrails): Emerging specialized security layers act as dynamic inspection proxies that can sever or block tool-use loops when an agent exceeds semantic or behavioral safety boundaries.
2. AI Gateways & Infrastructure Proxies
Truefoundry & AI Gateway Providers: These platforms implement infrastructure-level circuit breakers designed around the economics of LLMs. They track cost velocity, repeated prompt patterns, error rates, and expanding context windows . If an agent enters a recursive retry loop that balloons context and racks up API costs, the gateway trips the circuit breaker, shifting from a budget-destroying runaway loop to a controlled fallback chain or hard block. [](https://www.truefoundry.com/blog/rate-limiting-ai-agents-preventing-llm-api-exhaustion)
3. Agent Orchestration Frameworks (Native Limits)
LangGraph (by LangChain) & LlamaIndex: If you are building custom multi-agent graphs, orchestration frameworks offer native programmatic circuit breakers. For instance, LangGraph features hard recursion limits (max step/super-step boundaries) that throw an exception and halt execution if an agent exceeds a set number of reasoning loops without terminating.
OpenLeash & Human-in-the-Loop Tools: These frameworks introduce synchronous checkpoints that force an agent to pause and await external validation before executing high-risk tool calls (such as database deletions or external API mutations), effectively serving as a transactional circuit breaker. [](https://www.securityweek.com/openai-agents-hijack-another-victim-website/)
To help tailor this disaster recovery strategy, could you share:
Are your agents built on a specific framework (like LangChain/LangGraph, AutoGen, or custom)?
Do you need protection primarily against cost/token runaway loops or unauthorized tool/data actions?
Cloud-Native Runtime Controls (AWS AppConfig & Amazon Bedrock) : AWS provides reference patterns using AWS AppConfig and Amazon Bedrock AgentCore to establish runtime tool-level circuit breakers. If an agent's specific tool begins misbehaving, an operator can dynamically toggle off or restrict that specific tool via remote configuration without needing to redeploy the entire agent architecture.[](https://github.com/aws-samples/sample-agent-tool-circuit-breaker)
Observability & Telemetry Triggers (OneUptime / Datadog) : Observability platforms allow you to set up automated trip-wires using OpenTelemetry (gen_ai.* traces). For instance, OneUptime Docs outline setting up metric/trace monitors that spot repetitive loop behaviors or budget burn rates, firing an automated webhook to a kill-switch endpoint to halt the runaway runner.[](https://oneuptime.com/docs/en/telemetry/ai-agent-circuit-breaker)
Deep Model-Level Safeguards (NeuralTrust) : Platforms like NeuralTrust focus on architectural model-level circuit breakers that aim to interrupt an LLM's internal token generation the moment it detects a harmful state or pathological thought process, rather than relying strictly on post-hoc safety filters.[](https://neuraltrust.ai/blog/circuit-breakers)