token-usage
by monowu · ★ 0 · updated yesterday
0
Pane showing remaining token usage: context window, rate-limit windows, cost
Install
git clone https://github.com/monowu/claude-mod-token-usageclaude --plugin-dir ./claude-mod-token-usageThen run /reload-plugins or start a new session. Requires Claude Code 2.1.287+.
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
98f3c15the 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.