getagentseal/codeburn
Local session-log analytics for AI coding tokens, spend, and quotas
Automated SPDX check for reference only — not legal advice. Disclaimer
GitHub Star History
Full-history star trajectory from GitHub official history. Switch ranges or hover any point for exact counts.
Evidence-Backed Technical Brief
AI Deep ReviewArchitecture & Core Mechanics
CodeBurn is a TypeScript end-user observability app, not an agent runner or a proxy. It discovers session files already written by supported coding tools, parses recorded calls and token counts, applies LiteLLM pricing, and aggregates the results. The terminal UI, desktop app, web dashboard, and menu-bar or tray views use the same local data, though their totals can differ temporarily when they refresh at different times.
The package exposes a codeburn binary and lists Commander, Ink, React, Zod, and @modelcontextprotocol/sdk as dependencies. The tree separates src/, dash/, app/, plugins/, and vscode/, with platform-specific code under mac/, windows/, and gnome/. The Claude Code plugin adds /codeburn:cost and configures a local stdio MCP server. That server queries the same local data without making network calls of its own.
Key Capabilities & Differentiators
Spend analysis runs from a period total down to a single turn. Breakdowns cover tool, model, project, git branch, and task; task categories such as coding, debugging, and planning are inferred from sessions. Side-by-side period comparison helps evaluate model or workflow changes. Yield correlates spend with pull requests recorded in sessions. codeburn context breaks down context by source and reports compactions, with block sizes estimated from character counts.
codeburn optimize scans the last 30 days of sessions and ~/.claude/ configuration for costs such as repeatedly loaded files or unused MCP servers. Findings distinguish measured from modeled savings, and the A–F grade rates configuration, not how much was spent. Selected fixes support review, backup, undo, and follow-up measurement. Subscription tracking and live quota checks are separate from Guard, which uses opt-in Claude Code hooks for spending thresholds, tool loops, and repeated command failures.
Trade-offs & Limitations
Compared with provider billing consoles, CodeBurn offers finer cross-tool attribution but prices recorded tokens rather than reconciling invoices. Subscription utilization and token-priced spend are different measures. Coverage depends on what each tool persists and whether its parser keeps pace with format changes; missing or incomplete sessions can leave gaps. Compared with a gateway, out-of-band collection avoids changing the request path, but it cannot enforce a budget across providers. Guard is limited to Claude Code.
Local analysis also does not make every interface or output equivalent for privacy. The desktop app and macOS menu bar start with anonymous telemetry enabled; the Windows tray asks once. The MCP server is local and pseudonymizes project names by default, but agents can request them. Exports omit prompts, replies, code, and file contents, yet still carry identifiers and command names. Review those fields before sharing reports outside the machine or team.
Hardware & Deployment Guide
Run npx codeburn with Node.js 22.15 or newer, install persistently with npm install -g codeburn or brew install codeburn, or launch codeburn web for a browser view. Local spend analysis needs no account, API key, proxy, or GPU. Model pricing refreshes daily, and live quota checks use tools where you are already signed in, so local analysis should not be read as a guarantee that every feature works offline.
codeburn menubar installs the signed, notarized macOS app and records the CLI path it will use. The Windows desktop app is available through the Microsoft Store; the separate unsigned tray MSI requires CodeBurn 0.9.9 or newer and WebView2. Windows can also read sessions from WSL home directories, and Linux has a GNOME Shell extension. Release desktop-v0.9.28 adds macOS quota exhaustion forecasts using one hour of history for short windows and six for long ones, with two readings at least ten minutes apart.
codeburn optimize --apply previews changes and backs up files; codeburn act undo --last rolls back the last change, and codeburn act report compares projected savings with later usage.codeburn quota reads live limits from signed-in tools; codeburn guard install adds opt-in Claude Code hooks with configurable $5 warning and $15 stop defaults.codeburn.export.v3 JSON expose usage records and activity metadata without prompts or code.Developers and teams with access to local coding-agent logs who want to attribute spend to projects and branches, investigate expensive sessions, and measure the effect of configuration changes.
You need invoice reconciliation, coverage of activity not captured in accessible session logs, or centrally enforced budgets across providers.
Quick Start & Installation
npx codeburnComparison vs. Top Agents & Frameworks Alternatives
Full comparison →| Repository | Stars | 7d Trend | Stack | License | Core Positioning |
|---|---|---|---|---|---|
| codeburn ★ | 12k | +63 | TypeScript | MIT | Local session-log analytics for AI coding tokens, spend, and quotas |
| OpenHands | 94.8k | +374 | TypeScript | MIT | Self-hosted control plane for coding agents across local, remote, and cloud back |
| n8n | 213.1k | +787 | TypeScript | — | Visual Node.js platform for self-hosted workflows and multi-step AI agents |
| OfficeCLI | 33.8k | +135 | C# | Apache-2.0 | A single-binary OOXML CLI for agents to edit, render, and validate Office files |
AI Context Briefing (for Claude / Cursor / Windsurf)
Standardized architecture summary & quickstart commands ready to paste into coding agents.
curl -sL https://repoforai.com/repo/getagentseal/codeburn.md
Active README embeds unlock Hot-Tier 6h Telemetry Refresh automatically (zero pay-to-rank).
Frequently Asked Questions about codeburn
How does CodeBurn collect usage, and how does an agent query it?
claude mcp add codeburn -- npx -y codeburn mcp registers a local stdio server. The server itself makes no network calls and pseudonymizes project names by default, unless the client requests them.Does it need a GPU, and what drives runtime overhead?
Can a company deploy or redistribute it under the MIT license?
When should I use CodeBurn instead of a provider console or usage gateway?
Upstream README & Documentation
This profile focuses on independent engineering analysis and live telemetry. Read the full upstream README, changelog, and examples directly on GitHub.
Top 10 Breakout Open-Source AI Repos, Every Thursday
Signal-only digest of fast-growing AI repos, SPDX license alerts, and architecture picks. Zero spam.
Zero spam · 1-click unsubscribe · Privacy Policy