Showing the last saved plugin snapshot.

← Leaderboard / Other / Plugin
Last repository activity November 11, 2026 · Created October 21, 2026

ShallBay/dsh-token-stats

“Token usage dashboard for the whole harness.”

Star rank
#7936
declared plugin rank
In Other
#1683
category rank
Stars
1
GitHub repository
Forks
0
GitHub repository
Watchers
0
GitHub subscribers
Open on GitHub ↗
TL;DR

Token usage dashboard for the whole harness: billed tokens from every session are rolled up per session and turn (uncached input, cache read, cache write and output) with a peak/off-peak CNY cost estimate, and a "Token " entry above Settings in the sidebar opens the dashboard at /token-stats, in a new tab on the web and in an in-app popup on the Desktop. The page recollects and repaints every 60 seconds while the tab is visible. Usage is read from the same session event stream dsh-token-meter consumes, accepting 0.1.x assistant/chunk and 0.2.x assistant/message and assistant/attempt, and counting an attempt repeated after an llm retry as its own billed call; cold history is seeded once from a persisted rollup file and afterwards only logs whose mtime or size changed are re-parsed. Host half and client half ship in the one package.

30 days of GitHub stars
+0 stars
+0% observed change
Oct 14Oct 28Nov 12