Preface¶
The DSH philosophy is “everything is a plugin.” When running DeepSeek agents locally, we often need to check the platform wallet balance and estimate the cost of the current session. The official application does not yet provide this information, so developers have to switch to a browser or query a webpage to find out. dsh-balance-pill displays the wallet balance below the input box in DeepSeek Harness, shows the estimated cost of the current session on hover, and navigates to the top-up page when clicked.
What Is This¶
dsh-balance-pill is a DeepSeek Harness plugin developed by maintainer Fishberg2026. It calculates costs in real time using the official pricing table, caches the data for 24 hours, displays the balance in the status bar to the right of the input box, shows the estimated cost for the current session on hover, and supports Chinese/English language switching.
Core Features¶
- Displays the DeepSeek platform wallet balance below the input box
- Shows the estimated cost for the current session on hover (automatically fetches the latest official pricing)
- Auto-detects and adapts to Chinese/English
- Opens the Platform top-up page in-app when clicked
Technical Implementation¶
The plugin includes the following files:
index.js: Host-side module. Registers the/balance-pill/pricesendpoint, fetches the official pricing table every 24 hours, and parses the two-tier peak / off-peak rates. Supports thedeepseek-flashanddeepseek-v4-promodels; on fetch failure, falls back to the last cached copy and marks it asstale; if that also fails, falls back to built-in default pricingclient.js: Injected viawindow.__ModuleLoader__.load({ id: 'dsh-balance-pill', factory(require) { … } })cordis.patch.yml: Inserts the loader linebalance-pill / dsh-balance-pilllocale/zh.json,locale/en.json: Plugin metadata title, description, andmeta.detaillinkicon.svg: Inline icon in the Plugin Manager (36×36, coin shape +¥, matching the stroke style of official plugins)docs/DETAIL.md,docs/DETAIL.zh.md,docs/preview.svg: Feature diagram and documentation for the plugin detail page
Installation & Activation¶
- Install the plugin:
dsh plugin add github:Fishberg2026/dsh-balance
- After starting DSH, the plugin will load automatically
Typical Usage¶
After installation and startup, the plugin automatically displays the wallet balance in the status bar below the input box. Hover the mouse to see the estimated cost for the current session. Click the balance or cost information to open the Platform top-up page within the app.
Use Cases & Notes¶
Suitable for developers who need to check wallet balance and estimated costs at any time while developing DeepSeek agents locally.
The plugin runs with the current DSH process permissions. Review the source code and license (MIT) before installation.
Summary¶
dsh-balance-pill displays the wallet balance and estimated cost below the input box in DeepSeek Harness, calculates in real time using the official pricing table, and supports Chinese/English switching. It is suitable for developers who need to check costs at any time during local development.
- Catalog page: https://www.skillhub.cn/plugins/Fishberg2026/dsh-balance
- GitHub: https://github.com/Fishberg2026/dsh-balance