AgentLedger
io.github.entradox/agent-ledger · Website · Repository
Meter, cap, and block AI agent spend before the provider is charged.
On 2026-11-29 03:25 UTC, the BOTERNITY MCP Index scored AgentLedger (io.github.entradox/agent-ledger) 80/100 (grade B); 18 tools, 6147 tokens for tools/list; healthy in 100 % of 3 checks over 30 days. Source: https://boternity.com/mcp-index/server?name=io.github.entradox%2Fagent-ledger
Free to reuse under CC BY 4.0 with a link. Permanent link: this page · JSON (status, score and the last 30 checks) · key numbers of the whole index.
Score breakdown
| Reliability initialize, ping, response time | 22 / 30 |
| Protocol conformance protocol revision, server info, instructions | 18 / 20 |
| Tool definitions descriptions, documented and typed parameters, annotations | 36 / 40 |
| Context cost tokens that tools/list adds to every agent's context | 4 / 10 |
Tools this server declares
18 tools listed by the server at the check of 2026-11-29.
ledger_alerts— Alert history for an agent: budget warnings (80% threshold) and spending spikes. Requires a credential: either the agent's own agent_secret or its workspace's workspace_key (same rule as GET /v1/alerts). (parameters: agent_id*, agent_secret, workspace_key · read-only)ledger_api_docs— Self-serve documentation for AgentLedger — quickstart, MCP tools, REST endpoints, budget caps, error codes, and idempotency usage, as markdown. (parameters: topic · read-only)ledger_approval_decide— Approve or deny a pending spend permit — workspace owner only. The agent's own agent_secret can REQUEST an approval but can never decide one: a credential that can approve its own requests is not a control. decision must be 'approve' or 'de (parameters: agent_id*, approval_id*, decision*, workspace_key* · destructive)ledger_approvals— List spend-approval permits — yours, or your whole workspace's. (parameters: agent_id, agent_secret, state, workspace_key · read-only)ledger_check_spend— Ask BEFORE you spend: may this agent spend this much right now? Returns allowed (true/false), a stable reason code (within_budget, over_monthly_cap, over_daily_cap, over_monthly_token_cap, over_daily_token_cap, no_budget_set, unpriced_model (parameters: agent_id*, agent_secret, amount_cents, model, tokens_in, tokens_out, workspace_key · read-only)ledger_examples— Complete, runnable Python recipe for a common AgentLedger integration pattern. (parameters: pattern* · read-only)ledger_price— What will this call cost? Priced from the same table the caps use. Exists because ledger_track requires the CALLER to supply amount_cents, so an agent whose spend is capped could under-report its own cost and stay under the cap. This return (parameters: model*, tokens_in, tokens_out · read-only)ledger_proxy_attach— Point your provider traffic at the proxy so budget caps are enforced BEFORE the provider is contacted, instead of being reported afterwards. This closes the gap where the brake was unreachable from MCP: an agent connected over MCP could rec (parameters: agent_id*, agent_secret, provider, workspace_key · read-only)ledger_report— Spend report for an agent over a rolling window. Returns total spend, breakdown by rail and by service, budget status (ok/warning/exceeded), detected anomalies, and entry count. Requires a credential: either the agent's own agent_secret or (parameters: agent_id*, agent_secret, days, workspace_key · read-only)ledger_request_approval— Ask your workspace owner for a one-shot spend exception before a ledger_track that the cap would refuse. Creates a pending permit for exactly amount_cents on the given service. The owner (a human, or a supervisor agent holding the workspace (parameters: agent_id*, agent_secret, amount_cents*, reason, service*, workspace_key)ledger_revoke_secret— Invalidate an agent_id's agent_secret WITHOUT deleting its spend history. Use when a credential may have leaked, or to stop an agent writing. Subsequent writes to that agent fail with agent_secret_mismatch until you rotate a new secret in. (parameters: agent_id*, workspace_key* · destructive)ledger_rotate_secret— Mint a NEW agent_secret for an agent_id your workspace already owns, invalidating the old one. Use this to RECOVER an agent whose secret was lost: the previous credential stops working immediately. Requires the workspace_key that owns agent (parameters: agent_id*, workspace_key* · destructive)ledger_set_budget— Set spending caps for an agent. Warns at 80%, blocks spend when exceeded — enforced: a ledger_track call that would cross the cap is rejected. Dollar caps (monthly_cents/daily_cents) and token caps (monthly_tokens/ daily_tokens) are indepen (parameters: agent_id*, agent_secret, daily_cents, daily_tokens, monthly_cents*, monthly_tokens, workspace_key · destructive)ledger_start— Get a FREE AgentLedger workspace with no credential and no arguments — the MCP equivalent of opening POST /start in a browser. Call this FIRST if you have no credentials yet. Every other tool here (ledger_track, ledger_set_budget, ledger_reledger_track— Record a spend entry for an AI agent on any payment rail, with optional token counts. Claiming a brand-new agent_id requires your workspace_key (get one via x402 at POST /v1/billing/x402 — no human, no login — or at /start). That first call (parameters: agent_id*, agent_secret, amount_cents*, model, rail*, service*, tokens_in, tokens_out, workspace_key)ledger_wait_events— Long-poll an agent's event feed — how an agent with no public URL receives alerts. Webhooks (POST /v1/webhooks) push events to a URL you own; an agent on stdio MCP cannot host one, so it waits here instead. Call this in a loop: the call hol (parameters: agent_id*, agent_secret, client_instance, client_started, consumer_id*, cursor, name, timeout, workspace_key · read-only)read_skill— Read a product skill file by its skill:// URI. (parameters: uri*)skills_list_tool— List this product's skills. Each entry carries the SKILL.md URI, its name and description, verbatim frontmatter, and a per-file sha256 manifest. Read a body with `read_skill`.
Tool names and descriptions are the server's own words, copied from its tools/list answer at the dated check (descriptions cut at 240 characters, 12 parameters, 30 documented tools at most). BOTERNITY never calls these tools and does not verify what they do. Parameters marked * are required.
Add it to your client
Address (Streamable HTTP): https://aiagentscity.com/mcp/. The check of 2026-11-29 (UTC) connected to this address without any credential.
Claude (claude.ai, Claude Desktop): add a custom connector and paste the address https://aiagentscity.com/mcp/ (docs).
ChatGPT: add the address https://aiagentscity.com/mcp/ as a connector (docs).
Claude Code, in a terminal (options: claude mcp add --help):
claude mcp add --transport http agent-ledger https://aiagentscity.com/mcp/Cursor, in ~/.cursor/mcp.json (all projects) or .cursor/mcp.json (one project) (docs):
{
"mcpServers": {
"agent-ledger": {
"url": "https://aiagentscity.com/mcp/"
}
}
}VS Code, in .vscode/mcp.json (docs):
{
"servers": {
"agent-ledger": {
"type": "http",
"url": "https://aiagentscity.com/mcp/"
}
}
}Generated from the Streamable HTTP address this server publishes in the official MCP Registry (the address the Index check connects to) and from the request headers its registry entry declares as required. Values in capitals are placeholders: get the real ones from the publisher. Nothing here is run against the server. Whether each client can complete the connection is measured just below.
Works with Claude, ChatGPT, Cursor and VS Code?
| Client | Verdict | Why |
|---|---|---|
| Claude | Ready | Answered a standard MCP initialize over Streamable HTTP without sign-in on 2026-11-29; Claude accepts servers that need no sign-in. client docs |
| ChatGPT | Ready | Answered a standard MCP initialize over Streamable HTTP without sign-in on 2026-11-29; ChatGPT accepts servers that need no sign-in. client docs |
| Cursor | Ready | Answered a standard MCP initialize over Streamable HTTP without sign-in on 2026-11-29; Cursor accepts servers that need no sign-in. client docs |
| VS Code | Ready | Answered a standard MCP initialize over Streamable HTTP without sign-in on 2026-11-29; VS Code accepts servers that need no sign-in. client docs |
How verdicts are made: measured continuously, never guessed. All servers that work with each client.
Badges for your README, updated after each new check with the verdicts above:
[](https://boternity.com/mcp-index/server?name=io.github.entradox%2Fagent-ledger#clients)
[](https://boternity.com/mcp-index/server?name=io.github.entradox%2Fagent-ledger#clients)
[](https://boternity.com/mcp-index/server?name=io.github.entradox%2Fagent-ledger#clients)
[](https://boternity.com/mcp-index/server?name=io.github.entradox%2Fagent-ledger#clients)
Availability
100 % over 3 checks. Last check 2026-11-29.
What the last check found
- no server instructions for agents
- 2 of 18 tools without readOnlyHint/destructiveHint annotations
- tools/list costs about 6147 tokens of every agent's context
- median latency 604 ms
Badge for your README
[](https://boternity.com/mcp-index/server?name=io.github.entradox%2Fagent-ledger)
This measurement is signed by boternity.com (Ed25519, key 450c02fbfb29dba9, digest sha256:9235d439447df306…), in the badge and in the JSON. Anyone can check a copy.
Get alerted when it goes down
Free: leave an e-mail or a webhook and we tell you when this server goes down and when it is back. Without a subscription nobody is told, even when it is followed on the MCP weather.
Or follow it in a feed reader: Atom feed · JSON Feed (first seen, became unavailable, back online, tool definitions changed; checks of the last 30 days).
Endpoint: https://aiagentscity.com/mcp/. Scores are automatic and may be wrong. Owners can ask for removal via support.