Mu-scorpio/token-usage-counter

Mu-scorpio★ 0TypeScriptLast synced: 2026-08-16

Open on GitHub

Persistent provider-reported token usage statistics for DeepSeek Harness with per-session, per-model, and daily activity data.

README excerpt

Token Usage Counter English 中文 Know where every token goes. A persistent, accurate usage counter for DeepSeek Harness. DeepSeek Harness · TypeScript · Cordis plugin · local-first analytics token-usage-counter is a DeepSeek Harness plugin for accurate LLM token analytics. It persists provider-reported usage across restarts and makes the numbers available globally, by session, and by model—without counting failed or retried attempts twice. Why this counter is different Capability What you get Accurate buckets Uncached input, cache-hit input, cache writes, and output remain separate. Durable totals Statistics are persisted in the Harness usage-stats settings namespace. Restarting the harness does not reset them. Useful dimensions Inspect totals globally, per session, or per provider/model. Daily activity Feed the Web Settings summary and responsive heatmap with local-calendar-day data. Safe finalization Usage-only chunks are held until the matching successful message confirms them. Interactive command When commands is mounted, /tokens prints a readable live summary. The dashboard The companion Web Settings view is designed for quick scanning without hiding the details: - a three-row c…

View full README on GitHub →
Tools / Devai-developer-toolscordisdeepseekdeepseek-harnessdeveloper-toolsdsh-pluginheatmapllm

Category