DeepSeek Harness Plugin Hub

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

探索

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

社区

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

相关链接

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

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

DeepSeek Harness Plugin Hub
ProfilesPlugins分类动态文档登录管理 Profiles
ProfilesPlugins分类动态文档登录
← Plugins
B

@ek3os/dsh-balance

Balance

在侧边栏的“设置”旁显示 API 余额的 DeepSeek Harness Web 插件。

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

npx -y @deepseek-ai/dsh plugin --profile web add github:eka3os/dsh-balance#f3e59c76ba857bc9abdb2719ff7f302d16c1ec80
README兼容性版本

兼容性与来源证明

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

DSH 兼容范围
*
运行环境
web
发布来源
github
Registry 更新时间
2026/10/13

版本

0.2.0stable
2026/10/13
0.1.0stable
2026/8/21

相关插件

正在加载相关插件…

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

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

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

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

认领这个 Plugin →
报告问题

相关插件

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

Experimental Cot Translation Bundle@deepseek-ai/dsh-experimental-cot-translation-bundle扩展推理的实验性机器翻译Whale Widgetdsh-whale-widgetDSH Web 界面右下角的 DeepSeek 余额小鲸鱼挂件:余额/今日已用/峰谷定价、自定义泡泡点击序列(文本/余额/今日/峰谷/图片/随机语句与并列加权选择)、逐行样式与字体、悬浮快捷编辑、音效与每轮消耗、自定义角色/动图/音效、吸附与翻转自定义Our Free Model@ebony-vinyl/dsh-our-free-modelOur Free Model — 在 dsh 里装上这个插件即可,无需登录、注册或填 API Key,就能使用包括 DeepSeek V4.1 Flash、Kimi K3 在内的前沿模型,桌面端另有 EAC 协付渠道;2.0 起接入 LobsterAI、Qoder、TRAE、Cline、Loomy、Raccoon、MiniMax、ZCode、Gemini 十个账号渠道(原有匿名免费通道保留)(登录、账号池、积分领取、本地 OpenAI 网关与局域网转发、数据看板与运行日志),六页毛玻璃界面统一呈现。Usage@linxin666/dsh-usage用于 dsh Web GUI 的使用统计插件:检测各提供商的余额和编程套餐配额,并实时记录令牌使用情况;侧边栏 Settings 行上方显示紧凑的价格概览卡片

README

dsh-balance

English | 中文

English

A DeepSeek Harness Web plugin that displays your DeepSeek API balance in the sidebar footer.

show balance

The plugin is currently 0.2.0 and requires DeepSeek Harness >=0.1.2-rc.1 <0.3.0-0.

Features

  • Displays CNY and USD balances next to the sidebar settings area.
  • Reads the balance through the official DeepSeek API endpoint.
  • Keeps the API key on the server side; the browser only receives normalized balance data.
  • Refreshes the balance automatically every 60 seconds.
  • Shows -- while loading, when no balance is available, or when the request fails.
  • Supports installation directly from a GitHub repository.

Requirements

  • DeepSeek Harness >=0.1.2-rc.1 <0.3.0-0 (verified against 0.2.0-rc.2)
  • The web profile
  • A configured DEEPSEEK_API_KEY

Installation

Install directly from GitHub

dsh plugin --profile web add github:eka3os/dsh-balance

Restart the Web profile after installation:

dsh web

dsh plugin installs the package into the selected profile and automatically activates it as a profile bundle because this package declares dsh.bundle.patch.

Configuration

The plugin uses the DEEPSEEK_API_KEY credential reference. Configure the key through the DeepSeek Harness credentials/settings UI when available. You can also provide it through the launch environment for a single run:

DEEPSEEK_API_KEY=sk-your-key dsh web

For a managed local credential, add the key to $DSH_HOME/.credentials.yaml:

DEEPSEEK_API_KEY: sk-your-key

Do not commit API keys or credential files to Git.

How it works

  1. The Host plugin registers GET /api/dsh-balance.
  2. The route resolves DEEPSEEK_API_KEY through DSH credentials.
  3. The Host requests https://api.deepseek.com/user/balance with a server-side Bearer token.
  4. The client plugin renders the returned CNY/USD balances in the sidebar footer.
  5. The client repeats the request every 60 seconds while the wide sidebar is visible.

Compatibility notes

Version 0.2.0 adapts the plugin to the DSH 0.2 client layout:

  • The slots service moved from the retired @deepseek-ai/dsh-client-runtime package (last release 0.1.1-rc.2) to @deepseek-ai/dsh-client-ui-renderer, so the peer declarations and dsh.client.inject list now name the renderer. DSH 0.2 refuses to load any bundle whose @deepseek-ai/dsh-* peers cannot be satisfied, which is what produced the skipping profile bundle … is incompatible with dsh 0.2.0-rc.2 error.
  • dsh.client.inject is the arrival-order contract: every listed package is loaded before this plugin's bundle, so slots is always available when apply() runs.
  • The sidebar footer markup, stylesheet hooks, and layout class names are unchanged between 0.1.7-rc.2 and 0.2.0-rc.2, so the rendered result is identical.

