Introduction¶
In DeepSeek Harness (DSH), checking your balance requires navigating to Settings → Account & Balance first, and only then can you see the current balance. For session scenarios that involve frequently switching models and checking costs, navigating into Settings each time adds operational overhead. Below is a plugin that displays a balance badge at the bottom of the DSH left sidebar, next to the Settings row. It fetches data directly from the built-in account service, reducing the need for navigation.
What It Is¶
DeepSeek Balance Badge is a DSH plugin developed by maintainer Temila. Its core function is to display a deepseek balance: ¥xx.xx badge at the bottom of the DSH left sidebar (the sidebar.footer.action slot, order: 5), drawing from the same data source as Settings → Account & Balance. It does not read or store any credentials; it only calls DSH’s built-in account service to retrieve the balance.
Display Position & Conditions¶
- Position: Bottom of the left sidebar, in the
sidebar.footer.actionslot, adjacent to the Settings row. - Display conditions (if any is not met, the badge is hidden and takes no space):
1. The model selected in the main session bound to the right-hand window (mainView) is a DeepSeek model (model id or provider starts withdeepseek).
2. The built-in account service reports a logged-in state, and the balance endpoint returnsready.
3. The sidebar is in wide mode (not rendered when collapsed to narrow).
When all conditions are met, it displays deepseek balance: ¥12.34; multiple wallets are separated by spaces; unknown currencies are shown as CODE 12.34; negative values retain the - sign.
Data Source & Refresh¶
- Data source: Reuses DSH’s built-in account service, calling
remote.account.getBalance(the same endpoint and same data as the Settings page). It does not read or store any credentials. - Refresh timing:
- On plugin mount.
- When account state changes (
account-ui/change,account-ui/refresh). - When the window regains focus.
- Polls every 3 minutes.
Installation & Enabling¶
Plugin Store (recommended):
1. Open Settings → DSH HUB Marketplace.
2. Search for “DeepSeek Balance Badge”.
3. Follow the prompts to install.
Command line (example uses the web profile; replace with desktop for the desktop version):
dsh plugin --profile web add github:Temila/deepseek-balance-badge
After installation, restart the corresponding profile. No configuration is needed for it to take effect.
Uninstallation¶
Command line:
dsh plugin --profile web remove deepseek-balance-badge
Or remove the corresponding bundle in Settings → Plugins. Uninstallation only removes this one plugin entry and does not affect account data or the balance endpoint.
Use Cases & Notes¶
- Suitable for users who need a quick glance at their DeepSeek balance from the session interface.
- The plugin runs with the current DSH process privileges. It is recommended to review the source code and license (MIT) before installing.
- It depends on DSH’s built-in
@deepseek-ai/dsh-client-ui-sidebarand@deepseek-ai/dsh-client-ui-settings-accountplugins. The target platform is the DSH Web client (platform: web).
In Short¶
This plugin displays your DeepSeek balance directly at the bottom of the left sidebar, reducing the number of times you need to navigate into Settings. It is ideal for session scenarios that require frequent cost checks. For more details, see the catalog page and the GitHub repository.