qiushui0901/dsh-token-stats

qiushui0901★ 1JavaScriptLast synced: 2026-08-15

Open on GitHub

Cross-session token usage statistics panel for DeepSeek Harness: monthly stacked cost chart by provider and model

README excerpt

dsh-token-stats 中文 Cross-session token usage statistics for DeepSeek Harness: a Settings panel with a monthly stacked cost chart broken down by provider and model (USD), month navigation, provider/model filters, and a per-model legend. Built as a standalone bundle (the harness's installable plugin format) — no changes to the core repository needed. Features - Overview — usage-bearing session count, the four provider-reported token buckets (uncached input, cache read, cache write, output), the grand total, and the estimated cost split per matched price table. - Monthly cost chart — stacked bars of each day's per-model cost for the displayed month, with month navigation, provider and model filters, gridlines with fixed two-decimal USD ticks, and a color-coded legend. - Per-model pricing — usage is priced via exact provider/model table matches (seeded with a deepseek / deepseek-v4-flash row), everything else falls back to the default table. Prices are fixed constants in this version; adjust DEFAULT PRICES / DEFAULT PRICE TABLES in src/client/usage-aggregate.ts and rebuild if you need different rates. - Data honesty — sessions whose cached projections predate the per-model units (or de…

View full README on GitHub →
Tools / Devdsh-plugin

Category