CC-Ledger: Track Claude Code Costs Per Session and Per PR with Local SQLite

CC-Ledger is a local Rust binary that registers as a Claude Code hook and writes each turn to a local SQLite database the moment it completes. This gives you live visibility into session costs — catching runaway sessions before they drain your quota — and per-PR cost breakdowns without needing an API key.
How It Works
The tool was built after a single Claude Code session consumed most of the author's quota, with the Claude dashboard never flagging it. Additionally, one PR was found to cost 40x the median, with no built-in visibility into why. CC-Ledger addresses this by recording every turn to SQLite in real-time.
View analytics in three ways:
- macOS menu bar — via a SwiftBar plugin
- Web dashboard — hosted at
ccledger.dev - CLI — direct terminal queries
Getting Started
Clone the repo and build the Rust binary:
git clone https://github.com/delta-hq/cc-ledger
cd cc-ledger
cargo build --release
Then configure it as a Claude Code hook (refer to the repo README for detailed setup). The hook writes each turn to SQLite automatically.
Who It's For
Claude Code users who need granular cost tracking per session and per pull request to debug anomalies and avoid quota overruns.
📖 Read the full source: r/ClaudeAI
👀 See Also

Memora v0.2.25 MCP Server: 5× Faster Writes on D1 Database
Memora v0.2.25, an MCP server for Claude persistent memory, achieves 5× faster writes on Cloudflare D1 with memory_create dropping from 10s+ to ~1.8s and memory_update from 10s+ to ~1.1s per call.

MCP Server Connects Claude to Agent-to-Agent Marketplace
A developer built an MCP server that exposes five tools and two resources, allowing Claude to search, invoke, and pay for capabilities from other AI agents in a marketplace. The server includes persistent storage in an agent vault and was largely implemented using Claude Code.

Top 6 Open Source Claude Skills (April 15 – May 3)
Six open-source Claude skills from the last 15 days: brand-alchemy, npm-downloads-to-leads, hyperframes, email-newsletter, pricing, and more. Detailed breakdown of each skill's functionality.

OpenClaw-WebTop: Run OpenClaw with Ollama and Ubuntu Desktop in GitHub Codespaces
OpenClaw-WebTop provides a way to run a complete OpenClaw instance with Ollama and Ubuntu MATE desktop directly in a browser using GitHub Codespaces, requiring no local Docker installation or VPS.