ASI

Local usage analyzer for Claude Code and Codex

ASI's dashboard, Model fit tab, on demo data: estimated spend, the share run by subagents, spend on a bigger model than the guide suggests, the rough saving from effort, and a chart of spend per day by model.
The Model fit tab of the dashboard, on made-up demo data.

ASI reads the session files that Claude Code and Codex already keep on your computer and shows tokens, estimated cost, cache use and a monthly budget: in the terminal, in an offline dashboard and in an optional macOS menu bar app.

It also answers a second question: which Claude model and effort fit the work you did. Each Claude Code turn and subagent run is compared with Anthropic's model guide, and ASI shows where a smaller model or a lower effort would probably have done the job.

Everything happens on your device, when you ask for it. There is no account, no API key, no hook and no background service, and reading your sessions opens no network connection. Costs are estimates at API prices, not a bill.

Try it

git clone https://github.com/aiatsuk/asi
cd asi
python3 agent_usage.py dashboard --open

This builds the dashboard from your own sessions and opens it. It needs Python 3.9 or later on macOS or Linux, and nothing else.