DeepSeek Harness Plugin Hub

Publish and manage complete Harness Profiles. Discover Plugins for your next setup.

Explore

PluginsPresetsDocsNews

Community

Publish a pluginContactReport an issue

Resources

Plugin Hub on GitHubDeepSeek HarnessSystem statusPrivacy notice
© 2026 DeepSeek Harness Plugin HubPowered byPaxTech

Independent and unofficial. Not affiliated with, authorized by, or endorsed by DeepSeek.

DeepSeek Harness Plugin Hub
ProfilesPluginsCategoriesNewsDocsSign inManage Profiles
ProfilesPluginsCategoriesNewsDocsSign in
← Plugins
M

dsh-model-surplus

Model Surplus

DeepSeek Harness plugin: shows model usage, plan quota and account balance in the session header — OpenCode Go plan usage (rolling / weekly / monthly) with the selected model's monthly cap, DeepSeek account balance, and Command Code 5-hour / weekly windows with remaining credits — each only while a

The plugin will be installed here. Keep web if you are unsure.

npx -y @deepseek-ai/dsh plugin --profile web add github:itchenshi/dsh-model-surplus#33e47d757649a2cb56e6667f248f320e1c947d55
READMECompatibilityVersions

Description

DeepSeek Harness plugin: shows model usage, plan quota and account balance in the session header — OpenCode Go plan usage (rolling / weekly / monthly) with the selected model's monthly cap, DeepSeek account balance, and Command Code 5-hour / weekly windows with remaining credits — each only while a matching model is the active selection.

Compatibility and provenance

Model Surplus is published as dsh-model-surplus and currently resolves to version 0.4.6. The Hub verifies its manifest and preserves the exact installation source for reproducible installs.

DSH compatibility
*
Runtime surfaces
web
Release source
github
Registry updated
10/5/2026

Versions

0.4.6stable
10/5/2026
0.4.5stable
10/5/2026
0.4.3stable
10/5/2026
Show 5 more versionsCollapse versions
0.4.2stable
10/4/2026
0.4.1stable
9/25/2026
0.4.0stable
9/25/2026
0.3.2stable
9/22/2026
0.3.1stable
9/21/2026

Related plugins

Loading related plugins…

Latest
0.4.6
DSH
*
HMR
Process restart
Tree shaking
Safe tree shaking not declared
Unpacked size
Unavailable
Files
Unavailable
Surface
web
License
MIT
Source
github
GitHub
★ 0
Weekly downloads
0
Last push
10/5/2026
View source ↗
README badge

Click the badge to copy Markdown for your README.

Do you maintain this Plugin?Claim benefit · Priority security scan

Verify the GitHub repository declared in package.json to manage this listing. After you claim it, Hub will prioritize a security scan of the current version and publish the result when it passes.

Claim this Plugin →
Report an issue

Related plugins

More verified plugins in models-usage.

Our Free Model@ebony-vinyl/dsh-our-free-modelOur Free Model — Install this plugin in dsh to use cutting-edge models including DeepSeek V4.1 Flash and Kimi K3, with no login, registration, or API Key required. The desktop version also offers an EAC co-payment channel; starting with 2.0, it supports ten account channels: LobsterAI, Qoder, TRAE, Whale Widgetdsh-whale-widgetDeepSeek balance whale widget in the bottom-right corner of the DSH Web interface: balance/today’s usage/peak-off-peak pricing, customizable bubble click sequence (text/balance/today/peak-off-peak/image/random phrases and parallel weighted selection), per-line styles and fonts, floating quick editinUsage@linxin666/dsh-usageUsage statistics plugin for the dsh web GUI: per-provider balance and coding-plan quota detection plus a live token usage ledger, with a compact price glance card above the sidebar's Settings rowClient Ui Model Capabilities@linxin666/dsh-client-ui-model-capabilitiesPer-model capability declarations (image input and reasoning efforts) for custom pi-ai providers, edited in place on the Models settings cards; writes the official llm-pi-ai settings namespace, no DSH source changes.

README

dsh-model-surplus

在会话标题右侧显示当前模型的用量 / 套餐额度 / 账户余额 —— 用到哪个模型,就显示哪一份。

