Mu-scorpio/token-usage-counter

Mu-scorpio★ 0TypeScript最后同步: 2026-08-16

在 GitHub 打开

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

README 摘要

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…

在 GitHub 查看完整 README →
工具/开发ai-developer-toolscordisdeepseekdeepseek-harnessdeveloper-toolsdsh-pluginheatmapllm

分类