cd /news/ai-tools/i-tracked-2-86-billion-ai-coding-tok… · home › topics › ai-tools › article
[ARTICLE · art-139214] src=dev.to ↗ pub= topic=ai-tools verified=true sentiment=· neutral

I tracked 2.86 billion AI coding tokens. Here's what a commit actually costs.

A developer built Centrail, a CLI tool that reads local usage from AI coding agents and ties each token and dollar to the Git commit it produced, then syncs the results to a team dashboard. Pointed at the developer's own AI-assisted work, it tracked 2.86 billion tokens and $4,099 in AI spend across 944 commits, yielding a cost of $4.34 per shipped commit. The tool also estimates the energy, water and CO2 behind each token using a public methodology.

by read1 min views2 publishedSep 24, 2026

Every team I talk to is paying for Claude Code, Copilot, Codex or all three. Almost none of them can answer a simple question: what did that AI spend actually ship?

The provider invoice tells you how many tokens you bought. It doesn't tell you which commits those tokens turned into. So I built a tool that does, and pointed it at my own work first.

Here's everything Centrail has tracked on my own AI-assisted development so far:

Metric Total
Tokens 2.86 billion
AI spend $4,099
Commits 944
Cost per commit $4.34

"We spend $X a month on AI" is a budget line. "$4.34 per shipped commit" is a unit cost you can actually manage. Once you have it, you can ask better questions:

Centrail runs where the work happens, on your machine, not at the invoice level. The CLI reads local usage from your AI coding agents and ties each token and dollar to the Git commit it produced. That syncs to a dashboard, so the whole team or organization stays up to date on real AI metrics automatically. Nobody has to update a spreadsheet.

It also estimates the energy, water and CO2 behind every token, with a public methodology, because AI's footprint is a cost too.

What does a commit cost on your team? If you don't know, I'd love to hear how you're thinking about AI spend in the comments.

── more in #ai-tools 4 stories · sorted by recency
── more on @centrail 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
→ Live at https://your-agent.zahid.host ✓
Get free account → Pricing
from €0/mo · no card required
LIVE [news/i-tracked-2-86-billi…] indexed:0 read:1min 2026-09-24 · —