Session-header balance readout for DeepSeek Harness: shows the spendable account total (recharge and bonus wallets combined) in the conversation header, refreshed every two minutes, and renders nothing when the account is signed out or the query fails.
Install
# from GitHub (first run asks for allowBuilds approval — follow the hint, retry)
dsh plugin --profile web add github:Azhe0306/dsh-connectors#path:/packages/balance-widget
Any plugin you install runs third-party code with your own permissions — it can read your files, use your credentials, and reach the network, and tool approvals don’t sandbox it. GitHub-sourced plugins also run build scripts at install time — pnpm blocks those until you allow them, so an install can stop with ERR_PNPM_GIT_DEP_PREPARE_NOT_ALLOWED or ERR_PNPM_IGNORED_BUILDS; dsh prints the exact key to add under allowBuilds in your profile’s pnpm-workspace.yaml, and the install works on the next run. Allowing a build is a trust decision: only install sources you trust, and pin a commit (github:owner/repo#sha).
README
This plugin publishes its README in Chinese only.
在 DSH 会话标题栏右上角显示当前账户余额,只显示金额:¥42.55。
- 充值余额与赠金余额合并显示;悬停提示给出拆分:
当前余额 ¥xx(充值 ¥xx + 赠金 ¥xx)。 - 中英双语跟随界面语言;每 120 秒刷新一次。
- 未登录 / 查询失败 → 不显示(不会显示 0 误导);余额为 0 → 显示
¥0.00。
安装
dsh plugin --profile web add github:Azhe0306/dsh-connectors#path:/packages/balance-widget
它读什么
ctx.remote.account.getBalance() → {ok:true, value:{status:'ready', value:[{currency,balance}], bonusWallets:[{currency,balance}]}}。
value 是充值钱包,bonusWallets 是赠金钱包;只看 value 会在只有赠金的账号上什么都显示不出来,因此两者相加。
插件注册在插槽 conversation.session.header.utilities(order: -20),不修改 DSH 自带文件,卸载即还原。
MIT
Links
More in this category
bowenliang123/dsh-context★ 4797
DSH context insight panel: Context dashboard + /context command + Context browser — one-stop context lifecycle management with categorized composition, content details, evolution trends, compaction/injection events, and stats.
Han-1413141/dsh-cost-meter★ 661
Per-session and daily API cost, budget with usage %, official balance, history dashboard, and one-click official price sync with peak/off-peak pricing.
wssfk12138/dsh-damage-pulse★ 289
Tracks DeepSeek token usage, per-call and session costs, and account balance with cache-aware charge animations in the DSH Web UI.
zh667/TokenLedger★ 203
Sidebar usage panel that attributes tokens to the relay site that served each request, read from your existing provider config: today/month/all-time totals, per-site and per-model breakdowns, a year activity heatmap, and New API / Sub2API / DeepSeek balances.
Ychris12138/dsh-usage-stats★ 188
Multi-provider usage dashboard with provider/model token breakdowns, calendar drill-downs, account balances, and OpenCode Go / Z.ai subscription quota tracking.
PolinniZhong/dsh-personal-center★ 115
Personal center for DeepSeek Harness: cross-session usage statistics with per-provider and per-model breakdown (auto-discovers configured models), per-model cost estimation, global custom instructions, a data-driven desktop pet with bitmap & vector skins, and a conversation status overview, all local and offline.
Community comments
Comments are public GitHub Discussions. Loading them connects to GitHub and Giscus; a GitHub account is required to post.