token-meter

by greeneggwham · ★ 2 · updated 16 days ago

PanesBandsReskinsCommandswarnings

0

Shows API token usage under every answer, above the prompt and in a /tokens pane: input, output, cache read and cache write, per request, turn and session.

install token-meter

Install

/plugin marketplace add greeneggwham/token-meter
/plugin install token-meter@token-meter

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.startclassic.SessionStartturn.startturn.stepturn.completeui.rendercommand.run
API calls
$.clock.now$.command.register$.session.usage$.state.get$.state.set$.store.get$.store.set$.ui.log$.ui.open$.ui.resolve
Draws
AbovePromptPaneAssistantMessage
Can see
classic hooks
Reach
level 1 of 3 reads mod statepersists statedraws

Origin

How it got here
Automated scan of public GitHub repos, via the CC0 dataset awesome-claude-code-mods (scan of ).
Repository
github.com/greeneggwham/token-meter
Path in repo
repository root
Source commit
00ca565 the exact code the scan read
Author
@greeneggwham
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.