Overview
dsh-token-stats
Global token usage statistics for the DeepSeek Harness: real llm/stream usage collection, durable JSONL ledger, per-provider/model/session/day aggregation, cost estimation with OpenRouter price refresh, a draggable FAB panel, a centered detail dashboard, and a token_stats model tool.
README / EN
Package documentation
Registry summary
Global token usage statistics for the DeepSeek Harness: real llm/stream usage collection, durable JSONL ledger, per-provider/model/session/day aggregation, cost estimation with OpenRouter price refresh, a draggable FAB panel, a centered detail dashboard, and a token_stats model tool.
dsh.pub verifies the pinned bundle contract, runtime facts, and distribution semantics. The complete README remains in the source repository.
Read the full README on GitHubLIMITATIONS
Known limitations
- 浏览器端无「UI 当前会话 id」官方接口:当前会话跟随基于 DOM 探测 + 标题匹配,会话列表不可见或标题歧义时回退到最近活跃会话 - 会话维度的分布(供应商/模型/日期)基于保留窗口(最近 500 条)聚合,总量 `totals` 为完整账本 - 费用为估算值(按模型单价 × 用量),实际结算以你的网关/厂商账单为准 - 统计口径为**真实 usage**(计费口径:输入 = 未缓存 + 缓存读 + 缓存写),与 DSH 内置 token-meter 的估算口径不同
