cc/ledgerSign in
ai coding telemetry

Every prompt has a price.
cc-ledger shows you both.

cc-ledger captures every Claude Code, Cursor, and Copilot session in your repos and answers the three questions every engineering leader is asking: what does a PR actually cost, which sessions are runaway burns, and where does the spend go — planning or coding?

View source on GitHub
events.livestreaming
12:04:23prompt.startcc-ledger/api
12:04:24·tool.usebash
12:04:27·tool.useedit src/auth.rs
12:04:31$cost+$0.0142
12:04:32+lines.ai+47
12:04:48·tool.usebash
12:05:02commit7e2c1a3
12:05:11pr.opened#221
12:05:12$cost.session$1.84
12:05:13session.end14m32s
12:04:23prompt.startcc-ledger/api
12:04:24·tool.usebash
12:04:27·tool.useedit src/auth.rs
12:04:31$cost+$0.0142
12:04:32+lines.ai+47
12:04:48·tool.usebash
12:05:02commit7e2c1a3
12:05:11pr.opened#221
12:05:12$cost.session$1.84
12:05:13session.end14m32s
metrics

What cc-ledger tracks

cost · per pr

What does a PR actually cost?

Token spend rolled up per merged PR — cache reads at 10%, batch tier applied. Drill in by repo, team, or author.

$4.82−12% w/w· avg / merged PR
runaway · p99

Which sessions are burning?

Session-cost distribution — p50, p95, p99 — so the tail is visible before it shows up on the invoice. Click through to the offender.

P50$0.42P95$3.10P99$18.40
category · split

Where the dollars go

Agent turns auto-classified — planning, coding, debugging, review — so leaders see whether spend is exploration or execution.

planning38%coding47%debug10%other5%
audience

Built for engineering leaders

Directors, VPs, and team leads need to answer one question: is the AI spend justified, and which teams get leverage?

cc-ledger is the dashboard, not the raw logs. No spelunking through JSONL transcripts. Open the page, see cost per PR, the runaway tail, and where planning ends and coding begins. Drill into any user, any repo, any week.

Avg cost per PR$4.82
p99 session cost$18.40
Planning vs. coding38 / 47
setup

How it works

01

Install hooks

One command wires Claude Code lifecycle hooks into your repo. No daemons, no SaaS pings — everything runs locally.

$ curl -fsSL https://ccledger.dev/install | bash
02

Sessions captured

Every prompt, every tool call, every diff is recorded into a local SQLite ledger and (optionally) committed to a private git branch alongside your code.

03

Connect & view

Authorize the GitHub App, point cc-ledger at your repos, and the dashboard fills in real time. Cost, attribution, throughput — per user, per repo, per week.

ready when you are

See your numbers.

View source on GitHub