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.

DeepSeek Harness Plugin Hub
ProfilesPluginsCategoriesNewsDocsSign inManage Profiles
ProfilesPluginsCategoriesNewsDocsSign in
← Plugins

dsh-balance-card

Balance Card

DeepSeek balance card: display the account balance at the top of the settings page and jump to recharge with one click

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

npx -y @deepseek-ai/dsh plugin --profile web add dsh-balance-card@0.1.0
READMECompatibilityVersions

Compatibility and provenance

Balance Card is published as dsh-balance-card and currently resolves to version 0.1.0. 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

0.1.0stable
8/18/2026

Related plugins

Loading related plugins…

Latest
0.1.0
DSH
*
HMR
Process restart
Tree shaking
Safe tree shaking not declared
Unpacked size
19.7 kB
Files
5
Surface
web
License
MIT
Source
npm
GitHub
★ 1
Weekly downloads
25
Last push
8/18/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
Balance Card — DSH Plugin for DeepSeek Harness

Related plugins

More verified plugins in models-usage.

Whale 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.Ui Usage Billing@kenz1117/dsh-ui-usage-billingUsage billing dashboard for DeepSeek Harness: sidebar cost metrics plus a full dashboard modal, priced from a current multi-provider catalog with real usage aggregated from session logs.

README

dsh-balance-card

DeepSeek Harness 插件:提供 DeepSeek 余额同源代理与侧边栏数据源。设置页 UI 已与 ChatGPT 额度合并到「供应商余额与额度」,展示 DeepSeek 账户余额、充值/赠送明细,并提供一键充值。

架构

文件角色
lib/index.jsHost 半区(Cordis 插件):在 WebServer 上注册 GET /ext/balance 同源代理路由
lib/client.js浏览器半区(dsh.client bundle):注册 settings.section(order: -100,置顶),渲染余额卡片

余额数据流

浏览器 → GET /ext/balance(Host 同源路由,含 Origin 校验)→ Host 解析密钥(与 llm-deepseek 适配器一致:llm-deepseek 设置段 → ctx.credentials → 环境变量)→ GET https://api.deepseek.com/user/balance → 返回 JSON。API Key 永不进入浏览器。

响应契约:

// 成功
{ "ok": true, "data": { "is_available": true, "balance_infos": [{ "currency": "CNY", "total_balance": "110.00", "granted_balance": "10.00", "topped_up_balance": "100.00" }] } }
// 失败
{ "ok": false, "code": "missing-key" | "network" | "upstream" | "forbidden" | "internal", "message": "…" }

安装

# 1) 把插件放进 profile 的扁平 node_modules(Host 与 Loader 都能解析到)
cp -R dsh-balance-card ~/.dsh/profiles/node_modules/

# 2) 在 ~/.dsh/profiles/web/cordis.patch.yml 追加(watchUserPatches 会热挂载 Host 半区):
# - insert:
#     - id: balance-card
#       name: dsh-balance-card

# 3) 刷新浏览器页面 —— client-modules 会把新条目写进 window.__DSH_BOOT__,
#    客户端插件随页面加载挂载,设置页顶部即出现余额卡片

配置

  • 密钥:DEEPSEEK_API_KEY(~/.dsh/.credentials.yaml 或环境变量),或 llm-deepseek 设置段中的 apiKeyEnv。
  • 接口地址:默认 https://api.deepseek.com,可用 $DEEPSEEK_BASE_URL 或 llm-deepseek.baseURL 覆盖。
  • 充值页:客户端常量 RECHARGE_URL = https://platform.deepseek.com/top_up。