dsh-balance-pill: View Wallet Balance and Estimate Spending in DeepSeek Harness

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/prices endpoint, fetches the official pricing table every 24 hours, and parses the two-tier peak / off-peak rates. Supports the deepseek-flash and deepseek-v4-pro models; on fetch failure, falls back to the last cached copy and marks it as stale; if that also fails, falls back to built-in default pricing
  • client.js: Injected via window.__ModuleLoader__.load({ id: 'dsh-balance-pill', factory(require) { … } })
  • cordis.patch.yml: Inserts the loader line balance-pill / dsh-balance-pill
  • locale/zh.json, locale/en.json: Plugin metadata title, description, and meta.detail link
  • icon.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

  1. Install the plugin:
dsh plugin add github:Fishberg2026/dsh-balance
  1. 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
羽毛球分组比赛记分
小程序二维码

欢迎使用《羽毛球分组比赛记分》微信小程序

Xiaoye