DeepSeek Harness Plugin Hub

发布与管理完整 Harness Profiles,发现适合你的插件。

探索

插件目录环境预设文档中心动态

社区

发布插件联系我们报告问题

相关链接

Plugin Hub GitHubDeepSeek Harness 官方项目系统状态隐私说明
© 2026 DeepSeek Harness Plugin HubPowered byPaxTech

独立、非官方社区项目,与 DeepSeek 官方无隶属、授权或背书关系。

Deepseek Usage — DeepSeek Harness 插件(DSH Plugin)
DeepSeek Harness Plugin Hub
ProfilesPlugins分类动态文档登录管理 Profiles
ProfilesPlugins分类动态文档登录
← Plugins

@dougen/dsh-deepseek-usage

Deepseek Usage

DeepSeek 余额侧边栏插件:余额(官方 API)、当前档单价与峰谷时段指示灯,支持中/英文界面。

插件会安装到这里;不确定时保持 web。

npx -y @deepseek-ai/dsh plugin --profile web add @dougen/dsh-deepseek-usage@0.10.1
README兼容性版本

兼容性与来源证明

Deepseek Usage 以 @dougen/dsh-deepseek-usage 发布,当前版本为 0.10.1。Plugin Hub 会校验它的 manifest,并保存精确安装来源,便于复现安装结果。

DSH 兼容范围
*
运行环境
web
发布来源
npm
Registry 更新时间
2026/9/20

版本

0.10.1stable
2026/9/19
0.10.0stable
2026/9/19
0.9.2stable
2026/9/19
查看其余 2 个版本收起版本
0.9.1stable
2026/9/19
0.4.4stable
2026/8/23

相关插件

正在加载相关插件…

最新版
0.10.1
DSH
*
HMR
重启进程
Tree shaking
未声明可安全裁剪
解包体积
67.7 kB
文件数
7
Surface
web
许可证
MIT
发布源
npm
GitHub
★ 0
周下载
777
安全扫描
✓ v0.10.1 扫描通过
最近提交
2026/8/23
查看源码 ↗项目主页 ↗
README Badge

点击下方 Badge 复制 Markdown,粘贴到 README 即可。

这是你的 Plugin?认领权益 · 优先安全扫描

验证 package.json 声明的 GitHub 仓库,即可管理这个公开页面。认领后,Hub 会优先安排当前版本的安全扫描,并在通过后公开展示结果。

认领这个 Plugin →
报告问题

相关插件

继续浏览 models-usage 分类下经过校验的插件。

Usage@linxin666/dsh-usagedsh Web GUI 的使用统计插件:检测各提供商余额和编码计划配额,并提供实时令牌使用记录,以及当前提供商的专属宠物气泡Whale Widgetdsh-whale-widgetDSH Web 界面右下角的 DeepSeek 余额小鲸鱼挂件:余额/今日已用/峰谷定价、自定义泡泡点击序列(文本/余额/今日/峰谷/图片/随机语句与并列加权选择)、逐行样式与字体、悬浮快捷编辑、音效与每轮消耗、自定义角色/动图/音效、吸附与翻转自定义Usage Stats@ychris12138/dsh-usage-statsdsh Web GUI 的令牌使用热力图、提供商余额和订阅配额Codex Connectdsh-codex-connect用于 DeepSeek Harness 的 ChatGPT OAuth 和 Codex 模型。

README

@dougen/dsh-deepseek-usage

中文文档

A sidebar plugin for the DeepSeek Harness (DSH) Web UI that answers two questions without leaving the app: how much balance is left, and what the model costs right now.

DeepSeek usage card / 用量卡片

What it does

  • Balance in the sidebar footer: your DeepSeek account balance (the symbol follows the account currency: ¥ / $).
  • Unit prices of the active model: input / input cache / output for the billing window in effect right now. They change when you switch models and when the peak/off-peak window flips.
  • Peak / off-peak dot with a countdown: orange during peak hours (Mon–Fri, excluding Chinese public holidays, 9:00–12:00 and 14:00–18:00 Beijing Time), green otherwise — weekends, public holidays and the make-up workdays that fall on a weekend are all off-peak; next to it, the time left until the next switch (2d 15h, 5h 47m, 23m).
  • Refreshes every 5 minutes, and immediately when you click the card or switch models. Follows the app light/dark theme and the DSH language (Chinese / English).

Install, uninstall, common errors

Install

  1. Configure DEEPSEEK_API_KEY in DSH (model settings).
  2. dsh plugin --profile web add @dougen/dsh-deepseek-usage
  3. Restart dsh web and open the URL it prints — the card sits at the bottom of the sidebar, below the Cordis panel button.

Uninstall

