usage-lens
by Dale Dai · ★ 0 · updated 21 Oct 2026
0
用量透视:5 小时窗口或任意时段内,各 session 的用量占比,及每个 session 里主 agent / 子 agent 各用了多少、什么模型
Install
/plugin marketplace add fivefivekai666/usage-lens/plugin install usage-lens@usage-lensThen 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.startsession.measurecommand.runui.closeui.render- API calls
$.clock.after$.clock.every$.clock.now$.command.register$.http.fetch$.process.run$.session.authorize$.session.id$.session.usage$.state.get$.state.set$.store.get$.store.set$.ui.open$.ui.panes$.ui.resolve$.ui.status- Draws
SessionModeAbovePromptPane- Reach
- level 3 of 3 networkruns processesreads mod staterequests an Anthropic credential handlepersists 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/fivefivekai666/usage-lens
- Path in repo
- repository root
- Source commit
53a6729the exact code the scan read- Author
- Dale Dai @fivefivekai666
- 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.