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.

Balance Lite — DSH Plugin for DeepSeek Harness
DeepSeek Harness Plugin Hub
ProfilesPluginsCategoriesNewsDocsSign inManage Profiles
ProfilesPluginsCategoriesNewsDocsSign in
← Plugins
B

dsh-balance-lite

Balance Lite

DSH web plugin: a draggable floating piggy-bank balance badge for the official DeepSeek API account balance, with per-conversation polling and a balance-deduction animation.

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

npx -y @deepseek-ai/dsh plugin --profile web add github:outprintHelloLi/dsh-balance-lite#f02ca606a6900af586740c35ee4eb98644780944
READMECompatibilityVersions

Compatibility and provenance

Balance Lite is published as dsh-balance-lite and currently resolves to version 1.1.0. The Hub verifies its manifest and preserves the exact installation source for reproducible installs.

DSH compatibility
*
Runtime surfaces
web
Release source
github
Registry updated
8/25/2026

Versions

1.1.0stable
8/25/2026

Related plugins

Loading related plugins…

Latest
1.1.0
DSH
*
HMR
Process restart
Tree shaking
Safe tree shaking not declared
Unpacked size
Unavailable
Files
Unavailable
Surface
web
License
MIT
Source
github
Weekly downloads
0
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.

Usage@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 the current session provider's today usage on the sidebar entryWhale 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 Stats@ychris12138/dsh-usage-statsToken usage heatmap, provider balances, and subscription quotas for the dsh web GUICodex Connectdsh-codex-connectChatGPT OAuth and Codex models for DeepSeek Harness.

README

dsh-balance-lite

DeepSeek Harness (DSH) Web 插件:一个可拖动的悬浮存钱罐,中间显示 DeepSeek 官方账户余额;对话期间每隔 N 秒自动查询一次余额,余额下降时在存钱罐上方弹出 -¥xx.xx 的扣减动画(淡入淡出,显示 5 秒)。

  • 数据来源:DeepSeek 官方接口 GET https://api.deepseek.com/user/balance(唯一官方余额接口)。
  • 展示:悬浮卡通存钱罐图标,可拖动位置,存钱罐中间实时显示余额。
  • 自动刷新:页面打开时立即查询;任务开始 / 任务结束时立即刷新;对话任务运行期间按设置间隔(默认 30 秒)自动查询。
  • 扣减动画:余额比上次查询减少时,在存钱罐上方显示负差额,淡入淡出共 5 秒。
  • 设置界面:在 DSH 的 设置 侧边栏出现本插件的「存钱罐」菜单,可设置「对话期间查询间隔(秒)」(5–600)。
  • 无用量记账:DeepSeek 开放平台没有公开的 token 用量 / 费用 / 账单接口,因此本插件只展示官方余额,不做本地用量累计或费用估算。

一键安装(Windows / macOS / Linux 通用)

本插件是纯 Node.js 实现的 DSH 插件,三个平台只需同一个命令。

node scripts/install.mjs

三个平台也可以使用各自的快捷脚本:

  • Windows(CMD):scripts\install.cmd
  • Windows(PowerShell):scripts\install.ps1
  • macOS / Linux:./scripts/install.sh

脚本会自动:

  1. 找到 dsh profile(默认 web,可用 --profile <name> 指定);
  2. 把插件复制到 ~/.dsh/profiles/<profile>/plugins/dsh-balance-lite;
  3. 在 ~/.dsh/profiles/<profile>/package.json 中登记依赖和 bundle;
  4. 在 profile 目录里执行 pnpm install。

完成后再重启 dsh web 并硬刷新页面(Windows: Ctrl+Shift+R;macOS: Cmd+Shift+R)。

可选项:

node scripts/install.mjs --profile headless   # 安装到其它 profile
node scripts/install.mjs --no-install        # 只复制/登记,不运行 pnpm install

把仓库发布到 npm 或 GitHub 后,也可以直接使用 DSH 自带命令安装:

dsh plugin --profile web add dsh-balance-lite

前置条件

  • ~/.dsh/.credentials.yaml 中存在 DEEPSEEK_API_KEY。
  • Node.js ≥ 20,pnpm 可用。
  • DSH 已初始化 web profile(~/.dsh/profiles/web)。

结构

文件作用
lib/index.jshost 端:注册 /dsh-balance-lite/status 路由;监听 turn/end;注册本插件设置命名空间 dsh-balance-lite。
lib/client.jsclient 端:悬浮存钱罐 + 扣减动画;插件配置卡片;对话期间定时查询。
scripts/install.mjs跨平台一键安装脚本。
cordis.patch.yml把插件行插入 DSH host 组合。

设计说明

  • 不写 token 台账、不做费用估算(官方无对应接口)。
  • 客户端只在页面可见时轮询,避免不可见时对官方接口的无谓请求。
  • host 端 HTTP 路由仅允许 loopback 同源访问,拒绝跨域请求。
  • 查询间隔通过 DSH 设置持久化(用户 settings 文档),不需要改代码。

License

MIT