YZz-S/dsh-token-cost-meter
YZz-S★ 1JavaScript最后同步: 2026-08-15
Community plugins for DeepSeek Harness (DSH) Web GUI: session token cost meter with official dynamic pricing, DeepSeek & Volcengine billing balance, and update checker. Plain JavaScript, no build required.
README 摘要
dsh-token-cost-meter English · 中文 DeepSeek Harness (DSH) plugin that shows the current session's cumulative token consumption and estimated cost (CNY) in real time in the stats line below the input box, with prices fetched dynamically from the official DeepSeek pricing page. DeepSeek Harness(DSH)插件:在 Web GUI 输入框下方的统计行中实时显示当前会话累计 token 消耗与估算费用(人民币),价格从 DeepSeek 官方价格页动态获取。 Supports two forms: an installable dsh.bundle package (recommended, persists across DSH restarts) and the dynamic cordis define usage (temporary run). English 中文 · ← Back to DeepSeekHarnessPlugins Preview A new stats line appears below the input box (right of the built-in stats line): Hovering shows the breakdown: pricing model, input (cache-miss / cache-hit buckets), output, pricing mode (current / peak-hour / off-peak-hour), price source and fetch time. Features - Real usage : reads the session projection tokenUsage (provider-reported cumulative usage: cache-miss input / cache-hit input / output — same source as DSH's built-in stats line) - Official dynamic pricing : the Host fetches and parses the official DeepSeek pricing page every 6 hours (including peak/off-peak price tables, auto-switching by Beijing time) …
在 GitHub 查看完整 README →