dsh plugin --profile web remove @dougen/dsh-deepseek-usage

Then restart dsh web.

A blank card means the balance could not be read

The card then shows the reason instead of numbers:

  • DEEPSEEK_API_KEY is not configured — set it in DSH settings and restart.
  • The balance request or the network failed — click the card to retry.
  • DEEPSEEK_BASE_URL points at a third-party gateway — the official balance endpoint https://api.deepseek.com/user/balance may be unavailable or answer differently; only DeepSeek's official platform is supported.

Prices differ from the official page

  • Prices are the built-in table PRICE_TABLE in lib/pricing.js, a snapshot of the official pricing page. It changes only when a new version of the plugin ships — there is no local price file and no background sync.
  • If the active model is not in the table, the card falls back to deepseek-chat pricing.
  • Off-peak days come from the holiday table HOLIDAY_RANGES in lib/pricing.js (and its mirror in lib/client.js). The State Council usually publishes next year's arrangement in November; update both lists then. Until you do, holidays are treated as ordinary workdays and the card shows peak prices during them.

How it works

  • The host half (lib/index.js, lib/pricing.js) registers GET /api/deepseek-usage. Per request it reads the API key from DSH credentials, asks the official balance API, resolves the active model's price from the built-in price table, and answers with balance, tier prices, the peak flag and the next switch time. GET /api/deepseek-usage/holidays hands the browser half the same public-holiday table.
  • The browser half (lib/client.js) renders that answer into the sidebar.footer.action slot, polls every 5 minutes, and refreshes on click or on a model change. The peak state and the countdown come from the same answer, so the card itself holds no pricing logic.

中文文档

一个 DeepSeek Harness(DSH)网页界面的侧边栏插件:不离开 DSH 就能知道账号还剩多少钱、当前的模型现在什么价。

这个插件做什么

  • 余额:侧边栏底部显示 DeepSeek 账号余额(符号随账号币种 ¥ / $)。
  • 当前模型的档单价:输入 / 输入缓存 / 输出,按此刻生效的计费时段显示;切换模型、跨过峰谷切换点时会跟着变。
  • 峰谷指示灯 + 倒计时:高峰(周一至周五、不含中国法定节假日,9:00–12:00、14:00–18:00 北京时间)橙色,其余时间绿色——周末、法定节假日全天,以及调休上班的周末都是空闲;指示灯旁给出距下次切换的剩余时间(2d 15h、5h 47m、23m)。
  • 每 5 分钟自动刷新;点击卡片或切换模型时立即刷新。跟随应用明暗主题与 DSH 语言(中文 / English)。

安装、卸载与常见错误

安装:

  1. 在 DSH 设置(模型页)里配置 DEEPSEEK_API_KEY。
  2. dsh plugin --profile web add @dougen/dsh-deepseek-usage
  3. 重启 dsh web,打开它打印的地址:卡片位于侧边栏底部、Cordis 面板按钮下方。

卸载:

dsh plugin --profile web remove @dougen/dsh-deepseek-usage

然后重启 dsh web。

卡片空白说明余额没读到,此时卡片会写明原因:

  • 没有配置 DEEPSEEK_API_KEY:在 DSH 设置里配置后重启。
  • 余额接口或网络失败:点击卡片重试。
  • DEEPSEEK_BASE_URL 指向第三方中转:官方余额接口 https://api.deepseek.com/user/balance 可能不可用或返回异常,本插件只支持 DeepSeek 官方平台。

价格与官方不一致时:

  • 价格是 lib/pricing.js 的内置表 PRICE_TABLE(官方价格页的快照),只在发布新版本时更新——没有本地价格文件,也没有后台同步。
  • 当前模型不在价格表里时,按 deepseek-chat 的价格显示。
  • 放假日期维护在 lib/pricing.js 的 HOLIDAY_RANGES(lib/client.js 有一份镜像,两处要一起改)。国务院办公厅通常在前一年 11 月发布次年安排,届时更新;未更新前,节假日会按普通工作日处理,白天显示高峰价。

简单的工作原理

  • 宿主侧(lib/index.js、lib/pricing.js)注册 GET /api/deepseek-usage:每次请求读取 DSH 凭据里的 API Key、调用官方余额接口、从内置价格表解析当前模型档单价,返回余额、档单价、峰谷状态与下次切换时刻;GET /api/deepseek-usage/holidays 把同一份法定节假日表交给浏览器侧。
  • 浏览器侧(lib/client.js)把这份响应渲染进 sidebar.footer.action 槽位,每 5 分钟轮询一次,点击卡片或模型变化时立即刷新;峰谷状态与倒计时同样来自这次响应,界面自身不做计价逻辑。

License

MIT