Preface¶
The default path to check your balance in DeepSeek Harness (DSH) is Settings → Account & Balance. When writing agents, tuning models, or leaving sessions running for long periods, navigating to the settings page every time just to confirm the remaining wallet amount disrupts the current workflow. The community plugin dsh-show-balance embeds the balance into the bottom dock of the conversation area: a status bar cell displays the number persistently, and clicking it reveals details on top-ups, grants, and the total. The data source is consistent with the official account page.
Below is an introduction to the plugin’s positioning, display logic, installation and activation methods, as well as permissions and version prerequisites to be aware of during use.
What is this¶
dsh-show-balance is maintained by stefanohe (Stefano’s AI Lab). The npm package name is dsh-show-balance, and it is categorized as a Client plugin in the SkillHub directory. The README indicates compatibility with deepseek-harness-v0.2.0-rc.2; the currently published version is 0.2.0-rc.2 (MIT License).
In short: it adds a cell to the conversation.composer.dock slot in the browser UI to display the wallet balance of the logged-in account. If not logged in or if reading fails, it renders nothing, avoiding the display of stale or arbitrary numbers.
Core Features¶
Status Bar Cell¶
- Position: To the left of the built-in “Session Stats” entry; if an input statistics plugin is installed (e.g., the prefill-speed cell mentioned in the README), it displays to the left of that cell.
- Content: Wallet balance, retaining two decimal places (not displaying Platform’s full precision).
- Interaction: Clicking the cell pops up a panel above it (portal mounted to body); pressing
Escape, clicking outside the panel, or clicking the cell again closes it.
Rows in the Pop-up Panel¶
| Row | Meaning |
|---|---|
| Status Bar Cell | Wallet balance headline |
Topped-up / 充值余额 |
Top-up wallet; takes CNY if the account has a CNY wallet |
Granted / 赠金余额 |
Sum of grant wallets; appears only when the account reports grant wallets |
Total / 合计 |
Top-up + Grant |
Multi-currency accounts: Aggregated by currency and joined with + (e.g., 10.00 CNY + 1.00 USD), no exchange rate conversion. If there is no grant wallet, the panel only shows the top-up row; if the grant is 0.00, it still displays (different from the production account page behavior of hiding zero grants).
Units change with the UI language: CNY is CNY in the English interface and 元 in Chinese; other currencies retain their ISO codes. Changes take effect immediately upon switching the interface language, without reinstallation.
Data Source¶
Uses the same chain as Settings → Account & Balance: ctx.get('remote.account') → getBalance(metadata). The browser does not send credentials; the Host attaches saved authorization. The balance is re-read approximately every 30 seconds. If not logged in or if reading fails, it returns null, and the cell displays nothing.
Installation and Activation¶
The plugin targets the desktop profile of DSH, located at <DSH Home>/profiles/desktop. The README recommends using pnpm 11.7.0.
If pnpm is not installed:
npm install -g pnpm@11.7.0
Method A: Install from npm¶
Execute in the corresponding profile directory (or install via Settings → Plugins / the agent’s plugin_manager tool):
pnpm add dsh-show-balance
When using the default home directory for DeepSeek Harness:
cd "$env:USERPROFILE\.dsh\profiles\desktop" ; pnpm add dsh-show-balance # Windows
cd ~/.dsh/profiles/desktop ; pnpm add dsh-show-balance # macOS / Linux
Verify that dsh.profile.bundles in that profile’s package.json includes the package name (this is written automatically when installed via the plugin manager).
Method B: Install via Repository Script¶
Suitable for source code, offline environments, or versions not available on npm. Execute in the repository root directory:
pwsh -File .\install.ps1 # Windows
sh ./install.sh # macOS / Linux
pwsh -File .\install.ps1 -From npm # Install published npm package
The script handles dependencies and manifest writing (and backs up modified files), and prompts for subsequent steps.
Activation (Common to both methods)¶
- Fully restart the DSH application—The browser bundle snapshots during startup composition, so merely refreshing the page is insufficient.
- Turn on the toggle for dsh-show-balance in the left-side plugin panel.
Typical Usage¶
Once installed and enabled, log in to your DeepSeek account to see the balance cell in the bottom dock of the conversation area. To distinguish between top-ups and grants, click the cell to view the three-row breakdown (if grants exist) or just the top-up row (if no grants). When leaving the Harness running for long periods, the number refreshes automatically at approximately 30-second intervals without needing to manually enter the settings page.
If not logged in, the cell remains empty, which is expected behavior.
Use Cases and Notes¶
Who it is for: Users who frequently write prompts and run agents in the DSH desktop client, want to see their balance at a glance next to the composer, and require consistency with the official account page numbers.
Implementation Boundaries (README Notes):
- Non-official plugin, using only public interfaces (account Remote and dock slots).
- Grants are not included in the status bar headline, consistent with the “Top-up / Grant” breakdown on the production account page.
- The plugin runs with the permissions of the current DSH process; please review the GitHub Source Code and MIT License before installation to ensure acceptance before enabling.
Package Structure Reference: index.js (Host Loader lines), client.js (Browser-side cell and data fetching), cordis.patch.yml (Host patch).
Conclusion¶
dsh-show-balance brings account balance into the status bar, using the same reading path as the official account page and distinguishing between top-ups, grants, and totals. If you are already using a DSH v0.2.0-rc.2 desktop profile, you can integrate it via the pnpm command or installation script mentioned above, and enable it in the plugin panel after restarting.
- Directory Page: https://www.skillhub.cn/plugins/stefanohe/dsh-show-balance
- Repository: https://github.com/stefanohe/dsh-show-balance