插件目录 / UI & Skins / dsh-ui-cost
dsh-ui-cost
已验证 · 实测可装 uaapple
功能简介
DeepSeek Harness Web UI plugin for live token usage and estimated cost
可用 — 实测通过,早期项目
DeepSeek Harness Web UI plugin for live token usage and estimated cost 实测能干净安装、正常启动。早期项目,但功能可用。
「已验证」表示我们的自动化 CI 在干净 profile 里实际执行了 dsh plugin add 并启动成功——仅此而已。功能描述与版本兼容性均为作者声明。这不是安全审计,也不代表对第三方代码的背书。
README
dsh-ui-cost
English | 中文
Self-contained stats strip with an estimated cost, contributed as a pure DSH browser plugin — no modification to the ui-conversation core, so a DSH/DSH Desktop upgrade that restores the stock core cannot break it.
This is a community plugin and is not affiliated with DeepSeek AI.
The plugin registers on the same conversation.composer.dock cell as the core stats entry (id: 'stats') with a lower shadowing priority, taking over the whole line: turn/step counts, LLM and tool wall times, TTFT/decode throughput, cache-hit share, billed tokens, and the cost. If the plugin ever crashes, the cell's shadowing retires it and the stock core strip renders instead. Composing this plugin out of cordis.yml removes the whole replacement and the stock strip returns.
The cost prices the durable tokenUsage projection (uncached input + cache writes at the cache-miss input rate, cache reads at the hit rate, output at the output rate) at the session's CURRENT model selection, read live from the ui-model-selection model directory — so a model switch re-prices immediately. Rates come from the official Models & Pricing page (CNY per 1M tokens, deepseek-v4-flash / deepseek-v4-pro) and follow its announced peak/off-peak schedule automatically — peak is 09:00–12:00 and 14:00–18:00 Beijing time, off-peak is half (effective 2026-08-17 00:00 Beijing; the flat table is billed before that).
Preview

Install
The package declares dsh.bundle (its cordis.patch.yml inserts the ui-cost row) and dsh.client (the browser bundle). The repository includes the built lib/ artifacts, so a GitHub install does not need to run an install-time build script:
dsh plugin --profile web add github:uaapple/dsh-ui-cost
For a reproducible install, pin the command to a full commit SHA. If the package is later published to npm, the equivalent command is dsh plugin --profile web add dsh-ui-cost.
To mount the row manually instead of using the bundle manifest:
- insert:
- id: ui-cost
name: dsh-ui-cost
The GitHub repository should carry the dsh-plugin topic so it appears in DSH community indexes and search pages.
Development
npm install
npm run check
npm test
The supported runtime is Node.js 22 or newer. DSH itself is still in developer preview, so compatibility follows the DSH client package versions declared in package.json.
安装
装一次目录插件,之后本站所有插件都能让 DeepSeek Harness 自动找、自动装:
dsh plugin add dshbase-catalog 然后对 agent 说「帮我装 dsh-ui-cost」,它会在目录里找到并自动安装。文档:dshbase-catalog · 已验证场景包。
该插件是 GitHub 源码(未发 npm)——直接从仓库装:
Web profile:
dsh plugin --profile web add github:uaapple/dsh-ui-cost Headless(CLI)profile:
dsh plugin --profile headless add github:uaapple/dsh-ui-cost 实测报告
验证通过:从 GitHub 源码完成 L1 安装 + L2 加载 + L3 运行(dsh 0.1.0-rc.6)。