Skip to content
HUIAHUB

getagentseal/codeburn

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

Metrics updated Established+0.6% 7d

GitHub metrics

Stars
12K
+68 this week
Forks
911
30-day growth
—
Open issues
24
12K12K12KOct 29, 2026Nov 23, 2026
GitHub stars from the official GitHub API, recorded each time the repository was checked (3 days).
GitHub stars by day
DayGitHub stars
2026-10-2911612
2026-11-1611821
2026-11-2311889

What it does

CodeBurn is a local tool for tracking token usage and estimated costs across AI coding tools. It reads session records saved by supported tools, including Claude Code, Codex, Cursor and Gemini CLI. The terminal dashboard groups usage by tool, model, project and activity. CodeBurn detects known session locations automatically, so basic reporting requires neither an account nor changes to your coding tools.

Reports cover selectable time periods and can be exported as CSV or JSON. A browser dashboard runs on localhost, and desktop applications are available for macOS, Windows and Linux. The desktop app lets you inspect individual sessions and their turns. Spend reports can attribute usage to git branches when the source records contain that information. Activity categories are determined from tool usage and message keywords rather than additional AI model calls.

CodeBurn also includes an Optimize command focused on Claude Code sessions and configuration. It identifies repeated file reads, unused MCP servers and configuration overhead that consumes tokens. Applying suggested changes is optional, with backups and undo support. Cost figures need careful interpretation. Subscription usage is expressed as an API-rate equivalent rather than the actual subscription bill. Some supported tools provide incomplete token records, requiring CodeBurn to estimate parts of their usage.

Why it matters

A monthly billing total does not explain which project, model or coding session consumed the tokens. CodeBurn combines session records from different coding tools and breaks down spending without placing a proxy between an agent and its model. Developers can inspect individual sessions and compare usage across projects. The accuracy of those figures still depends on the information each tool records locally.

Main features

  • Groups token usage and estimated costs by tool, model, project and activity.
  • Detects supported coding tools from their locally stored session records.
  • Provides terminal, local browser and desktop dashboards.
  • Exports usage reports in CSV and JSON formats.
  • Shows individual sessions, turns and their associated costs.
  • Attributes recorded spending to git branches and pull requests.
  • Scans Claude Code sessions and configuration for avoidable token overhead.
  • Supports optional configuration edits with backups and undo.

Who it's for

  • Developers using Claude Code, Codex, Cursor or Gemini CLI who want consolidated usage reports.
  • Developers comparing AI coding costs across projects, models and git branches.
  • Claude Code users investigating repeated file reads, unused MCP servers and configuration overhead.
  • Technical professionals who prefer local reporting over sending coding transcripts to another service.

Strengths

  • Combines usage from multiple AI coding tools without requiring changes to their execution.
  • Provides local terminal and browser views, desktop applications, and machine-readable exports.
  • Connects costs to projects, sessions and individual turns rather than reporting only aggregate totals.
  • Keeps configuration changes optional and provides backups and rollback commands.

Limitations

  • Cost estimates are not necessarily actual charges. For subscription users, dollar figures represent API-equivalent token costs rather than their subscription invoices.
  • Some providers expose incomplete usage data. Cursor output tokens are estimated, and unavailable cache information can cause reported usage to fall below the provider's totals.
  • Branch attribution depends on the original session records. Claude Code records branch information per turn, while most other supported tools do not.
  • Optimize concentrates on Claude Code transcripts and configuration. Its configuration diagnostics do not cover every supported coding tool.

Getting started

The command-line version requires Node.js 22.13 or later. Run the command below in a terminal. CodeBurn searches supported session locations automatically and opens its usage dashboard.

npx codeburn

Requirements: CLI: Node.js 22.13+ and local session records from a supported coding tool. No CodeBurn account required.

Always follow the official instructions in the README on GitHub. This overview is our summary, not a copy.

Sources