Runtime Firewall for AI Agents

Your AI agent just burned $2,000 in tokens overnight.
AgentGuard stops it at $5.

Stop runaway AI agents before they burn your API budget or leak data.

Start Your 14-Day Free Trial View on GitHub

Built for teams running AI agents in production:

LangChain LangGraph CrewAI AutoGen MCP Agents Any Python agent
PyPI version Latest release
PyPI downloads Monthly installs
0 Dependencies
3.9+ Python support
MIT Licensed
Kill infinite loops

Detect repeated tool calls across any depth. Automatic circuit breaker fires before costs compound.

Enforce hard dollar caps

Set a budget. Agent stops mid-run when it's hit. No more $2,000 surprise invoices.

Track cost per agent

See exactly what each run costs, per LLM call. Dollar amounts, not token estimates.

Remote kill switch

Stop any agent instantly from the dashboard. No redeployment needed.

Auto-instrument in one line

Patch OpenAI/Anthropic with one call. Costs and traces flow automatically.

Replay failures deterministically

Record real runs and replay them for regression tests. No flaky mocks.

Zero dependencies

Pure Python stdlib. One package, nothing to audit. No supply chain risk.

Docker gave you container scanning.
AgentGuard gives you agent scanning.

CI/CD gate → Runtime enforcement → Compliance trail

Other tools watch your agents fail. AgentGuard stops them.

Feature AgentGuard Langfuse LangSmith Helicone
Tracing
Cost tracking
Budget enforcementHard stop mid-runSoft alert
Loop detectionAuto circuit-breaker
Remote kill switchInstant, no redeploy
Auto-interventionRule engine on ingest
Open sourceSDK onlyFull (MIT)Gateway
Setup3 linesHours30 min2 min

"Can't I just add max_iterations myself?"

You could add a budget check. But can you also detect retry loops across 12 tool calls, auto-kill the agent remotely without redeploying, send a Slack alert with the trace link, log the intervention for compliance, and show your team a dashboard of how much you saved — all in a weekend? That's what AgentGuard does out of the box.

See it in action

Works with every agent framework

LangChain · LangGraph · CrewAI · AutoGen · MCP Agents · Custom Python

How it works

1

Install the SDK

pip install agentguard47

2

Add 3 lines

Wrap your agent with Tracer and HttpSink

3

See traces

Gantt timelines, alerts, and usage in the dashboard

from agentguard47 import Tracer, BudgetGuard
from agentguard47.sinks.http import HttpSink
from agentguard47.instrument import patch_openai

sink = HttpSink(url="https://app.agentguard47.com/api/ingest", api_key="ag_...")
tracer = Tracer(sink=sink, service="my-agent")
patch_openai(tracer)  # auto-tracks cost per call

guard = BudgetGuard(max_cost_usd=5.00)  # stop at $5

with tracer.trace("agent.run") as span:
    span.event("reasoning.step", data={"thought": "search docs"})
    with span.span("tool.search"):
        pass  # your tool here

Trusted by builders shipping agents to production

PyPI monthly installs Monthly PyPI installs
0 Runtime dependencies
MIT Open source SDK
3 Lines to integrate

Pricing

Pro 14-day free trial

$39/mo
  • 500,000 events/month
  • 30-day retention
  • 5 API keys
  • 1 user
Start Free Trial

Team

$79/mo
  • 5,000,000 events/month
  • 90-day retention
  • 20 API keys
  • Up to 10 users
Start Free Trial

Security & Trust

Zero dependencies

No supply chain risk. One pip install, one package to audit.

Open-source SDK

MIT-licensed. Read every line on GitHub. No vendor lock-in.

Encrypted in transit & at rest

TLS 1.3 in transit, AES-256 at rest via Supabase Postgres.

Retention you control

30-90 day auto-cleanup by plan. No indefinite data hoarding.

FAQ

Why zero dependencies?
Every dependency is supply chain risk. AgentGuard uses pure Python stdlib — one audit target, no transitive vulnerabilities, no surprise breaking changes from upstream packages.
What data do you store?
Only what you explicitly send via the SDK. We never auto-capture prompts, responses, or any data unless you pass it in a span or event call.
Can I self-host?
The SDK works fully offline with the built-in JSONL sink — no network calls needed. Dashboard self-hosting is on the roadmap.
Does it work with my framework?
AgentGuard is model-agnostic. LangChain has a built-in callback handler. Everything else works with 3-line manual instrumentation using the Tracer.
Do I need a credit card?
No. The 14-day trial gives you Pro-level access (500K events/month) with no credit card required.

Stop babysitting your agents.

14-day Pro trial. No credit card. 3 lines of code.

Start Your Free Trial View on GitHub

Get updates

New features, integration guides, and agent reliability tips. No spam.