lohani-mohit/tokenwise

5 stars ยท Last commit 2026-07-01

๐Ÿช™ A local, zero-dependency token-cost profiler for Claude Code sessions. Finds what actually burned your tokens (big results that re-bill every turn, redundant reads, runaway subagents) and how to cut it.

README preview

<div align="center">

# ๐Ÿช™ tokenwise

**See exactly what a Claude Code session cost you โ€” in tokens _and dollars_ โ€” and how to spend less.**

`tokenwise` runs a tiny local analyzer over your session transcript (main **and** subagents) and shows you the real cost drivers: big tool results that re-bill on every later turn, redundant file reads, runaway subagents, and cache efficiency โ€” then turns that into concrete, prioritized cuts.

The best part: the heavy parsing happens in a **zero-dependency Node script**, so Claude only reads a compact summary. The tool that tells you to stop dumping data into context doesn't dump data into context.

[Install](#install) ยท [What you get](#what-you-get) ยท [How it works](#how-it-works) ยท [Why it's different](#why-its-different) ยท [FAQ](#faq)

![read-only](https://img.shields.io/badge/mode-read--only-brightgreen) ![cost in $](https://img.shields.io/badge/cost-in%20real%20%24-brightgreen) ![zero deps](https://img.shields.io/badge/deps-zero-blue) ![node](https://img.shields.io/badge/node-%E2%89%A518-black) ![license](https://img.shields.io/badge/license-MIT-black) ![works with](https://img.shields.io/badge/Claude%20Code-skill-orange)

![tokenwise showing a session's exact cost, grade, and cost across sessions](assets/demo.gif)

</div>

---

View full repository on GitHub โ†’