DeepSeek Harness Plugin

Azhe0306/dsh-connectors#balance-widget

Stars ★ 0 Category Usage & Billing Added 2026-09-26

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

Content from the project README on GitHub ↗

Links

More in this category

View the whole category →

Community comments

Comments are public GitHub Discussions. Loading them connects to GitHub and Giscus; a GitHub account is required to post.