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

Persistent Memory for Claude: Local Stack with MCP, 39ms Retrieval, 82% Token Reduction
A developer built a persistent memory layer for Claude using local vector search (Qdrant + Qwen3) and MCP integration, achieving 82% token reduction, 39ms hot-path retrieval, and session crystallization via L4 nodes.

ArayCode: Desktop CLI Client for OpenClaw with Voice, Multi-Agent Hotkeys, and Markdown UI
ArayCode turns OpenClaw into a desktop CLI app with voice I/O, multi-agent hotkeys, themes, and markdown UI built on Spectre.Console. Supports cloud and local STT/TTS providers.

MCP Server Directory Lists 1000+ Servers Across 20 Categories
A curated directory provides install commands and config snippets for over 1000 MCP servers across categories including databases, developer tools, browser automation, AI/ML, and cloud/devops. The directory is free to browse and submit to.

TradingView MCP Server Enables Claude to Backtest Trading Strategies
A developer has released an MCP server that allows Claude to backtest six trading strategies using Yahoo Finance data without API keys. Setup involves adding one line to the claude_desktop_config.json file.