AgentLedger¶
Know what your agents cost.
The open-source reverse proxy that gives you real-time cost tracking, budget enforcement, and financial observability for every AI agent call — without changing a single line of code.
Per-agent cost tracking¶
Every LLM call attributed to the agent, session, and user that triggered it. Not just per-key — per-execution.
Budget enforcement¶
Set daily and monthly limits. Requests that would exceed your budget get blocked before they hit the API.
Loop & ghost detection¶
Automatically detect runaway agents stuck in loops and ghost processes silently burning tokens.
Zero code changes¶
Point your existing SDK at the proxy with one environment variable. Works with OpenAI, Anthropic, and 13 more providers.
15
LLM providers
83+
Models with built-in pricing
<10ms
Proxy overhead
0
Dependencies
How it works¶
Your agents ──→ AgentLedger proxy ──→ LLM APIs
│
├── Track costs per agent
├── Enforce budgets
├── Detect loops
└── Dashboard + alerts
One binary. One env var. Full visibility.
Get started¶
Then point your agent at the proxy: