DeepSeek Harness Plugin Hub

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

探索

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

社区

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

相关链接

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

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

Plugin Balance Float — DeepSeek Harness 插件(DSH Plugin)
← Plugins
P

dsh-plugin-balance-float

Plugin Balance Float

适用于 DeepSeek Harness Web GUI 的浮动 DeepSeek API 余额胶囊:主机代理路由,以及注入每个 index.html 的仅点击显示状态小组件。

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

npx -y @deepseek-ai/dsh plugin --profile web add github:Yochor-Debug/dsh-float#52d1b4a464ab7dda20f2322f0680394fd0f8796d
README兼容性版本

兼容性与来源证明

Plugin Balance Float 以 dsh-plugin-balance-float 发布,当前版本为 1.0.0。Plugin Hub 会校验它的 manifest,并保存精确安装来源,便于复现安装结果。

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

版本

1.0.0stable
2026/9/20

相关插件

正在加载相关插件…

最新版
1.0.0
DSH
*
HMR
重启进程
Tree shaking
未声明可安全裁剪
解包体积
未提供
文件数
未提供
Surface
any
许可证
MIT
发布源
github
GitHub
★ 0
周下载
0
最近提交
2026/9/20
查看源码 ↗
README Badge

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

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

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

认领这个 Plugin →
报告问题
DeepSeek Harness Plugin Hub
ProfilesPlugins分类动态文档登录管理 Profiles
ProfilesPlugins分类动态文档登录

相关插件

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

Usage@linxin666/dsh-usage用于 dsh 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

dsh-plugin-balance-float

A floating DeepSeek API balance capsule for the DeepSeek Harness Web GUI — the Sogou-input-method kind of status pill: it sits in the corner, shows your remaining balance, and gets out of the way.

中文文档见 README.zh.md。

What it does

  • Appears with the page, disappears with it. The host plugin injects the widget into every rendered index.html, so it is not tied to any session and costs no conversation context.
  • Collapsed it shows just the balance plus a status dot: green = healthy, amber = low, red = depleted. A small ▼ hints that it can be opened.
  • Click to open the detail panel: total, granted and topped-up balance, and the last refresh time. Hovering does nothing — the pointer merely passing over the capsule must not pop anything up. Click again (or click elsewhere) to close.
  • Double-click to refresh immediately, on both the collapsed and expanded states; the ↻ icon spins as feedback, and the panel's ↻ button does the same.
  • Auto-refreshes every 5 seconds. Polling pauses while the tab is hidden and catches up on the first visible frame.
  • Draggable, snaps inside the viewport, remembers its position in localStorage, and follows the system light/dark theme.
  • Lives in a closed shadow root, outside the SPA's React tree, so it neither disturbs nor is disturbed by the app's styles.

Install

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

Then restart dsh web (see Why a restart below) and refresh the page.

Once installed it shows up in Settings → 插件 → 插件列表 → 全局插件 with an enable/disable control, alongside every other installed plugin.

Uninstall:

dsh plugin --profile web remove dsh-plugin-balance-float

Requirements

  • A DeepSeek API key on the machine, as the DEEPSEEK_API_KEY environment variable, or as refs.DEEPSEEK_API_KEY in $DSH_HOME/.credentials.yaml.
  • DeepSeek Harness >= 0.1.5-rc.2 (the profile bundle mechanism this package uses).

Why the balance is fetched on the host

DeepSeek's /user/balance requires Authorization: Bearer <key> and sends no CORS headers. Putting the key in the browser would both expose the credential and be blocked by CORS, so the host half reads the local credential and proxies the call; the browser only ever talks to the same-origin /x-balance-float.

Credential resolution order, per request (nothing is cached long-term):

  1. the DEEPSEEK_API_KEY environment variable;
  2. the Harness credential service, ctx.credentials.resolve('DEEPSEEK_API_KEY');
  3. a direct read of $DSH_HOME/.credentials.yaml as a fallback.

The key never appears in any response.

Files

FileRole
package.jsonManifest: declares dsh.bundle.patch, which is what makes dsh plugin treat this package as a profile layer
cordis.patch.ymlThe package's own profile layer: inserts id: balance-float / name: dsh-plugin-balance-float
lib/index.jsHost half: the GET /x-balance-float proxy route plus the index injection
lib/client.jsBrowser half: the widget's DOM/CSS/drag/poll logic (injected inline)
tools/verify-package.mjsPackage-level verification (manifest, patch, route, injection, click-only interaction)

The host re-reads lib/client.js on every index render, so widget tweaks only need a page refresh — no reinstall, no dsh web restart.

Verify

node tools/verify-package.mjs

Known limitations

  • A restart is required after install. A running dsh composes its profile bundle list once, at boot; patchReload: live watches patch files, not package.json. So a host started before the install does not know about the new layer. Restarting dsh web is the fix.
  • Balance figures come from DeepSeek's own endpoint and are subject to its caching and reporting delay.
  • The widget shows the first currency DeepSeek reports; multi-currency accounts see one line for the primary entry.

License

MIT