dsh-balance-pill: Resident Balance Pill at the Bottom Right Corner of the DSH Web Interface

Preface

When developing chatbots or agents with DeepSeek Harness (DSH), checking how much money remains in your topped-up wallet often requires navigating to “Settings → Account”. If you primarily log in via a platform account rather than relying solely on an API Key, you likely want a persistent balance indicator on the main interface without installing a browser extension that handles credentials or requires a separate Key configuration. Here we introduce the community plugin dsh-balance-pill: it attaches a small pill to the bottom right corner of the DSH Web UI, reading from the host’s existing account Remote. It is approximately 12 KB of pure JavaScript with no self-hosted HTTP endpoints.

What is this

dsh-balance-pill is released by maintainer fdghdfghdfghd, categorized as a client-side plugin, licensed under MIT. The current package version is 1.0.0, requiring host DSH >= 0.2.0-rc.2. It can be found in the SkillHub Plugin Directory and on GitHub. The directory and repository belong to the community ecosystem and have no official affiliation with DeepSeek or High-Flyer.

In one sentence: A resident balance pill for DeepSeek Harness—glimpse your DeepSeek account balance at a glance in the bottom right corner, without touching credentials or requiring an API Key.

Core Features

Interface and Interaction

The interface features a rounded pill in the bottom right corner, with an example form:

● Balance ¥12.34
  • Hover: Displays gifted quota, update time, and refresh notes.
  • Click: Triggers an immediate refresh.
  • Auto-refresh: Every 60 seconds, timing only when the page is visible; triggers an immediate refresh when switching back to the page or when the window regains focus.
  • Theming: Follows the host theme tokens for light/dark modes; follows the interface language for Chinese/English (Client locale namespace dsh-balance-pill, zh / en).
Status Appearance Meaning
Normal Green dot + Balance ¥12.34 Successfully read the topped-up wallet balance.
Loading Gray dot + Balance -- Currently reading.
Not Logged In Gray dot + Balance -- Currently using an API Key; no platform account credentials.
Read Failure Orange dot + Balance -- Platform request failed; hover to see the reason.
Exception Red dot + Balance -- The call itself errored; hover to see error details.

The amount format aligns with the official account card: two decimal places, thousands separators, and positive amounts less than 0.01 are displayed as <¥0.01.

Data Source

The balance is not requested by the plugin itself via the platform API; instead, it reuses the account Remote already mounted by the host:

ctx.remote.account.getBalance({ version, locale, timezoneOffsetSeconds })

This is the same host method called by the “Settings → Account → Balance” card. Therefore:

  • The browser side cannot access the token; credentials, platform address, headers, timeout, and expiration handling remain on the host side.
  • The plugin does not touch account logic and requires no API Key configuration.
  • If not logged in (API Key only), the method returns null, and the pill displays “Not Logged In”.

The plugin registers in the shell.overlay layer. The control enables pointer-events for itself, while the rest of the area maintains click-through behavior; it is fixed at approximately 16px offset from the bottom right corner.

What it explicitly does NOT do

  • Displays balance only; it does not perform accounting or calculate per-turn consumption. If you need “how much spent today / per turn / multi-vendor quota,” the README suggests using a full desktop pet accounting plugin (e.g., dsh-whale-widget).
  • Does not consume model API quota: It reads an account balance snapshot and does not initiate model requests.

Installation and Activation

Before installing, please review the repository source code and the MIT license yourself. The plugin runs in the browser half of the DSH process, with a permission boundary consistent with the current profile.

Official Desktop Client (Electron)

The desktop client uses the desktop profile. You cannot use dsh plugin --profile desktop … (the CLI will refuse by design); installation must be done within the application.

  1. Open Plugins in the sidebar → Install.
  2. Fill in:
github:fdghdfghdfghd/dsh-balance-pill
  1. If the bottom right corner doesn’t show the pill after installation, fully quit the client (including the system tray) and reopen it.

dsh web and Other Web Profiles

Execute the following in your terminal:

dsh plugin --profile web add github:fdghdfghdfghd/dsh-balance-pill

After installation, restart dsh web and perform a hard refresh in the browser with Ctrl+F5.

Uninstallation

For Web profiles:

dsh plugin --profile web remove dsh-balance-pill

For the Desktop client, uninstall via the Plugins page.

Typical Usage and Troubleshooting

Prerequisites for Normal Use

  • The plugin is only effective in the browser half (dsh.client.platform = web) and requires the host to mount the account Remote (Desktop, or Web client with a logged-in DeepSeek account). If the namespace is missing, the plugin remains silently inactive without errors.
  • The README notes it has been tested and works on DSH 0.2.0-rc.2 (Windows Desktop).

If it continuously shows “Not Logged In,” go to “Settings → Account” to log into your DeepSeek platform account; configuring an API Key only will not route through the account balance API.

Nothing appears in the bottom right corner after installation

Check in order: ① Did you install to the correct profile? (Desktop requires in-app desktop installation; content installed via --profile web is not readable by the desktop client). ② Does dsh.profile.bundles include dsh-balance-pill? ③ Did you fully quit and reopen the client? (Hot-loading might not suffice for first-time installation).

Configurable Parameters (Source Code Editing)

There is no independent settings page; common changes are in client.js:

  • Refresh interval: REFRESH_INTERVAL_MS (default 60000 milliseconds).
  • Text: COPY.
  • Conflicts with other bottom-right widgets: modify the button’s right / bottom.

To verify if it has been compiled into the host’s startup graph (rather than just sitting in node_modules), you can request the DSH /plugins route with id + rev (rev is derived from the bundle’s mtimeMs/ctimeMs/size). A 200 response containing __ModuleLoader__ indicates the Loader entry and dsh.client declaration are active. See the repository README section “Development and Verification” for details.

Use Cases and Notes

Suitable for: Users logged into DSH via a platform account who want a resident view of their topped-up wallet balance in the bottom right corner of the main interface, and who accept a minimalist solution of “balance only, no accounting.”

Notes:

  • The position is fixed at the bottom right; there is no graphical configuration.
  • The repository states there are no unit tests; compatibility is based on the host versions listed in the README and self-testing.
  • Installing a community plugin implies trusting its client script; it is recommended to browse client.js and the dsh.client declaration in package.json before installing.

Conclusion

dsh-balance-pill uses the host’s account.getBalance to condense the “balance card in Settings” into a pill in the bottom right corner: it doesn’t touch credentials, requires no API Key, and is perfect for the “see how much money is left at a glance” scenario. For more information, visit the SkillHub Directory Page and the GitHub Repository.

羽毛球分组比赛记分
小程序二维码

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

Xiaoye