AgentLedger — per-agent spend management (Datadog for agent spending)
- ✓Open-source license (MIT)
- ✓Actively maintained (<30d)
- ✓Clear description
- ✓Documented (README)
claude mcp add agent-ledger -- uvx agent-ledger{
"mcpServers": {
"agent-ledger": {
"command": "uvx",
"args": ["agent-ledger"]
}
}
}MCP Servers overview
# AgentLedger — Per-Agent Spend Management
> Track AI agent spend across x402/MPP/API-key rails, set budget caps, catch
> spending anomalies, keep audit trails. The "Datadog for agent spending" —
> the #1 verified community ask from agent builders.
[](https://agent-ledger-production-0ff8.up.railway.app/health)
[](https://agent-ledger-production-0ff8.up.railway.app/status)
[](https://registry.modelcontextprotocol.io)
[](https://agent-ledger-production-0ff8.up.railway.app/server.json)
> 🎯 **Launch window: the first 50 agents to claim a slot get Pro free for 1 year.** No card, no signup — the first write claims it.
## Connect AgentLedger
No OAuth, no API key, no signup — the first write for a new `agent_id`
mints its `agent_secret` right in the response. Point any MCP client at the
remote below and start tracking spend immediately.
**Claude Code:**
```bash
claude mcp add --transport http agent-ledger https://agent-ledger-production-0ff8.up.railway.app/mcp/
```
**Codex:**
```bash
codex mcp add agent-ledger --url https://agent-ledger-production-0ff8.up.railway.app/mcp/
```
**Cursor** — merge into `mcp.json`:
```json
{
"mcpServers": {
"agent-ledger": {
"url": "https://agent-ledger-production-0ff8.up.railway.app/mcp/"
}
}
}
```
**Any other MCP client:** point it at the streamable-http remote
`https://agent-ledger-production-0ff8.up.railway.app/mcp/` — no headers,
no auth handshake required to connect.
**Try these prompts once connected:**
- "Track my Claude Code spend"
- "Alert when any agent exceeds $50/day"
- "Weekly P&L report"
## Try it in 30 seconds — no signup
```bash
# Track a spend — the FIRST call for a new agent_id returns an agent_secret.
# Save it: every later write (track/budget) to this agent_id must include it.
curl -X POST https://agent-ledger-production-0ff8.up.railway.app/v1/track \
-H "Content-Type: application/json" \
-d '{"agent_id":"my-agent","rail":"x402","amount_cents":100,"service":"search_query"}'
# Set a monthly budget cap — pass the agent_secret from above
curl -X POST https://agent-ledger-production-0ff8.up.railway.app/v1/budget \
-H "Content-Type: application/json" \
-d '{"agent_id":"my-agent","monthly_cents":5000,"agent_secret":"YOUR_SAVED_SECRET"}'
# Spend report + anomalies — open read, no secret needed
curl https://agent-ledger-production-0ff8.up.railway.app/v1/report/my-agent
```
Reads (`/v1/report`, `/v1/tokens`, `/v1/alerts`) never require a secret — only
writes to an `agent_id` do, and only after that `agent_id` has been claimed by
a first write. This is what stops a stranger from overwriting or corrupting
someone else's `agent_id`.
## Install (MCP clients)
```json
{
"mcpServers": {
"agent-ledger": {
"url": "https://agent-ledger-production-0ff8.up.railway.app/mcp/"
}
}
}
```
Tools: `ledger_track`, `ledger_set_budget`, `ledger_report`, `ledger_alerts`,
`ledger_list_agents`, `ledger_api_docs`, `ledger_examples`.
Agent-facing API reference: [`llms.txt`](https://agent-ledger-production-0ff8.up.railway.app/llms.txt)
Runnable code recipes: [`recipes.md`](./recipes.md)
## Features
- **Multi-rail neutral** — x402, MPP, API keys, manual entries; not locked to one payment rail
- **Budget enforcement** — warns at 80% of cap, blocks spend when exceeded
- **Anomaly detection** — spending-spike alerts per agent
- **Audit trails** — every entry persisted with rail, service, and timestamp
- **Free during beta**
## Architecture
- Core engine (`ledger_engine.py`): per-agent JSONL ledgers, budget state, alert log,
per-agent secret (`ensure_agent_secret` — claim-on-first-write, no signup)
- REST API (`api_server.py`, FastAPI): `/health`, `/v1/track`, `/v1/budget`,
`/v1/report/{agent_id}`, `/v1/alerts/{agent_id}`, `/stats`,
hosted streamable-http MCP at `/mcp/`
- `/v1/agents` (full cross-tenant listing) is owner-only, requires `X-Al-Admin` header
- Input validation: agent_id restricted to `[A-Za-z0-9._-]{1,64}` (path-traversal safe),
rail whitelisted to mpp/x402/api_key/manual, amount + budget caps bounded [0, $100k]
- Stripe webhook is fail-closed: events are rejected unless the HMAC signature
verifies against `STRIPE_WEBHOOK_SECRET_AL`; a verified `pro` checkout sets
`pro.flag` on the data volume, which lifts the free-tier agent cap for that
instance (Pro $19/mo ⇒ unlimited agents).
## Contact
entradox@icloud.comWhat people ask about agent-ledger
What is entradox/agent-ledger?
+
entradox/agent-ledger is mcp servers for the Claude AI ecosystem. AgentLedger — per-agent spend management (Datadog for agent spending) It has 0 GitHub stars and its last recorded update is dated 2026-09-10.
How do I install agent-ledger?
+
You can install agent-ledger by cloning the repository (https://github.com/entradox/agent-ledger) or following the README instructions on GitHub. ClaudeWave also provides quick install blocks on this page.
Is entradox/agent-ledger safe to use?
+
Our security agent has analyzed entradox/agent-ledger and assigned a Trust Score of 87/100 (tier: Trusted). See the full breakdown of passed checks and flags on this page.
Who maintains entradox/agent-ledger?
+
entradox/agent-ledger is maintained by entradox. The last recorded GitHub activity is dated 2026-09-10, with 0 open issues.
Are there alternatives to agent-ledger?
+
Yes. On ClaudeWave you can browse similar mcp servers at /categories/mcp, sorted by popularity or recent activity.
Deploy agent-ledger to your cloud
Ship this repo to production in minutes. Each platform spins up its own environment with editable env vars.
Maintain this repo? Add a badge to your README
Drop the badge into your GitHub README to show it's tracked on ClaudeWave. Each badge links back to this page and reflects the live Trust Score.
[](https://claudewave.com/repo/entradox-agent-ledger)<a href="https://claudewave.com/repo/entradox-agent-ledger"><img src="https://claudewave.com/api/badge/entradox-agent-ledger" alt="Featured on ClaudeWave: entradox/agent-ledger" width="320" height="64" /></a>More MCP Servers
Fair-code workflow automation platform with native AI capabilities. Combine visual building with custom code, self-host or cloud, 400+ integrations.
User-friendly AI Interface (Supports Ollama, OpenAI API, ...)
An open-source AI agent that brings the power of Gemini directly into your terminal.
Real-time global intelligence dashboard. AI-powered news aggregation, geopolitical monitoring, and infrastructure tracking in a unified situational awareness interface
The fastest path to AI-powered full stack observability, even for lean teams.
🕷️ An adaptive Web Scraping framework that handles everything from a single request to a full-scale crawl!