dsh-spend
Token usage and estimated spend for the dsh web UI: floating panel with per-model, per-day, and per-session stats.
DSH Web 用量与费用统计插件:右下角悬浮窗,按模型/按天/按会话多维聚合与预计花费。
How to install
dsh plugin add dsh-spend About
dsh-spend Token usage & cost monitor for DeepSeek Harness — floating widget with multi-dimensional stats, time-series charts, auto-detected billing plans (Code/Token) and estimated spend. > dsh 用量与计费仪表盘:token 调用量、按模型 / 供应商 / 时间统计、预计费用,自动识别订阅制(Code)与按量(Token)计费计划。 简体中文 | English 在 dsh Web UI 右下角显示一个**悬浮用量窗口**,查看 **token 调用量、多维度统计与预计计费金额**。 交互方式: **悬浮胶囊**(右下角):始终显示预计费用与总 Token; **hover**:浮现摘要预览(费用、Token、输入 / 输出 / 缓存读、调用次数、**今日小计**); **点击**:展开详情面板,四个标签页;面板顶部有**工作区筛选**下拉(按项目限定全部统计口径,支持逐级下钻子目录): **总览**(仪表盘,参考主流用量面板的 KPI + 趋势布局):**统计栏**(预计花费(月)+ 构成、**当月预计**(本月按量外推)、按 token 估算、总 Token、调用、会话、**平均 / 次*…
Recommendation signals
Meta
- License
- MIT
- Language
- JavaScript
- GitHub stars
- 8
- mo. downloads
- 3.4K
- Last push
- 2026-09-07
- Created
- 2026-08-14
Basic safety check
- Findings
- None
- Sources
- curated:awesome-dsh-plugin.com, curated:awesome-dsh-plugin/awesome-dsh-plugin, curated:0xsline/awesome-deepseek-harness
- Topics
- deepseek-harness, dsh, dsh-plugin
Related plugins
TokenLedger
zh667/TokenLedger
Sidebar usage panel that attributes tokens to the relay site that served each request, read from your existing provider config: today/month/all-time totals, per-site and per-model breakdowns, a year activity heatmap, and New API / Sub2API / DeepSeek balances.
dsh-context
bowenliang123/dsh-context
DSH context insight panel: Context dashboard + /context command + Context browser — one-stop context lifecycle management with categorized composition, content details, evolution trends, compaction/injection events, and stats.
dsh-usage-statistics-panel
HaoyueQin/dsh-usage-statistics-panel
Usage statistics settings panel: 26-week activity heatmap, daily token trend with a cache hit-rate curve, per-model donut and breakdown, time-range filters, summary cards, one-time historical backfill and lossless rebuild.
dsh-all-usage
ParticleLight/dsh-all-usage
Analyze usage across models, providers, workspaces, and time ranges — including custom start/end dates over the full retained history — with live cache-hit visibility and separate model and provider breakdowns. Includes hourly single-day trends, daily cross-day trends, a 53-week GitHub-style heatmap, usage streaks, model and workspace Token-share donut charts with Token, cost, and percentage details, independent combinable filters, cache-efficiency trends, DeepSeek account balance, workspace aliases, CSV export, and a durable ledger that preserves successfully flushed usage after session deletion — and after a workspace is deleted, where its recorded usage is summed into one Deleted row — and rebuilds incrementally — on restart, unchanged sessions are applied from the ledger without re-reading their logs (a per-session log revision is the change signal), and only changed/new events are folded. The workspace registry is kept fresh automatically through the DSH domain/changed probe: only added/removed workspaces are reprocessed incrementally, unchanged workspaces reuse their computed aggregates and ledger with zero rescan, and usage is strictly limited to DSH-registered workspaces (unregistered cwds are ignored). After a scan, lightweight revision status fetches full history only when the Host/data state changes and exposes non-sensitive sync health (revision reuse, rereads, ledger recovery, and failures). Token accounting is explicit: input is fresh (cache read/write and reasoning are separate buckets) and zero-usage replays never overwrite recorded usage. Chinese uses local time, English uses UTC; API access is loopback-only.