getagentseal/codeburn
Free, local tool to track AI coding token usage and cost across 37 tools and agents (Claude Code, Cursor, Codex, Gemini and more), by model, project, and task. npx codeburn
What it solves
CodeBurn addresses the lack of transparency in AI coding tool billing. While providers show total costs, they rarely detail how that spend is distributed across specific tasks, projects, or models, making it difficult for developers to identify waste or optimize their budget.
How it works
It is a local-first tool that reads session files already stored on your disk by AI coding tools. It uses pricing data from LiteLLM (refreshed daily) to calculate costs without requiring API keys, proxies, or wrappers. The tool provides several interfaces for viewing this data: a terminal-based dashboard (TUI), a local web dashboard, a macOS menubar app, and a GNOME Shell extension for Linux.
Who it’s for
Developers who use multiple AI coding agents and tools (such as Claude Code, Cursor, Codex, and Gemini) and want to track, analyze, and reduce their token usage and financial spend.
Highlights
- Multi-tool Support: Tracks usage across 40 different AI tools and agents.
- Waste Optimization: Scans for patterns like redundant file reads, low read-to-edit ratios, and unused MCP servers, providing ready-to-paste fixes.
- Budget Guardrails: Allows users to set soft and hard cost caps on sessions to prevent unexpected overspending.
- Model Comparison: Analyzes performance metrics like one-shot rates and retry rates to determine which model is most efficient for a specific user's workflow.
- Yield Tracking: Correlates AI sessions with git commits to categorize spend as productive, reverted, abandoned, or ambiguous.
- MCP Integration: Provides a Model Context Protocol (MCP) server so AI agents can analyze their own spending and suggest savings mid-conversation.
Related
- Project
- Project
- Project
- Project
- Project