Skip to main content

AI Ledger

See what your coding agents did, what it cost, and where they got stuck. AI Ledger turns your Claude Code and Codex transcripts into six local dashboards.

Tour of the pages

uvx ai-ledger    # open http://127.0.0.1:8765/

Needs uv. macOS and Linux. Nothing leaves your machine except the Limits check under Privacy.

What you get

  • Activity: what got done per day, session and tool, and what needs attention.
  • Cost: estimated spend at API list prices, per project, model and session, against the period before.
  • Errors: failed tool calls by type, with a fix to paste into CLAUDE.md.
  • Limits: each plan limit window, with a forecast to its reset.
  • Insights: how Claude Code's /insights judged your sessions.
  • Live: every active session as it runs: prompts, tool calls, subagents, context and cost.

Your agents delete old transcripts. AI Ledger keeps every line, so the history stays. Press Cmd+K to jump anywhere: >errors #myproject #7d.

ActivityCost
ErrorsLimits
InsightsLive

Install

uv tool install ai-ledger
ai-ledger                   # serve on http://127.0.0.1:8765/
uv tool upgrade ai-ledger   # new version and new prices

The first start reads every transcript, about 4 minutes for 3.4 GB. After that the app picks up new lines every 60 seconds.

Option Default
--port 8765
--projects ~/.claude/projects
--codex ~/.codex
--usage-data ~/.claude/usage-data
--db ~/Library/Application Support/ai-ledger/ai-ledger.duckdb (macOS), ~/.local/share/ai-ledger/ai-ledger.duckdb (Linux)

With the app stopped, ai-ledger ingest reads new lines once and ai-ledger rebuild recomputes the derived tables.

Privacy

  • The server listens on 127.0.0.1 only.
  • The store keeps every transcript line, including any secrets that appeared in a session. Only your user can read it. Do not share it.
  • On macOS, the Limits page sends your Claude Code OAuth token from the Keychain to Anthropic's undocumented usage endpoint every 5 minutes. The token goes nowhere else and is never stored or logged. Off macOS, Limits estimates from transcripts.
  • Live shows word counts by default. Full text puts transcript content on screen, secrets included: turn it off before you share your screen.
  • Your browser loads the font from Google Fonts. No transcript data goes with it.

Contributing

Needs uv and Node.

uv sync
uv run ai-ledger --db <copy> --port 8766   # run on a copy of the store
uv run python -m unittest discover -s tests
cd web && npm install && npm run dev       # http://127.0.0.1:5173, /api proxied to the app
cd web && npm run check                    # run before committing

Commit the build in src/ai_ledger/web/ with every web/src change. tools/demo/ records the GIFs from synthetic data. Maintainer notes, including releases, are in AGENTS.md.

License

MIT

Metadata

Release files for ai-ledger 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ai-ledger 0.1.1
File Size Uploaded Provenance Actions
ai_ledger-0.1.1.tar.gz 212.3 kB Without provenance Details for ai_ledger-0.1.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for ai-ledger 0.1.1
File Interpreter ABI Platform Actions
ai_ledger-0.1.1-py3-none-any.whl Python 3 none any Details for ai_ledger-0.1.1-py3-none-any.whl

Total release size: 430.0 kB

Release files / ai_ledger-0.1.1.tar.gz

Download URL ai_ledger-0.1.1.tar.gz
Size 212.3 kB
Tags Source
SHA-256 checksum
How to use checksums
65caf96a54c99d3e61f9441e1db743c6dcae78081fdea396aff826689095de62
BLAKE2b-256 checksum
How to use checksums
82b04e1de42639de02b6eff3a5cc56c76ba9bd60ad9da14404c381464595da19
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.7 {"installer":{"name":"uv","version":"0.13.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / ai_ledger-0.1.1-py3-none-any.whl

Download URL ai_ledger-0.1.1-py3-none-any.whl
Size 217.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2a7c8249b74cbdab1182efbd00911bbc95c0869887a8c7751e8531c9c8103e50
BLAKE2b-256 checksum
How to use checksums
76b447f9682772fa43e123df6408c97a74904911bb1b483522aa8c50a71241bc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.7 {"installer":{"name":"uv","version":"0.13.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Security for ai-ledger 0.1.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page