Tracks this turn cost under the input box, today tokens and spend in the sidebar with peak and idle pricing, and pins the latest question to the top of the conversation.
Install
# from npm (prebuilt)
dsh plugin --profile web add dsh-usage-suite
# from GitHub (first run asks for allowBuilds approval — follow the hint, retry)
dsh plugin --profile web add github:xfpuls/dsh-usage-suite
Any plugin you install runs third-party code with your own permissions — it can read your files, use your credentials, and reach the network, and tool approvals don’t sandbox it. GitHub-sourced plugins also run build scripts at install time — pnpm blocks those until you allow them, so an install can stop with ERR_PNPM_GIT_DEP_PREPARE_NOT_ALLOWED or ERR_PNPM_IGNORED_BUILDS; dsh prints the exact key to add under allowBuilds in your profile’s pnpm-workspace.yaml, and the install works on the next run. Allowing a build is a trust decision: only install sources you trust, and pin a commit (github:owner/repo#sha).
README
This plugin publishes its README in Chinese only.
DeepSeek Harness(DSH)桌面端的一个插件,把用量费用统计和提问置顶两块能力合在一起。
一、用量与费用统计
| 位置 | 显示内容 |
|---|---|
| 输入框下方的统计行 | 本轮花费,如 本轮 ¥0.1234(金额保留四位小数,鼠标悬浮看 token 明细) |
| 侧栏底部「远程控制」上方 | 今日用量:所有工作区与母会话的 token 合计、消费金额,以及当前属于空闲时段还是高峰时段 |
计费规则(与 DeepSeek 官方一致):
- 高峰时段:北京时间周一至周五 09:00-12:00、14:00-18:00
- 空闲时段:其余时间,含周末与法定节假日全天;空闲价 = 高峰价的一半
- 缓存写入按「输入(缓存未命中)」计价(官方未单列该价格)
- 计费时段按北京时间判定;「今天」的边界按本机时区的 0 点判定
内置价目表(元 / 百万 tokens,采集自官方定价页):
二、提问置顶
- 对话区顶部右侧钉着一个气泡:📌 第 N 轮 · 当前问题 · 点击回到这里,下面是最新一条提问
- 滚动对话时它固定不动;你每发一条新消息它就跟着换。
三、侧栏顶部的桌面按钮
- 重启桌面端:重启整个 DSH 应用。
- 重载界面:只重新加载当前界面,不中断任何任务。
四、插件页「官方」分组的折叠开关
「插件」页「官方」那一行右侧有一个开关,用来收起或展开整组官方插件。
已知限制
- 计费时段按北京时间判定;电脑时区不是 UTC+8 时,界面里的北京时间与本地日期边界会不一致。
- 置顶气泡会遮住消息区顶部一小块内容。
Links
More in this category
bowenliang123/dsh-context★ 5607
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.
Han-1413141/dsh-cost-meter★ 771
Per-session and daily API cost, budget with usage %, official balance, history dashboard, and one-click official price sync with peak/off-peak pricing.
wssfk12138/dsh-damage-pulse★ 292
Tracks DeepSeek token usage, per-call and session costs, and account balance with cache-aware charge animations in the DSH Web UI.
zh667/TokenLedger★ 207
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.
Ychris12138/dsh-usage-stats★ 192
Multi-provider usage dashboard with provider/model token breakdowns, calendar drill-downs, account balances, and OpenCode Go / Z.ai subscription quota tracking.
PolinniZhong/dsh-personal-center★ 114
Personal center for DeepSeek Harness: cross-session usage statistics with per-provider and per-model breakdown (auto-discovers configured models), per-model cost estimation, global custom instructions, a data-driven desktop pet with bitmap & vector skins, and a conversation status overview, all local and offline.
Community comments
Comments are public GitHub Discussions. Loading them connects to GitHub and Giscus; a GitHub account is required to post.