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

FUTO Swipe: Open-Source Swipe Typing Models Match Big Tech Accuracy
FUTO releases open-source swipe typing models and a 1M swipe dataset. Encoder (635K params) + ContextLM (1.5M) + decoder (304K) achieve ~4% top-4 fail rate. Fully offline in FUTO Keyboard.

ZuckerBot MCP Server Enables OpenClaw Agents to Run Meta Ads Campaigns
ZuckerBot is an MCP server that gives OpenClaw agents direct control over Meta Ads, allowing them to execute full campaign loops without human intervention. Over 50 unique agents are now live using it to pull competitor ads, generate targeting, launch campaigns, and adjust performance in code.

Definable AI adds self-hosted observability dashboard with single flag
Definable AI, an open-source Python framework for building AI agents, now includes a built-in observability dashboard that can be enabled with one flag. The dashboard provides real-time event streaming, token accounting, latency metrics, and run replay without external dependencies.

Atlarix v5.1 adds cloud tiers while maintaining local AI coding support
Atlarix v5.1.0 introduces Compass cloud tiers for immediate use while maintaining full Ollama and LM Studio support. The IDE uses a persistent SQLite graph called Blueprint to provide precise context to local models.