Metadata-Version: 2.4
Name: ai-ledger
Version: 0.10.0
Summary: Local store and dashboards for AI coding-agent transcripts
Keywords: claude-code,codex,transcripts,dashboard,duckdb,llm,cost
Author: Nicolas Widart
Author-email: Nicolas Widart <n.widart@gmail.com>
License-Expression: MIT
License-File: LICENSE
Classifier: Development Status :: 4 - Beta
Classifier: Environment :: Web Environment
Classifier: Intended Audience :: Developers
Classifier: Operating System :: MacOS
Classifier: Operating System :: POSIX :: Linux
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Programming Language :: Python :: 3.14
Classifier: Topic :: Software Development
Requires-Dist: duckdb==2.0.0
Requires-Python: >=3.14
Project-URL: Homepage, https://github.com/nWidart/ai-ledger
Project-URL: Documentation, https://nwidart.github.io/ai-ledger/
Project-URL: Issues, https://github.com/nWidart/ai-ledger/issues
Project-URL: Changelog, https://github.com/nWidart/ai-ledger/blob/main/CHANGELOG.md
Description-Content-Type: text/markdown

# 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.

<picture><source media="(prefers-color-scheme: light)" srcset="https://raw.githubusercontent.com/nWidart/ai-ledger/main/docs/tour-light.gif"><img src="https://raw.githubusercontent.com/nWidart/ai-ledger/main/docs/tour.gif" alt="Tour of the pages"></picture>

## Install

AI Ledger needs [uv](https://docs.astral.sh/uv/getting-started/installation/) and runs on macOS and Linux.

```bash
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

```bash
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](https://nwidart.github.io/ai-ledger/concepts/privacy-security/).

## Documentation

The [documentation site](https://nwidart.github.io/ai-ledger/) covers everything else:

- [Install and first run](https://nwidart.github.io/ai-ledger/start/install/) and a [15-minute first tour](https://nwidart.github.io/ai-ledger/start/first-tour/) of the pages
- What each page shows: [Live](https://nwidart.github.io/ai-ledger/pages/live/), [Limits](https://nwidart.github.io/ai-ledger/pages/limits/), [Activity](https://nwidart.github.io/ai-ledger/pages/activity/), [Cost](https://nwidart.github.io/ai-ledger/pages/cost/), [Context](https://nwidart.github.io/ai-ledger/pages/context/), [Errors](https://nwidart.github.io/ai-ledger/pages/errors/)
- [Command-line options](https://nwidart.github.io/ai-ledger/reference/cli/) and [configuration](https://nwidart.github.io/ai-ledger/reference/configuration/), such as your own model or plan prices
- [Prometheus metrics and the Grafana dashboard](https://nwidart.github.io/ai-ledger/reference/metrics/)
- [Troubleshooting](https://nwidart.github.io/ai-ledger/reference/troubleshooting/)

## Contributing

See [CONTRIBUTING.md](https://github.com/nWidart/ai-ledger/blob/main/CONTRIBUTING.md).

## License

[MIT](https://github.com/nWidart/ai-ledger/blob/main/LICENSE)