Run npm run check to verify both halves against the installed DSH contract (host route behavior plus client slot registration).

API endpoint

MethodPathDescription
GET, HEAD/api/dsh-balanceReturns the current DeepSeek API balance.

Successful responses contain the following shape:

{
  "isAvailable": true,
  "balances": [
    { "currency": "CNY", "totalBalance": "10.00" },
    { "currency": "USD", "totalBalance": "1.00" }
  ]
}

The route returns 503 when the credential is missing and 502 when the DeepSeek API cannot be reached or returns an unsuccessful response. Unsupported methods return 405.

GitHub distribution

This plugin is distributed through GitHub only and is not published to npm. Push the repository to GitHub and make sure the built lib/ files and the package files listed in package.json are committed.

License

MIT


中文

一个用于 DeepSeek Harness Web 界面的插件,会将 DeepSeek API 余额显示在侧边栏底部。

show balance

当前版本为 0.2.0,要求 DeepSeek Harness >=0.1.2-rc.1 <0.3.0-0。

功能

  • 在侧边栏设置区域附近显示 CNY 和 USD 余额。
  • 通过 DeepSeek 官方余额接口获取数据。
  • API Key 只在服务端使用,浏览器只接收规范化后的余额数据。
  • 每 60 秒自动刷新一次余额。
  • 加载中、没有余额或请求失败时显示 --。
  • 支持直接从 GitHub 仓库安装。

环境要求

  • DeepSeek Harness >=0.1.2-rc.1 <0.3.0-0(已在 0.2.0-rc.2 上验证)
  • web profile
  • 已配置的 DEEPSEEK_API_KEY

安装

直接从 GitHub 安装

dsh plugin --profile web add github:eka3os/dsh-balance

安装完成后重新启动 Web profile:

dsh web

dsh plugin 会将包安装到指定 profile,并根据本包声明的 dsh.bundle.patch 自动将其激活为 profile bundle。

配置

插件使用 DEEPSEEK_API_KEY 作为凭据引用。建议在 DeepSeek Harness 的凭据/设置界面中配置 API Key。也可以在启动时通过环境变量提供,仅对本次运行生效:

DEEPSEEK_API_KEY=sk-your-key dsh web

如果使用 DSH 的本地凭据文件,可以将密钥写入 $DSH_HOME/.credentials.yaml:

DEEPSEEK_API_KEY: sk-your-key

请勿将 API Key 或凭据文件提交到 Git 仓库。

工作原理

  1. Host 插件注册 GET /api/dsh-balance 路由。
  2. 路由通过 DSH credentials 服务解析 DEEPSEEK_API_KEY。
  3. Host 使用服务端 Bearer Token 请求 https://api.deepseek.com/user/balance。
  4. Client 插件将返回的 CNY/USD 余额渲染到侧边栏底部。
  5. 侧边栏处于宽布局时,Client 每 60 秒重复请求一次。

API 接口

方法路径说明
GET、HEAD/api/dsh-balance返回当前 DeepSeek API 余额。

成功响应示例:

{
  "isAvailable": true,
  "balances": [
    { "currency": "CNY", "totalBalance": "10.00" },
    { "currency": "USD", "totalBalance": "1.00" }
  ]
}

凭据缺失时返回 503;DeepSeek API 无法访问或返回失败状态时返回 502;不支持的方法返回 405。

兼容性说明

0.2.0 版本适配了 DSH 0.2 的客户端结构:

  • slots 服务已从被移除的 @deepseek-ai/dsh-client-runtime 包(最后一个版本为 0.1.1-rc.2)迁移到 @deepseek-ai/dsh-client-ui-renderer,因此 peer 依赖声明与 dsh.client.inject 列表现在指向 renderer。DSH 0.2 会拒绝加载任何 @deepseek-ai/dsh-* peer 无法满足的 bundle,这正是 skipping profile bundle … is incompatible with dsh 0.2.0-rc.2 报错的原因。
  • dsh.client.inject 是加载顺序契约:其中列出的每个包都会先于本插件 bundle 加载,因此 apply() 执行时 slots 必定可用。
  • 侧边栏底部结构、样式钩子与布局类名在 0.1.7-rc.2 与 0.2.0-rc.2 之间没有变化,因此渲染结果保持一致。

运行 npm run check 可针对当前安装的 DSH 契约校验两部分实现(Host 路由行为与客户端 slot 注册)。

GitHub 分发

本插件仅通过 GitHub 分发,不发布到 npm。将仓库推送到 GitHub,并确保已提交 lib/ 构建产物以及 package.json 中列出的包文件。

许可证

MIT