usage-meter

by Rohit · ★ 16 · updated 5 days ago

PanesBandsStatus lineGuardsCommandsvalidates

0

Live view of where every token goes: plan limit %, tokens and API-equivalent $, by machine, thread, subagent, task and model

install usage-meter

Install

git clone https://github.com/rohit3a/usage-meter
claude --plugin-dir ./usage-meter/mod

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.startagent.spawnturn.steptool.callturn.completesession.compactsession.measuresession.endcommand.runui.render
API calls
$.clock.after$.clock.every$.clock.now$.command.register$.env.get$.fs.read$.fs.stat$.fs.write$.session.compact$.session.id$.session.model$.session.usage$.state.get$.state.set$.ui.invalidate$.ui.log$.ui.open$.ui.panes$.ui.resolve$.ui.status$.ui.toast
Draws
AbovePromptPane
Can see
subagent spawnsBash callscompaction
Reach
level 2 of 3 writes filesdrives Claudereads filesreads env varsreads mod 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/rohit3a/usage-meter
Path in repo
mod
Source commit
94135cb the exact code the scan read
Author
Rohit @rohit3a
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.