Track what your AI coding tools actually cost — a free, local dashboard (no Docker, no cloud)

AI coding CLIs (Claude Code, Codex, Gemini CLI, and friends) burn tokens fast, and the real consumption is easy to lose track of: flat subscriptions hide it, every tool has its own numbers, and IDE assistants only report to a vendor billing page. This is a small, free, fully-local setup that gives you one private view of what you're spending — by tool, by model, by day, and per project — plus a couple of workflow habits that cut the bill.

Everything here runs on your machine and uploads nothing. No API keys, no cloud account, no Docker. Two small scripts are included in this gist. Examples are Windows/PowerShell; the ideas port directly to macOS/Linux (swap ~/.claude paths and use a shell script).

One mindset shift first: for a subscription (e.g. a flat monthly plan), the dollar figures below are API-equivalent value — what those tokens would cost on metered API pricing — not what you actually pay. It's a consumption meter, not your invoice.

Instant view: ccusage (zero setup)