token-usage
by Evaldo Klock · ★ 0 · updated 7 days ago
0
A Claude Code mod that draws a band above the prompt with the whole session's prompt cache reads and writes, token usage, cost and subscription rate limits.
Install
/plugin marketplace add ejklock/claude-usage-mod/plugin install token-usage@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
prompt.contextturn.stepsession.startsession.measureui.render- API calls
$.clock.now$.session.usage$.state.get$.state.set$.ui.resolve- Draws
AbovePrompt- Can see
the system prompt- Reach
- level 1 of 3 other: $.state.getother: $.state.setdraws
Origin
- How it got here
- Automated scan of public GitHub repos, via the CC0 dataset awesome-claude-code-mods (scan of ).
- Repository
- github.com/ejklock/claude-usage-mod
- Path in repo
- repository root
- Source commit
e2ec56cthe exact code the scan read- Author
- Evaldo Klock @ejklock
- 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.