bhvbhushan/codeledger

5 stars · Last commit 2026-04-03

Token-level cost intelligence for AI coding tools — budget alerts, anomaly detection, and multi-tool tracking across Claude Code, Codex CLI, Cline, and Gemini CLI

README preview

# CodeLedger

**Token-level cost intelligence for AI coding tools.**

[![npm version](https://img.shields.io/npm/v/codeledger)](https://www.npmjs.com/package/codeledger)
[![license](https://img.shields.io/npm/l/codeledger)](./LICENSE)
[![TypeScript](https://img.shields.io/badge/TypeScript-5.9-blue)](https://www.typescriptlang.org/)
[![Node.js](https://img.shields.io/node/v/codeledger)](https://nodejs.org/)

CodeLedger is a Claude Code plugin that tracks where your AI coding tokens go — per-project, per-agent, per-skill — across Claude Code, Codex CLI, Cline, and Gemini CLI. It separates your actual coding work from background plugin overhead, sets budget alerts, and detects spend anomalies. Ask questions conversationally via MCP tools, or browse the local dashboard.

### Setup & MCP Tools
![CodeLedger Setup](demo/codeledger-setup.gif)

### Dashboard
![CodeLedger Dashboard](demo/codeledger-dashboard.gif)

## Why CodeLedger?

Running Claude Code agents can burn through tokens fast. A single session with 49 parallel subagents can cost $8,000-$15,000. But you have zero visibility into:

View full repository on GitHub →