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    # opens http://127.0.0.1:8765/ in your browser

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/ and open it
uv tool upgrade ai-ledger   # new version and new prices

The app opens Activity in your browser; --no-open skips it. 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
--no-open off
--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.3

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.3
File Size Uploaded Provenance Actions
ai_ledger-0.1.3.tar.gz 212.6 kB With provenance Details for ai_ledger-0.1.3.tar.gz

Built distribution (wheel)

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

Total release size: 430.6 kB

Release files / ai_ledger-0.1.3.tar.gz

Download URL ai_ledger-0.1.3.tar.gz
Size 212.6 kB
Tags Source
SHA-256 checksum
How to use checksums
316802cfd5a3284863b32fee2295076cdaf781b86e58fdb974e772e684e92dd8
BLAKE2b-256 checksum
How to use checksums
dc3bbdd6415febb06d6e1bf6b9b17a6cfa9b9ab9a01b9fc281c76e138e614a9d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 11, 2026.

Transparency log

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

Download URL ai_ledger-0.1.3-py3-none-any.whl
Size 218.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1ad5839b70114f46e38c7635041e3c11ccc744b8568e5ad1edd2669a3f70563a
BLAKE2b-256 checksum
How to use checksums
f65022f4d19b8724ab2864d0ae83be35bdafa96bc41eaccb94899c527eaacb04
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 11, 2026.

Transparency log

Security for ai-ledger 0.1.3

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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for ai_ledger-0.1.3.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 11, 2026.

Transparency log

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