
Auran-Lu/dsh-client-ui-monitor
30最近提交 2026年8月14日
dsh-client-ui-monitor DSH 插件
该插件在 DeepSeek Harness Web 的左侧边栏添加一个实时仪表盘,显示当前会话的 Token 用量、预估费用和 API 余额。支持中英文切换、货币选择(CNY/USD)、手动刷新和每 30 秒自动刷新。
如何安装 dsh-client-ui-monitor DSH 插件
dsh plugin --profile web add github:Auran-Lu/dsh-client-ui-monitor复制不会执行命令。安装 dsh-client-ui-monitor DSH 插件前请核对仓库和版本。
dsh-client-ui-monitor DSH 插件数据来源
dsh-client-ui-monitor DSH 插件快照日期:2026年8月16日
discovered
dsh-client-ui-monitor DSH 插件能做什么
- 实时显示当前会话的 Token 用量(输入、缓存读/写、输出)。
- 基于 DeepSeek 官方定价预估费用,支持 CNY 和 USD 显示。
- 通过 GET /api/deepseek-balance 查询并显示 DeepSeek API 账户余额。
- 支持中英文语言切换。
- 支持货币单位切换(CNY/USD)。
- 每 30 秒自动刷新,并提供手动刷新按钮。
dsh-client-ui-monitor DSH 插件适合哪些场景
- 在对话过程中实时监控 Token 消耗。
- 跟踪预估费用,控制 DeepSeek API 使用成本。
- 无需离开 DeepSeek Harness 界面即可查看 API 账户余额。
- 多语言团队可切换中英文界面。
- 以两种货币(CNY 和 USD)对比费用,用于预算规划。
dsh-client-ui-monitor DSH 插件适合谁
- 使用 DeepSeek Harness Web 配置文件的开发者。
- 需要实时跟踪 API 使用量和费用的用户。
- 监控团队成员 Token 预算的项目管理者。
dsh-client-ui-monitor DSH 插件的限制
- 仅适用于 DeepSeek Harness 的 web 配置文件。
- 需要在“设置 → 模型”中配置 DeepSeek API 密钥。
- 定价常量必须在安装前手动编辑 lib/client.js 文件。
- 汇率(USD 转 CNY)默认固定为 7.2,非实时汇率。
- 安装和配置后需要重启 dsh web 服务。
dsh-client-ui-monitor DSH 插件的仓库 README 摘录
以下文字摘自 dsh-client-ui-monitor DSH 插件的上游仓库 Auran-Lu/dsh-client-ui-monitor 的 README,版权归原作者,仅作引用。
A [DeepSeek Harness](https://github.com/deepseek-ai/deepseek-harness) Web plugin that pins a usage dashboard to the bottom-left of the sidebar. [简体中文](README.zh.md) It shows, live for the current session: - **Token usage** — input (with cache read/write), output. - **Estimated cost** — computed from DeepSeek's published pricing, displayed in CNY or USD. - **API balance** — your DeepSeek account balance, queried via `GET https://api.deepseek.com/user/balance`. Features: Chinese/English toggle, currency selector (CNY/USD), manual balance refresh, auto-refresh every 30s. ## Prerequisites - DeepSeek Harness `web` profile. - A DeepSeek API key configured in **Settings → Models** (stored as the `DEEPSEEK_API_KEY` credential). ## Install ### Method 1 — GitHub ```bash dsh plugin --profile web add github:Auran-Lu/dsh-client-ui-monitor ``` **After installing**, register the plugin and restart: Edit `~/.dsh/profiles/web/cordis.patch.yml` and add this entry to its top-level array: ```yaml - insert: - id: ui-monitor name: '@auranlu/dsh-client-ui-monitor' ``` Then restart the server (`dsh web`) and expand the left sidebar. ### Method 2 — one-sentence install (paste to an
阅读完整 README仓库未声明许可,使用前请先与作者确认。
dsh-client-ui-monitor DSH 插件常见问题
如何安装 DSH Client UI Monitor 插件?
在终端中运行 `dsh plugin --profile web add github:Auran-Lu/dsh-client-ui-monitor`。然后编辑 `~/.dsh/profiles/web/cordis.patch.yml` 文件,在顶层数组中添加插件条目。最后重启 `dsh web` 服务,展开左侧边栏即可看到仪表盘。
安装后仪表盘不显示怎么办?
请确认已按照 README 完成配置步骤:在 `cordis.patch.yml` 中添加了插件条目,并重启了 `dsh web` 服务。同时确保已在“设置 → 模型”中配置了 DeepSeek API 密钥。如果侧边栏被折叠,请展开它,仪表盘会在底部显示。
如何将货币从 USD 切换到 CNY?
安装后,点击仪表盘上的货币选择器即可切换。插件支持 USD 和 CNY。默认汇率为 7.2,如果需要修改,请安装前编辑 `lib/client.js` 中的 `USD_TO_CNY` 常量。
能否更改自动刷新间隔?
当前版本自动刷新间隔固定为 30 秒。如果需要其他间隔,可在安装前修改 `lib/client.js` 中的相关代码。插件也提供了手动刷新按钮,可立即更新数据。
这个插件是否支持 DeepSeek Harness 的桌面版或 CLI 模式?
不支持。该插件专门为 DeepSeek Harness 的 web 配置文件设计,它使用了仅 web 界面可用的侧边栏组件插槽。如果您使用其他配置文件,插件将无法生效。