AI Agent Hub
Back to plugins
🖥️

dsh-balance-display

Client Updated 2026.08.25

Run the following command in DeepSeek Harness:

dsh plugin install Liu-ty/dsh-balance-display

Paste the following prompt into your AI chat to install this plugin:

Run dsh plugin install Liu-ty/dsh-balance-display in DeepSeek Harness to install this plugin; the source repository is at https://github.com/Liu-ty/dsh-balance-display .

About this plugin

Checking your DeepSeek API balance used to mean leaving your editor, opening a terminal for a curl call, or hopping to a separate browser tab on the console. dsh-balance-display turns that into a glance: a collapsible panel sits right inside your DeepSeek Harness interface, so the numbers are always within reach without breaking your workflow.

The panel shows two currency rows, CNY and USD, each broken down into total, granted, and topped-up amounts, alongside account availability and the timestamp of the last refresh. You can refresh manually or pick an automatic interval of 1, 5, or 15 minutes. When the browser tab goes into the background the timers pause automatically, and the first frame back to the foreground triggers a catch-up refresh. Theming follows the Harness light and dark tokens, and the interface ships with built-in zh-CN and en-US locale dictionaries. Every failure mode, including missing credential, 401 Unauthorized, timeout, network error, upstream failure, and unexpected response shape, maps to a distinct human-readable state rather than a blank panel or a raw stack trace.

On the security side, the API key is resolved by the Harness host through its credentials service once per balance call, attached only to the outbound request to the official endpoint, and never cached. It is not sent to the browser, written to disk, included in logs, snapshots, or error payloads. The plugin stores no balance values, keeps no usage history, performs no local token-cost estimation, and stops at parsing the documented field set into camel-cased display values.

This is a good fit for developers working under the DeepSeek Harness Web profile who call the API regularly and want to keep an eye on remaining credits, granted allocation, and topped-up balance without switching to a terminal or a separate browser tab.

Use Cases

  • Glance at your API balance mid-session without leaving the editor to avoid unexpected 401 errors
  • Return to your workspace from another tab and the panel auto-refreshes to the latest balance
  • Check credit changes quickly without opening a terminal or a separate browser tab

Best For

  • Developers who call the DeepSeek API regularly under the Harness Web profile
  • Solo developers who need to track remaining credits and topped-up balance right in their workspace
  • Security-conscious users who want the API key to stay server-side and never reach the browser