DeepSeek Harness Plugin Hub

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

探索

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

社区

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

相关链接

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

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

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

dsh-balance-sidebar

Balance Sidebar

DeepSeek API 余额实时显示插件:侧边栏余额行(设置上方)+ 设置→插件 明细卡片,25 秒自动刷新,复用 Harness 已配置的凭据

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

npx -y @deepseek-ai/dsh plugin --profile web add dsh-balance-sidebar@0.1.0
README兼容性版本

兼容性与来源证明

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

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

版本

0.1.0stable
2026/8/15

相关插件

正在加载相关插件…

最新版
0.1.0
DSH
*
HMR
重启进程
Tree shaking
未声明可安全裁剪
解包体积
48.9 kB
文件数
8
Surface
web
许可证
MIT
发布源
npm
GitHub
★ 0
周下载
42
查看源码 ↗项目主页 ↗
README Badge

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

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

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

认领这个 Plugin →
报告问题

相关插件

继续浏览 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-balance-sidebar

DeepSeek Harness 插件:实时显示 DeepSeek API 账户余额。

  • 侧边栏"设置"上方一行:● DeepSeek ¥x.xx + 更新时间 + ↻ 立即刷新(收起侧边栏时显示数值,点击即刷新)
  • 设置 → 插件 → 可配置插件:余额明细卡片(总余额 / 充值 / 赠金 / 可用 / 更新时间)
  • 每 25 秒自动刷新(Host 另有 20 秒缓存)
  • API Key 不出本机:复用 Harness 已配置的凭据(llm-deepseek 设置 → DEEPSEEK_API_KEY 凭据库),浏览器只访问同源路由 /dsh-balance

安装

从 npm(发布后)

dsh plugin --profile web add dsh-balance-sidebar

从源码 / 本地目录

dsh plugin --profile web add ./dsh-balance        # 相对路径以调用目录为锚点
# 或 file: 形式
dsh plugin --profile web add "file:D:/path/to/dsh-balance"

安装后重启 dsh web 即生效(dsh.bundle.patch 声明会自动把本插件的 cordis.patch.yml 并入 profile 层栈)。

卸载

dsh plugin --profile web remove dsh-balance-sidebar

依赖要求

依赖说明
DeepSeek Harness>= 0.1.0-rc.5(Web profile)
凭据~/.dsh/.credentials.yaml 中的 DEEPSEEK_API_KEY,或 llm-deepseek 设置里配置的 Key / apiKeyEnv
Windows查询走 pwsh(Invoke-WebRequest,自动使用系统代理)
ui-sidebar 补丁(可选)侧边栏"余额独占一行"依赖新插槽 sidebar.footer.extra。当前上游 ui-sidebar 没有该插槽,需要应用仓库内的 ui-sidebar-extra-slot.patch:
# 在 deepseek-harness checkout 根目录
git apply /path/to/dsh-balance/ui-sidebar-extra-slot.patch
pnpm --filter @deepseek-ai/dsh-client-ui-sidebar run bundle

不打补丁也不影响使用:设置 → 插件 里的余额卡片(settings.plugin.item)在任何版本都可用;只是侧边栏那行不会出现(slots.inject 会安静等待插槽声明)。

工作原理

浏览器 (client 半区)                  Node 进程 (host 半区)
┌─────────────────────┐   fetch     ┌──────────────────────────────┐
│ 侧边栏行 + 设置卡片   │ ──────────▶ │ GET /dsh-balance?force=1      │
│ 每 25s 轮询          │ ◀────────── │ 凭据(settings+credentials)     │
└─────────────────────┘   JSON      │ → pwsh Invoke-WebRequest      │
                                    │ → api.deepseek.com/user/balance│
                                    │ 20s 缓存                      │
                                    └──────────────────────────────┘

为什么不用 dsh 的 shell(沙箱)通道:Windows ACL 受限令牌下 Windows 安全包无法完成 TLS 握手(SEC_E_NO_CREDENTIALS),沙箱内 HTTPS 请求必然失败。因此直接使用无沙箱的 subprocess 通道,这不会降低安全性——API Key 仍在 Host 侧,浏览器不可见。

开发

npm install          # 安装 tsdown
npm run bundle       # 产出 lib/index.js(host)+ lib/client.js(client)

发布

# 1. 建 GitHub 仓库,并给仓库添加 dsh-plugin 话题(方便在
#    https://github.com/topics/dsh-plugin 被发现)
# 2. 把 package.json 里的 repository / author 填好
npm publish          # prepublishOnly 会自动执行 bundle

发布后用户即可 dsh plugin --profile web add dsh-balance-sidebar。

License

MIT