01 / codex-spend live on npm · terminal
See what Codex actually burned.
A local CLI that parses Codex sessions and shows token burn by model and by file. 1,474 downloads in 12 months, no telemetry, no auth.
- Parses Codex JSONL on disk , no API call needed
- Groups by model and by file so the costly file stands out
- 7-day and 30-day windows with one flag
- Zero config , runs from npx
- No telemetry, no auth, no network
- Built for the question I kept asking: where did tokens go?
Limitation: only as good as Codex's own session logs. Breaks if the log format shifts.
$ npx codex-spend --last 7d
› 12 sessions · 1.2M tokens
gpt-4o 820k ████████░░
gpt-4o-mini 380k ███░░░░░░░
› priciest file: src/eval/harness.py 41k
Local-only. Parses the session files already on disk.