dsh-token-usage
LaoYueHanNi
贴近 DSH 原生设计风格的 token 用量统计插件:实时记录每次请求的用量与费用,在 Web UI 中提供趋势图表、按模型定价明细和供应商配额显示。
bennett-dsh51Updated 6d ago
Token usage statistics plugin for DeepSeek Harness: daily/custom-range views, model filters, call counts & cost, configurable pricing, theme-aware dashboard. Inspired by CC Switch.
Practical score
81 / 100
Setup
Ready to use
License
MIT
Language
JavaScript
Copy the command, or hand the whole task to your harness agent.
npm installPlease install the DeepSeek Harness plugin "dsh-plugin-usage" for me. - GitHub repository: bennett-dsh/dsh-plugin-usage (https://github.com/bennett-dsh/dsh-plugin-usage) - Type: a Cordis plugin (installed into a DSH profile) - It should work out of the box wit…
A cleaned excerpt from the project's own documentation.
dsh-plugin-usage DeepSeek Harness 的 Token 用量统计 插件:按天 / 自定义范围查看 Token、调用次数与成本,支持模型筛选、定价配置和年度热力图。 Token usage statistics for DeepSeek Harness. 功能 - 今日 / 近 7 天 / 近 30 天 / 全部 / 自定义范围(不限跨度),按小时·天聚合 - 模型筛选、按模型明细(请求数、输入/输出、缓存、成本、占比) - KPI 网格里的「模型占比」卡:按总 Token 显示前 4 个模型与「其它」 - 参考成本可在 ¥ / $ 之间切换(固定汇率 1 USD = 7 CNY,宿主侧折算) - 参考价目表由脚本从 opencode Zen 与 DeepSeek 官方定价生成,高峰/空闲按北京时间分档 - 参考成本卡右上角的按钮打开「定价匹配」:未匹配的模型可直接挑参考模型,已确认的可以清掉;不改动就不落盘 - 可配置的每百万 Token 价格表(自定义价格优先于自动匹配) - 年度热力图;深/浅色自适应,只用 DSH 主题变量,无第三方图表库 - 输入区成本 pill :composer 旁显示「今日 ¥x.xx」(今日无调用时不占位),title 带调用次数与 Token;币种跟随设置页的 ¥/$ 选择 安装 插件已发布到 npm: dsh-plugin-usage 。 - DSH Desktop :设置 → 插件 → 添加插件,输入 dsh-plugin-usage - Web / CLI profile : dsh plugin --profile add dsh-plugin-usage ,重启生效 升级同理(桌面端在插件页点更新,CLI 用 update )。 desktop profile 由 Electron 应用独占,不能用 dsh plugin --profile desktop 操作。…
Open on GitHubSimilar tools from the same corner of the ecosystem.
LaoYueHanNi
贴近 DSH 原生设计风格的 token 用量统计插件:实时记录每次请求的用量与费用,在 Web UI 中提供趋势图表、按模型定价明细和供应商配额显示。
SuLiuCanYing
Local billing dashboard for DSH model calls: multi-platform provider/model breakdowns of calls, tokens and spend, peak/off-peak pricing, manual CSV price import with peak windows, official-bill reconciliation, and HTML/PDF/CSV export.
Lovenndme
Personal usage profile page for the DeepSeek Harness Web UI: tokens, peak day, streaks, activity heatmap, per-provider billing split — all from local session logs.