BotBeat
...
← Back

> ▌

AnthropicAnthropic
PRODUCT LAUNCHAnthropic2026-06-10

Anthropic Launches CC-Ledger: Cost Tracking Dashboard for Claude Code Sessions

Key Takeaways

  • ▸CC-Ledger provides real-time cost tracking and attribution for AI coding sessions at the PR level, answering what merged PRs actually cost
  • ▸Session cost distribution metrics (p50, p95, p99) help engineering leaders identify runaway spend before it shows up on invoices
  • ▸Auto-classification of agent turns into planning, coding, debugging, and review helps leaders understand whether spending is exploratory or productive
Source:
Hacker Newshttps://ccledger.dev↗

Summary

Anthropic has introduced CC-Ledger, an open-source tool that provides engineering leaders with real-time visibility into the costs of AI-assisted coding sessions using Claude Code, Cursor, and other AI coding assistants. The tool captures every prompt, tool call, and code change into a local SQLite database and surfaces three critical metrics: the true cost of merged PRs, identification of "runaway burn" sessions, and breakdown of where AI spend goes—toward planning and exploration versus productive coding.

CC-Ledger answers a growing operational need as AI coding assistants become standard. The dashboard aggregates token spend per merged PR (with cache reads discounted at 10%) and provides session-cost distribution visibility at p50, p95, and p99 percentiles to surface cost outliers before they impact invoices. The tool also auto-classifies agent turns into planning, coding, debugging, and review categories, enabling leaders to distinguish exploratory from execution spend.

Installation is minimal: a single command wires CC-Ledger's lifecycle hooks into Claude Code with no external daemons or SaaS infrastructure. All telemetry remains local, with optional GitHub App integration committing session records to a private git branch. The dashboard supports drill-down by user, repository, and time period, giving directors and VPs the visibility they need to justify and optimize AI spend.

  • One-command installation with fully local execution (SQLite, no external SaaS) means teams can adopt cost visibility without new dependencies or privacy concerns

Editorial Opinion

CC-Ledger addresses a real blind spot for engineering teams adopting AI coding tools at scale. By localizing all telemetry and providing drill-down cost visibility without external SaaS infrastructure, Anthropic has built something leaders can actually use to justify AI spend and identify which teams and workflows get the most leverage. As AI development costs rise, this kind of operational transparency will become table-stakes.

AI AgentsMLOps & InfrastructureOpen Source

More from Anthropic

AnthropicAnthropic
PRODUCT LAUNCH

Anthropic Releases Claude Opus 5: Mid-Tier Model Balances Performance and Affordability

2026-07-25
AnthropicAnthropic
RESEARCH

Dragos: Real-World Cyberattack Used Claude and GPT to Breach Water Utility OT Systems

2026-07-25
AnthropicAnthropic
INDUSTRY REPORT

Silicon Valley Splits Over Chinese AI: Safety vs. Access Debate Intensifies

2026-07-25

Comments

Suggested

CloudflareCloudflare
UPDATE

Cloudflare Expands AI Bot Controls With Nuanced Classification System

2026-07-25
LGLG
OPEN SOURCE

Toolgz Slashes LLM Tool-Definition Tokens 80% With Zero Accuracy Loss

2026-07-25
AnthropicAnthropic
PRODUCT LAUNCH

Anthropic Releases Claude Opus 5: Mid-Tier Model Balances Performance and Affordability

2026-07-25
← Back to news
© 2026 BotBeat
AboutPrivacy PolicyTerms of ServiceContact Us