tokentab tallies up your terminal AI tool spend from local logs

tokentab tallies up your terminal AI tool spend from local logs

A new open-source CLI utility scans your local terminal logs to show exactly what your AI coding tools cost per day.

Developer crwdla released tokentab, a local Python tool that parses session logs left behind by Claude Code, Codex, and Gemini CLI. It calculates your exact token usage and dollar spend, broken down by model, project, day, and task type. The project hit 549 GitHub stars shortly after launch.

Why it matters: Terminal AI assistants make it easy to rack up spend without noticing. tokentab aggregates those local log files into terminal tables or a local browser view to show where the money went. It helps spot expensive models running on tiny tasks, wandering chat sessions, or low context-cache hit rates.

To try it, clone the repo and run pip install . followed by python cli.py. Adding -web launches a local browser view at localhost:4747 using Python's built-in web server. No API keys or external network calls are required.

Your local disk already has the receipts; this just adds up the bill.

Sources