burner-cc
v0.3.6
Published
What your Claude Code sessions cost, and what they were for — itemized receipts, projects, intent tagging.
Maintainers
Readme
burner
What your Claude Code sessions cost, and what they were for — itemized receipts, projects, intent tagging, and a local analytics app.
Zero runtime dependencies. Reads ~/.claude/projects/ on your machine. Only network use by default is refreshing public model prices (optional).
https://github.com/user-attachments/assets/34e7075d-b427-4190-9346-c70387dc8f7e
Install
npm install -g burner-cc
# commands: burner (alias entry: burner-cc)Or without installing:
npx burner-ccNode 18+ required.
Quick start
burner # opens http://127.0.0.1:4777 (report + Settings)
burner serve # same; --port N, --no-open
burner install # global /burner-tag skill + tagging level from ~/.burner/config.yamlSettings covers projects, categories, pricing (pin/refresh per model), billing (enter what you were actually charged), and tagging (slider, train your intent model).
Commands
burner list [--json] [--project NAME] [--from YYYY-MM-DD] [--to YYYY-MM-DD]
burner receipt [session-id|title] # one receipt HTML under ~/.burner/
burner report [--no-open] # static report.html + receipt-*.html
burner tag <category> [--session ID] [--reason TEXT] [--task]
burner tag --clear [--session ID]
burner install | uninstall | status
burner pricing refresh
burner model train [--data FILE.jsonl] [--swe-chat] [--prior]burner tag is what /burner-tag runs. After npm i -g burner-cc, hooks and the skill use the burner command on your PATH.
Categories
Intent, not tool counts — e.g. reading files to fix a bug is debugging, not research.
Default ids: coding · debugging · planning · research · writing · analysis · review · learning · other (editable in Settings).
Resolution order:
- Tag (
/burner-tag, receipt picker, session-end model, or CLI) - Project default category
- Your trained model (optional; only if enabled and confidence ≥ 60%)
- Otherwise untagged — no folder-name or tool-ratio guessing
Tagging levels (Settings)
| Level | Behavior |
|--------|----------|
| Off | Removes global skill / hooks |
| Manual | /burner-tag only; skill stays installed |
| Session end | SessionEnd hook tags with your local trained model (no API, no CLAUDE.md) |
In Claude Code, typing /burner-tag lists one entry per category (/burner-tag-coding, /burner-tag-debugging, …) — pick one and the session is tagged by a shell command, with no model judgment. /burner-tag <category> works too, and plain /burner-tag lets Claude choose. The entries follow your categories; re-sync happens when you edit them in Settings.
Moving the tagging slider updates ~/.claude automatically. Use Train from my tags in Settings for a local naive-Bayes model (~/.burner/model/intent-nb.json). Training is pure Node — no GPU or Python. Every tag you set is also learned immediately, and Settings shows a leave-one-out accuracy figure measured on your own tags (older features vs. the current ones). CLI burner model train does the same; --prior / --swe-chat are optional extras.
What you were actually charged
Burner estimates dollars from tokens and public prices, which can differ from your invoice. In Settings → Billing enter the amount you were charged for a period (e.g. a month). Every dollar figure in that period — report, receipts, charts — is multiplied by one factor (billed ÷ calculated) so the total matches your invoice to the cent while every percentage and comparison between sessions stays the same. Token counts are never changed. Periods can't overlap; a session belongs to the period its last activity falls in.
Tokens & pricing
- One API request → several transcript lines; burner bills the last chunk per
requestId, dedupes continued sessions, rolls subagents into the parent. - Totals: fresh input, cache write (5m/1h), cache read, output.
- Claude models: public LiteLLM price list (daily refresh, offline snapshot fallback).
- Other models (gateway, on-prem, local): $0 until you set a price in Settings.
Files
| Path | Purpose |
|------|---------|
| ~/.burner/config.yaml | projects, categories, tagging, UI theme/range |
| ~/.burner/pricing.yaml | your USD/1M overrides |
| ~/.burner/tags.json | session tags |
| ~/.burner/assignments.json | per-session project overrides |
| ~/.burner/model/intent-nb.json | your trained intent model |
| ~/.claude/skills/burner-tag/ | global skill (burner install) |
BURNER_HOME and CLAUDE_CONFIG_DIR override ~/.burner and ~/.claude. Legacy ~/.ti-burner data is migrated on first run.
Not official Anthropic billing.
