token-usage

by monowu · ★ 0 · updated yesterday

PanesBandsStatus lineCommandsvalidates

0

Pane showing remaining token usage: context window, rate-limit windows, cost

install token-usage

Install

git clone https://github.com/monowu/claude-mod-token-usage
claude --plugin-dir ./claude-mod-token-usage

Then run /reload-plugins or start a new session. Requires Claude Code 2.1.287+.

View source on GitHub

What it hooks into

From an automated scan with claude plugin validate, not a security review. Mods run with your permissions; read the code before installing.

Events
session.startturn.completesession.compactui.rendersession.measurecommand.run
API calls
$.clock.every$.command.register$.prompt.fill$.session.compact$.session.usage$.state.get$.state.set$.ui.invalidate$.ui.open$.ui.resolve$.ui.status$.ui.toast
Draws
AbovePromptPane
Can see
compaction
Reach
level 2 of 3 other: $.state.getother: $.state.setdrives Claudewrites the prompt boxdraws

Origin

How it got here
Automated scan of public GitHub repos, via the CC0 dataset awesome-claude-code-mods (scan of ).
Repository
github.com/monowu/claude-mod-token-usage
Path in repo
repository root
Source commit
98f3c15 the exact code the scan read
Author
@monowu
License
MIT
First published
Last pushed
First listed here

Name and description come from the mod's own manifest. We link to the code; we don't host it, and it stays under its author's license.