AI Ledger
See what Claude Code, Codex and Grok did, what it cost, and where they got stuck.
AI Ledger reads your Claude Code, Codex and Grok CLI transcripts and turns them into local dashboards: Live, Limits, Activity, Cost, Context and Errors. Your agents delete old transcripts; AI Ledger keeps every line.
Install
AI Ledger needs uv and runs on macOS and Linux.
uv tool install ai-ledger
To try it without installing, run uvx ai-ledger instead. To upgrade later, including new model prices, run uv tool upgrade ai-ledger.
First run
ai-ledger
The app serves on http://127.0.0.1:8765/ and opens it in your browser. The first start reads every transcript in ~/.claude/projects, ~/.codex and ~/.grok, about 5 minutes for a month of heavy use. The page fills in as it goes. After that, the app reads new lines every 60 seconds while it runs.
Your data stays on your machine. The store keeps every transcript line, including any secrets that appeared in a session, so do not share it. See Privacy and security.
Documentation
The documentation site covers everything else:
- Install and first run and a 15-minute first tour of the pages
- What each page shows: Live, Limits, Activity, Cost, Context, Errors
- Command-line options and configuration, such as your own model or plan prices
- Prometheus metrics and the Grafana dashboard
- Troubleshooting
Contributing
See CONTRIBUTING.md.
License
Metadata
Release files for ai-ledger 0.10.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| ai_ledger-0.10.0.tar.gz | 764.6 kB | With provenance | Details for ai_ledger-0.10.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| ai_ledger-0.10.0-py3-none-any.whl | Python 3 | none | any | Details for ai_ledger-0.10.0-py3-none-any.whl |
Total release size: 1.5 MB
Release files / ai_ledger-0.10.0.tar.gz
| Download URL | ai_ledger-0.10.0.tar.gz |
|---|---|
| Size | 764.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
835b640c53687285900a33f4d3f0e6c61c609fb8efa35ce91e25b303d857d6b6
|
|
BLAKE2b-256 checksum How to use checksums |
77f3a318c858cfa0d2d2d0d93d5fbbbbfb767ee165db35c20378cbd325659f87
|
| 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 29, 2026.
Transparency logRelease files / ai_ledger-0.10.0-py3-none-any.whl
| Download URL | ai_ledger-0.10.0-py3-none-any.whl |
|---|---|
| Size | 784.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
94705d97b9ddb4d9078d20cacbf5fc66ff6deb63b052c227dacc9c336517c5e2
|
|
BLAKE2b-256 checksum How to use checksums |
51c13fe20e615dab8868a451ab317b9efc48bbd31afc5c041491178e07f8187f
|
| 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 29, 2026.
Transparency logSecurity for ai-ledger 0.10.0
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.
Attestation for ai_ledger-0.10.0.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 29, 2026.
Transparency logA 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.