Every month I got surprised by my OpenAI bill.

Not by a lot — but enough that I'd open the usage dashboard, squint at a chart, try to remember which project burned all those tokens, and give up. The dashboard shows totals. It doesn't help you understand which project cost the most, which model was doing the work, or whether that refactoring session with GPT-4 was actually cheaper than Claude.

So I built AICostTracker — a local CLI that logs API calls and shows a cost breakdown by project and model.

How it works

Log a call after you make it: