Token usage and cost tracking tools for coding agents
Trackers for token usage and spend across coding agents. Of the 338 tools on our writing code page, 8 fit this narrower job. By pricing: 6 open source, 1 source-available, 1 paid, usage-based or enterprise. The most-starred open repos here are Trail Code (10,211 stars), Mission Control (6,358 stars), Tokscale (5,695 stars). Most come from the coding (5), MCP & infra (2), business agents (1) categories.
Updated
Trail Code
Context layer that makes Claude Code, Cursor, Codex and other coding agents faster and cheaper on large codebases.
Added
Mission Control
Self-hosted control plane for dispatching tasks to agents, reviewing runs and tracking spend.
Added
Tokscale
Tracks token usage across AI coding agents from your terminal.
Added
abtop
htop-style monitor for Claude Code and Codex sessions and token use.
Added
jCodeMunch MCP
MCP server for symbol-level code exploration that cuts token use.
Added
Jevgrep
CLI that finds relevant repo files and excerpts from natural-language questions for coding agents; claims ~40% cheaper agent runs.
Added
HiRoute
HiRoute, from the Higress team, is an open-source local model router for long-running agents like Codex and Claude Code: it hands routine stages to cheaper models, saves your strongest model for hard steps and keeps a record of each decision.
Added
Empyre
Empyre turns a plain-language business brief into a running software company: eight AI agents (CEO, CTO, CMO, CFO and more) build it, deploy it to its own HTTPS address and keep operating it, shipping code, marketing and support with spend approval; plans $49, $149 and $299 a month.
Added
GitHub repos (7)
| Repo | GitHub stars | Licence | Last push |
|---|---|---|---|
| 10,211 | MIT | 2026-10-19 | |
| 6,358 | MIT | 2026-09-22 | |
| 5,695 | MIT | 2026-10-19 | |
| 3,752 | MIT | 2026-09-14 | |
| 2,776 | jCodeMunch-MCP Dual-Use License (free for non-commercial use) | 2026-10-19 | |
| 2,675 | MIT | 2026-10-19 | |
| 278 | — | — |
7 repos. Stars and licence come from each repo, checked when the listing was last verified.
FAQ
What are the best AI tools for writing code focused on token usage and cost tracking?
We list 8. The first three by GitHub stars and featured status are Trail Code: Context layer that makes Claude Code, Cursor, Codex and other coding agents faster and cheaper on large codebases.; Mission Control: Self-hosted control plane for dispatching tasks to agents, reviewing runs and tracking spend.; Tokscale: Tracks token usage across AI coding agents from your terminal.
Are there free or open-source options?
Yes: 6 open source, 1 source-available, 1 paid, usage-based or enterprise. Pricing is as each maker states it.
More from writing code
Tools are grouped by what each says it does. Missing one? Submit it free.