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
D

deepseek-plugin-deepseek-balance-indicator

Deepseek Plugin Deepseek Balance Indicator

在 DeepSeek Harness composer 状态行中显示您剩余的 DeepSeek 平台余额。

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

npx -y @deepseek-ai/dsh plugin --profile web add github:jeremytenjo/deepseek-plugin-deepseek-balance-indicator#67ae23a8f7ff19e7284e1232fd09ef3abab639d5
README兼容性版本

兼容性与来源证明

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

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

版本

1.0.0stable
2026/10/24

相关插件

正在加载相关插件…

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

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

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

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

认领这个 Plugin →
报告问题

相关插件

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

Connect Workbuddydsh-connect-workbuddy把本机登录的 WorkBuddy 模型(国内版与国际版)接入 DeepSeek Harness:每次刷新按上游目录自动读取每个模型的积分倍率,支持逐模型图片输入开关、多账号切换与账号池自动换号,并提供每日签到、卡片与输入框里的胶囊积分读数等只读积分概览。Cost Meterdsh-cost-meterDeepSeek Harness 会话费用统计插件:本会话成本、当日费用、历史记录与官方价格同步,支持多厂商多模型价格计费(内置 170+ 模型 ID 价格目录与自动匹配)、主流 Coding Plan 订阅额度查询与显示(16 家,含 WorkBuddy 官方积分、OpenDesign 工作区查询、含小米 MiMo Token Plan 控制台 Cookie 查询、SCNet Token Plan 本地 Credits 计量与火山方舟 Volcano Ark Coding Plan AK/SK 签名查询Model Router@ljwei-stak/dsh-model-routerDeepSeek Harness Desktop 的统一 DS Bot 工作区:模型和 Bot 路由、私有库、录制的桌面流程以及范围限定的远程计算机控制。Codex Subscriptiondsh-codex-subscription在 DeepSeek Harness 中通过 OAuth 使用 ChatGPT 和 Codex 订阅,支持配额、安全重置、网络搜索、图像和快速模式,并可通过 ChatGPT 移动应用(Beta)控制 DSH

README

DeepSeek Balance for DeepSeek Harness

Shows how much DeepSeek Platform balance you have left, right beside the session stats in the DeepSeek Harness composer.

The pill reads ¥12.34 / $12.34 from your signed-in DeepSeek account, refreshes every 60 seconds and when the window regains focus, and opens platform.deepseek.com/usage when clicked. Bonus credit, per-currency breakdown, and the last refresh time appear on hover.

Features

  • Remaining balance at a glance in the composer dock, next to turns, tokens, cache hit, and context usage.
  • Bonus credit separate from paid balance, listed in the tooltip instead of being silently added.
  • Live enough: refreshes on mount, every 60 seconds, and on window focus; the Host coalesces requests with a 20-second cache.
  • Click through to usage: opens the Platform usage page from the account's own usageUrl.
  • Honest states: Sign in when no DeepSeek account is connected, Balance unavailable when the query fails (click to retry), and no fake zero balance.
  • English and Chinese UI, following the Harness language setting.
  • No secrets in the browser: the route returns wallet amounts and links only.

Requirements

  • DeepSeek Harness 0.2.1-rc.2 (the version this plugin was built against).
  • A DeepSeek account signed in through Harness Settings → Account. The balance comes from the Platform account session; an API-key-only setup has no balance to read.
  • Network access from the Harness Host to platform.deepseek.com.

Install

git clone https://github.com/jeremytenjo/deepseek-plugin-deepseek-balance-indicator.git
dsh plugin --profile desktop add ./deepseek-plugin-deepseek-balance-indicator

Restart the Host or reload the page, then start or open a session. The pill appears in the status row above the composer. Replace desktop with the profile name shown by dsh --profile <name> --dump-config.

Manual installation is also possible: add the package directory to the profile's dependencies as a link:, add it to dsh.profile.bundles, and run the profile's package install. Prefer the plugin command; it owns those files.

Usage

StatePillClick
Signed in, balance loaded¥12.34Opens the Platform usage page
Balance with bonus credit¥12.34 (hover for bonus lines)Opens the Platform usage page
Not signed inSign in—
Query failedBalance unavailableRetries
First loadBalance…—

Hovering shows every wallet currency, bonus wallets with a positive balance, the last successful refresh time, and the click hint.

The pill uses the same typography, spacing, and theme tokens as the built-in stat pills, so it inherits light and dark themes without configuration.

How it works

client.js  ── GET /__dsh/deepseek-balance ──▶  index.js
                                               │
                                               ├─ ctx.deepseekAccount.getState()
                                               └─ ctx.deepseekAccount.getBalance(client)
                                                       │
                                                       ▼
                                          platform.deepseek.com

index.js is the Host half. It registers one exact loopback route and calls the Harness account service, which already owns the Platform credential and the /api/v0/users/get_user_summary query. The plugin never reads the credential store, never logs a token, and returns only:

{
  "ok": true,
  "status": "ready",
  "wallets": [{ "currency": "CNY", "balance": "12.34" }],
  "bonusWallets": [{ "currency": "CNY", "balance": "2.00" }],
  "links": {
    "usageUrl": "https://platform.deepseek.com/usage",
    "topUpUrl": "https://platform.deepseek.com/top_up"
  },
  "fetchedAt": 1790000000000
}

The route accepts loopback requests only, rejects a foreign Origin and cross-site fetches, sends cache-control: no-store, and caps the wallet list and string lengths. Account query failures are not cached, so a retry or the next poll recovers; successful reads are cached for 20 seconds to coalesce multiple windows.

client.js is the browser half. It registers a lazy factory with the package name, adds a conversation.composer.dock entry with order 2 (after the built-in activity and usage pills), and registers its English and Chinese strings through the client locale service. There is no build step and no runtime dependency.

Configuration

None. The Platform origin belongs to the Harness account provider; this plugin follows it rather than hard-coding an API host. The usage fallback is https://platform.deepseek.com/usage and is used only if the account supplies no link.

Development

node --check index.js
node --check client.js

The package is plain ESM plus a hand-written client bundle, so editing a file and reloading the plugin (Settings → Plugins → disable/enable) or restarting the Host is enough. The locale metadata in locale/*.json supplies the Plugin Manager title, description, and icon.

Files:

  • index.js — Host route, cache, account calls, origin checks.
  • client.js — composer pill, polling, formatting, tooltip, locale dictionaries.
  • cordis.patch.yml — inserts the deepseek-balance-indicator row.
  • locale/en.json, locale/zh.json — Plugin Manager metadata.
  • icon.svg — original wallet icon.

Security and privacy

The balance is read through the existing Harness account session. This plugin adds no credential storage, no cookies, no analytics, and no third-party requests; the browser talks only to its own loopback Harness origin. Amounts and currency codes leave the Host, but account identity, profile, token, and masked contact details do not.

Limitations

  • The account session is required; API-key-only sessions show Sign in.
  • Only the Platform wallet summary is shown. Per-model spend and request history live on the usage page.
  • With multiple currencies, the pill shows the currency matching the UI language (CNY for Chinese, USD otherwise) and lists the rest in the tooltip.
  • Refresh is intentionally slow to be gentle on the Platform API; use the click-through for an exact current view.
  • The pill appears in the composer dock for an active session, alongside the same stats row the built-in pills use.

License

MIT © 2026 Jeremy Tenjo