DSH HUB
HomePlugin StorePlugin PacksCommunityRankingsResourcesPublish Guide
Plugin source
Back to catalog

boy1141 /

boy1141/dsh-plugin-balance-chip

Verified

Live DeepSeek account balance chip in the session header: remaining credit and unused bonus, refreshed every 20 seconds.

★ 0 Stars0 Forks0 IssuesN/A Community rating0 Confirmed installs
View on GitHub
READMESource: main@ce56f946

dsh-plugin-balance-chip

A live DeepSeek account balance chip for the DeepSeek Harness web GUI. It sits in the session header next to the other header actions and shows the remaining credit, the unused bonus credit, and when the number was last read.

在 DeepSeek Harness 的会话标题栏实时显示账户余额:主数字是账户余额,+ 后面是尚未用完的赠送额度, 悬停可看更新时间,点击立即刷新。

What it does

  • Reads ctx.remote.account.getBalance() — the same Host-side platform query the Settings → Account panel uses. The browser never holds the account token.
  • Refreshes every 20 seconds while the page is visible, and immediately when the window regains focus or the tab becomes visible again.
  • Hides itself when signed out; shows a red dot and “balance unavailable” on failure, and a click retries.
  • Follows the interface language (zh / en) and the theme's CSS variables.

Install

From GitHub:

dsh plugin add github:boy1141/dsh-plugin-balance-chip

Or grab dsh-plugin-balance-chip.tgz from the latest release and install that tarball. Once the entry is listed in the plugin market, Settings → Plugins will find it there as well.

Files

File Role
lib/index.js Host half — an empty mount that gives the Loader an enabled entry
lib/client.js Browser half — slot registration, polling store, chip component
cordis.patch.yml The Loader row this bundle inserts (id: balance-chip)

Development

tools/smoke-client.mjs (in the contributing workspace) simulates the DSH module loader, React, and the account Remote to check the bundle id, exports, slot registration, polling state machine, and the rendered amount text.

—/ 5

No ratings yet

Verified DSH bundle

Commit ce56f9460752

Community comments

No comments yet. Be the first to write one.

DSH HUB

A community index for DSH plugins. Not an official GitHub or DeepSeek AI product.

CommunityResourcesAPIAbout