Purpose: AgenticLedger is a transparent proxy running between agents and LLM providers, used to record and observe the operation of AI agents. It intercepts every request and response and stores them after assigning an action_id, then returns the upstream response unchanged, so the agent itself is unaware. It officially claims that its figures should match the provider's billing.
Main capabilities: supports any agent framework, any LLM provider, and any model gateway; captures every LLM call, tool call, cost, and loop, and flags stuck loops. The dashboard updates in real time via WebSocket. Loop Lens displays the running state of loops and the cost of each iteration, and supports blocking subsequent calls of a running loop. The Sessions view provides call rows, Flow DAG, and Trace waterfall charts, which can be expanded to view Response, Tools, Prompt, Raw. It supports replay of an entire run and what-if repricing, cache auditing, reports, full-text search, budget caps and emergency stop of the entire queue, model/provider allow and deny lists, named instances, sharing to mobile, and more.
How to use: install with uv tool / pipx or pip, start the proxy with agenticledger start, manage it with status, logs, stop, and generate a configuration file with init. The Docker image supports multi-architecture, non-root operation, and releases with Sigstore signatures and SBOM. By default, the proxy listens on http://localhost:8000;用 When agenticledger start is launched, data is saved to ~/.agenticledger/agenticledger.db. Point the agent's base_url to the proxy and add the session ID header; Claude Code, BMAD, and OpenClaw can write the configuration with a single command. The configuration lookup order is AGENTICLEDGER_CONFIG, ./agenticledger.toml, ~/.agenticledger/config.toml, command-line arguments take precedence over files, and environment variables override on a per-item basis.
Limitations: the Docker image only uses SQLite; to use Postgres under Docker, you need to switch to a pip installation; configuration changes require a restart to take effect; unknown call prices are clearly displayed, and cache-miss amounts are estimates with a method description; blocked agents cannot unblock themselves.