wassimbensalem

Claude Token Lens — Development skill for Claude Code

Development community

See exactly what's burning your Claude Code quota — live.

How to install Claude Token Lens

This entry records only its repository, not the path inside it, so there is no exact command to give. Open wassimbensalem/claude-token-lens and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

What Claude Token Lens does

See exactly what's burning your Claude Code quota — live. Per-tool, per-agent, per-skill, per-MCP attribution.

Alternatives in Development

  • Clauditor — Stop Claude Code from burning through your quota in 20 minutes 367 ★
  • Claude Modular — Production-ready modular Claude Code framework with 30+ commands, token optimization, and MCP server integrati 274 ★
  • LeanKG — LeanKG: Stop Burning Tokens 213 ★

README

claude-token-lens

[![npm version](https://img.shields.io/npm/v/claude-token-lens)](https://www.npmjs.com/package/claude-token-lens) [![npm downloads](https://img.shields.io/npm/dw/claude-token-lens)](https://www.npmjs.com/package/claude-token-lens) [![GitHub stars](https://img.shields.io/github/stars/wassimbensalem/claude-token-lens?style=social)](https://github.com/wassimbensalem/claude-token-lens)

See exactly what's burning your Claude Code quota — **live**.

Real-time token attribution for Claude Code sessions. Shows burn rate, quota progress, and a per-source breakdown: by tool, agent, skill, and MCP server.

![claude-token-lens demo](assets/demo.gif)


The problem

You're running Claude Code and suddenly you've burned through your quota. But *what* consumed it?

  • A skill that reads 40k tokens of context on every turn?
  • An agent spawning sub-agents that each spin up their own context?
  • An MCP tool hitting a large endpoint repeatedly?
  • Long Bash output being read back into the model?

The built-in `/stats` command shows a total percentage — but no breakdown. **claude-token-lens** reads the same session files Claude Code writes and shows you a live, per-source attribution table.


Install

npm install -g claude-token-lens
claude-token-lens live

Or run without installing:

npx claude-token-lens live
npx claude-token-lens sessions
npx claude-token-lens report

Quick start

# 1. Tell the tool which plan you're on (one-time)
claude-token-lens setup

# 2. Run from inside any project you're working on with Claude Code
cd ~/my-project
claude-token-lens live

Commands

`live` — real-time dashboard

claude-token-lens live
claude-token-lens live -p /path/to/project

Opens a live terminal UI that refreshes as Claude Code writes new turns.

claude-token-lens                                        v0.1.0  plan: MAX5 (~88k est.)

Window  ████████████░░░░░░░░░░░░░░░░░░  42%  36,960 / 88,