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 Float — DSH Plugin for DeepSeek Harness
DeepSeek Harness Plugin Hub
ProfilesPluginsCategoriesNewsDocsSign inManage Profiles
ProfilesPluginsCategoriesNewsDocsSign in
← Plugins

dsh-balance-float

Balance Float

DSH Web 插件:右上角悬浮窗实时显示 DeepSeek 余额,支持手动刷新与一键退出(Y/N 快捷键确认)。Floating balance widget + graceful exit for the DeepSeek Harness web UI.

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

npx -y @deepseek-ai/dsh plugin --profile web add dsh-balance-float@1.0.3
READMECompatibilityVersions

Compatibility and provenance

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

DSH compatibility
*
Runtime surfaces
web
Release source
npm
Registry updated
9/20/2026

Versions

1.0.3stable
8/14/2026
1.0.2stable
8/14/2026
1.0.1stable
8/14/2026
Show 1 more versionCollapse versions
1.0.0stable
8/14/2026

Related plugins

Loading related plugins…

Latest
1.0.3
DSH
*
HMR
Process restart
Tree shaking
Safe tree shaking not declared
Unpacked size
19.4 kB
Files
6
Surface
web
License
MIT
Source
npm
GitHub
★ 4
Weekly downloads
95
Last push
8/25/2026
View source ↗Project homepage ↗
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 ui-customization.

Web App@deepseek-ai/dsh-web-appThe dsh browser-surface bundle: the web patch layer over dsh-base plus the runtime glue plugin (frontend dist serving, web-surface prompt, bash runtime variables, URL line)Experimental Agent Team Web Profile@deepseek-ai/dsh-experimental-agent-team-web-profileExperimental Web profile layer for Agent Teams Remote and UI pluginsRemote Web Ui@linxin666/dsh-remote-web-uiScan-to-pair remote access for the dsh web GUI that shares one official interface: a QR beside the settings button pairs phones and PCs into the same Web GUI (a portrait-touch adaptation layer for phones, full desktop on PCs) through one-time tokens and rClient Ui Git Graph@linxin666/dsh-client-ui-git-graphExternal dsh web GUI plugin: a blank-session git branch selector + Git graph, with real host-side git operations and guards, as a dsh profile bundle

README

dsh-balance-float

DeepSeek Harness(DSH)Web 插件:在网页右上角显示一个悬浮窗,实时显示 DeepSeek 模型账户余额,支持手动刷新与一键优雅退出(Y/N 快捷键确认)。

环境要求

  • 已安装 DeepSeek Harness CLI:npm install -g @deepseek-ai/dsh
  • 已配置 DeepSeek API Key(用于余额查询;未配置时悬浮窗显示「获取失败」红点,不影响其他功能,Key 配置方式见下文)

功能

  • 实时余额:悬浮窗每 60 秒自动刷新,展示总余额 / 赠送 / 充值明细
  • 手动刷新:点击 ↻ 按钮立即刷新
  • 一键退出:点击 ⏻ 弹出确认框,按键盘 Y 确认退出(关闭本地服务与网页),N / Esc 取消
  • 退出即关闭:退出后本地 DSH 服务与 http://127.0.0.1:3080 网页一并关闭

安装

方式一:npm(推荐)

dsh plugin --profile web add dsh-balance-float

方式二:GitHub 直装

dsh plugin --profile web add github:x2802490130-prog/dsh-balance-float

本插件为纯 JavaScript 发布(无构建步骤),git 直装即可使用,无需 pnpm 构建许可(见官方 publish.md)。

方式三:本地链接(开发 / 尝鲜)

dsh plugin --profile web add link:/path/to/dsh-balance-float

安装后重启 dsh(或硬刷新网页 Ctrl+F5),右上角即出现悬浮窗。

使用

操作效果
点击悬浮窗主体展开余额明细(总 / 赠送 / 充值 / 更新时间)
点击 ↻立即刷新余额
点击 ⏻弹出退出确认框
键盘 Y确认退出(本地服务与网页一并关闭)
键盘 N / Esc取消退出
再点 ⏻关闭确认框

配置

插件读取 DeepSeek API Key,查找顺序:

  1. 环境变量 DEEPSEEK_API_KEY
  2. $DSH_HOME/.credentials.yaml
  3. %USERPROFILE%/.dsh/.credentials.yaml(Windows)
  4. $HOME/.dsh/.credentials.yaml

credentials 文件格式:

DEEPSEEK_API_KEY: sk-xxxx

API Key 仅用于服务端请求,永远不会出现在网页响应中。

HTTP 接口

方法路径说明
GET/api/dsh-balance余额查询(60 秒缓存)
POST/api/dsh-exit优雅退出:SIGINT 关闭 dsh,6 秒兜底强杀

两个接口都只挂在本地 dsh 服务上,不对外暴露。

开发与测试

npm i -D jsdom   # 可选:测试依赖
node test.mjs    # 回归测试(宿主路由 + jsdom 客户端交互,离线可跑)

目录结构

lib/index.js        宿主(HTTP 路由:余额 / 退出)
client/client.js    客户端(悬浮窗 UI 与交互)
cordis.patch.yml    bundle 补丁
test.mjs            回归测试
windows/            可选:Windows 隐藏窗口启动 / 停止脚本 + 默认图标(覆盖 icon/dsh.ico 即可替换)

License

MIT