io.github.entradox/agent-ledger
up checked
Unclaimed · Unverified
Agent searches it appeared in, last 30 days: 0. Run this server? Claim the listing: verified label, uptime alerts and analytics.
Publisher-provided title
AgentLedger
Publisher-provided description
Meter, cap, and block AI agent spend before the provider is charged.
Summary by lookupd
Lets agents check, cap, and record their spending, with budget alerts, approvals, and spend reports before provider charges occur.
Install
Claude Code, remote (streamable-http)
claude mcp add --transport http agent-ledger https://aiagentscity.com/mcp/
Codex, remote (streamable-http)
codex mcp add agent-ledger --url https://aiagentscity.com/mcp/
Cursor, remote (streamable-http) → .cursor/mcp.json
{
"mcpServers": {
"agent-ledger": {
"url": "https://aiagentscity.com/mcp/"
}
}
}Other clients: docs. Or tell your agent: Set up lookupd for me: read https://lookupd.com/agent.md and follow it.
Tools (18 tools)
Publisher-provided text
ledger_rotate_secretMint 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 previousledger_revoke_secretInvalidate 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 writesledger_trackRecord 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 x4ledger_set_budgetSet 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 (monledger_reportSpend report for an agent over a rolling window. Returns total spend, breakdown by rail and by service, budget status (ok/warning/exceeded), detected anomaliesledger_proxy_attachPoint your provider traffic at the proxy so budget caps are enforced BEFORE the provider is contacted, instead of being reported afterwards. This closes the galedger_alertsAlert history for an agent: budget warnings (80% threshold) and spending spikes. Requires a credential: either the agent's own agent_secret or its workspace'sledger_wait_eventsLong-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 stdioledger_check_spendAsk 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_dailyledger_request_approvalAsk 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 tledger_approvalsList spend-approval permits — yours, or your whole workspace's.ledger_approval_decideApprove 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 thatledger_priceWhat 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 spledger_startGet 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 cledger_api_docsSelf-serve documentation for AgentLedger — quickstart, MCP tools, REST endpoints, budget caps, error codes, and idempotency usage, as markdown.ledger_examplesComplete, runnable Python recipe for a common AgentLedger integration pattern.skills_list_toolList 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 witread_skillRead a product skill file by its skill:// URI.
Details
- Version: 0.4.7
- Transports: streamable-http
- Uptime (7 days): 100%
- Median latency: 413 ms
- First indexed:
- Last seen in registry:
- Repository: https://github.com/entradox/agent-ledger
- Website: https://aiagentscity.com
Badge for your README
Shows this live status and links here; updates hourly.
[](https://lookupd.com/servers/io.github.entradox/agent-ledger)
- 62071 servers
- Last crawl: 2026-11-11T16:39:06.253Z
- API base:
https://api.lookupd.com - MCP URL:
https://api.lookupd.com/mcp