CodeBurn

Active
GitHub TypeScript MIT

Description

A free, local-first tracker for AI coding token usage and cost across 41 tools and agents, broken down by model, project, and task, with no proxy and no API keys.

Key Features

  • 41 tools supported - auto-detects local session data from Claude Code, Cursor, Codex, Gemini, Grok, and more
  • Multi-dimensional breakdowns - splits every token and dollar by task, model, tool, and project
  • Waste scanning and fixes - the optimize command finds re-reads and low cache hits, applies config fixes, and supports undo
  • Budget guard - opt-in Claude Code hooks enforce soft and hard caps that warn or stop overspending sessions
  • Model comparison - ranks models on one-shot rate, retry rate, and cost per call from your own sessions
  • Multiple surfaces - TUI dashboard, local web charts, a macOS menubar app, and a Windows tray app

Use Cases

💡 Find out how much of your monthly AI bill went to conversation instead of code.
💡 Spot sessions where an expensive model burned budget on trivial work and rebalance model choice.
💡 Set soft and hard cost caps on Claude Code so a runaway session cannot drain your budget.
💡 Correlate AI sessions with git commits using the yield command to measure what spending shipped.

Strengths & Limitations

Strengths

  • Actively maintained, recent updates
  • High community interest (10.9k stars)
  • Permissive open-source license (MIT)
  • Responsive to issues, low backlog

Quick Start

# Open the interactive dashboard instantly without installing
npx codeburn
# Install globally for a permanent command
npm install -g codeburn
# On macOS you can also install via Homebrew
brew install codeburn
# Launch the macOS menubar app
codeburn menubar

Related Projects

Helicone

6.1k · TypeScript
Active A

Open-source LLM observability platform with one-line integration, providing request logging, caching, rate limiting, cost tracking, and experimentation.

observabilityllm-monitoringcost-tracking +2
  • · AI Gateway — access 100+ AI models with one API key, intelligent routing and automatic fallbacks
  • · One-line integration — supports OpenAI, Anthropic, LangChain, Gemini, Vercel AI SDK and more
  • · Observability platform — inspect and debug traces and sessions for agents, chatbots, pipelines

Claude DevTools

3.9k · TypeScript
Stale B

Developer tools for Claude Code, providing full-chain debugging capabilities for inspecting session logs, tool calls, token usage, and sub-agents.

claude-codedevtoolsobservability +2
  • · Session log inspection - visualize complete Claude Code session history and every message
  • · Tool call tracing - detailed records of each tool call input, output, duration and error
  • · Token usage analysis - token consumption statistics by session, by tool, by message type