它做什么

  • 会话标题右侧的小组件,按当前选中的模型决定显示哪一份,切模型立即显示或隐藏。
  • OpenCode Go:滚动 / 周 / 月三个窗口的百分比,外加所选模型的月度上限(如 上限 $60)。
  • DeepSeek:账户余额(总 / 赠送 / 充值);余额不可用时显示「余额不足」。
  • Command Code:5 小时 / 周两个窗口的已用与上限,以及账户剩余额度。
  • 三个分区各自独立上报:只配一个密钥时另外两半照常工作,缺的那半显示原因(no key / usage n/a)。

安装

  • 用 DSH Ready GUI(推荐):插件随 GUI 内置,打开 GUI → 设置窗口 →「第三方插件」勾选模型余量,装完按提示刷新页面(它带页面半边)。

  • 其它 DSH 宿主(dsh web / CLI)—— 任选一条:

    # 推荐:直接从 GitHub 装
    dsh plugin --profile web add github:itchenshi/dsh-model-surplus
    
    # 备选:从本仓库 Release 的 tarball 装
    dsh plugin --profile web add https://github.com/itchenshi/dsh-model-surplus/releases/download/v0.4.6/dsh-model-surplus-0.4.6.tgz
    

    两条命令装到的都是这个仓库的完整内容(含 cordis.patch.yml),装完不需要额外配置。

本包还不在 npm 上(registry.npmjs.org 查无此包),只能用上面两种方式装。

使用

装好、重启引擎、刷新页面后,小组件出现在会话标题右侧,每 60 秒向宿主路由取一次数据。

上游请求都在宿主端发出,密钥按引用从引擎的凭据服务读取(先看路由自己声明的 apiKeyEnv,再看分区的默认引用名);密钥不会下发到浏览器。

分区默认凭据引用
OpenCode GoOPENCODE_GO_API_KEY
Command CodeCOMMANDCODE_GOAT_API_KEY
DeepSeekDEEPSEEK_API_KEY

配置

cordis.patch.yml 里 id: model-usage 这一行的 config,全部可选:

键默认说明
enabledtruefalse 时整个插件直接返回
opencodeGo.baseUrlhttps://opencode.ai/zen/go/v1上游根地址
opencodeGo.apiKeyRefOPENCODE_GO_API_KEY凭据引用名
opencodeGo.providers[opencode-go, opencode]视为 OpenCode Go 的路由
deepseek.baseUrlhttps://api.deepseek.com上游根地址
deepseek.apiKeyRefDEEPSEEK_API_KEY凭据引用名
deepseek.providers[deepseek-official]视为 DeepSeek 的路由
commandcode.baseUrlhttps://api.commandcode.ai额度接口根地址;写聊天地址 .../provider/v1 也认
commandcode.apiKeyRefCOMMANDCODE_GOAT_API_KEY凭据引用名
commandcode.providers[commandcode-goat, commandcode]视为 Command Code 的路由

顶层直接写 baseUrl / apiKeyRef / providers 仍按 opencodeGo 分区读(插件早期只有 OpenCode Go)。

兼容性

  • 需要 DSH >= 0.1.5-rc.2;清单里 0.1.5-rc.2 与 0.2.0-rc.2 标为 compatible。
  • Node >= 20。
  • 更早的引擎版本没有测试过;三个分区各自独立降级。

常见问题

看不到小组件? 只有当前选中的模型属于受跟踪路由时才出现;自定义路由名要加进对应分区的 providers。

显示 no key? 那个分区没取到密钥。宿主启动时会打 [model-usage] active (opencode-go: providers=opencode-go|opencode key=OPENCODE_GO_API_KEY; ...),日志里没有它说明插件没加载。

数据多久更新一次? 每个分区缓存 120 秒(失败后 30 秒内不重试)。单模型月度上限取自公开文档页 https://opencode.ai/docs/zh-cn/go/(不需要密钥),缓存在 <DSH_HOME>/logs/model-surplus-limits.json,每 24 小时刷新一次,抓取失败时回退到缓存、再回退到内置表(日志:[model-usage] limits refreshed from docs (...) 或 limits refresh failed (...))。

百分比和上限为什么对不上? 用量百分比是账户级的(上游接口忽略单模型参数),月度上限是所选模型的。

开发

node --check lib/index.js
npm test        # node tests/test.mjs:本地行为测试(不联网、不需要引擎)

tests/e2e.cjs 是针对真实引擎 + 浏览器的集成检查,需要跑着的 profile,所以不在 npm test 里。

许可

MIT