AI Agent Hub
Back to plugins
🖥️

dsh-balance-window

Client Updated 2026.08.25

Run the following command in DeepSeek Harness:

dsh plugin install sixtysevenlf/dsh-balance-window

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

Run dsh plugin install sixtysevenlf/dsh-balance-window in your DeepSeek Harness terminal to install the plugin. The full source repository is at https://github.com/sixtysevenlf/dsh-balance-window.

About this plugin

When you are deep in a coding session or a long chat on dsh, your account balance and remaining token budget are buried in a settings panel, and you often only notice a near-zero balance mid-task. dsh-balance-window pins a lightweight overlay in the corner of your screen so you can glance at your balance and estimated remaining tokens without ever switching tabs.

The widget defaults to the bottom-left corner but can be grabbed and dragged anywhere on screen; the drop position is persisted in localStorage so it survives restarts. It calls the official GET /user/balance endpoint to fetch the live balance, then estimates remaining tokens using the current model and a configurable price per million tokens (default: 4 CNY per million blended). The display auto-refreshes every 60 seconds, and you can trigger an immediate sync by clicking the window or the refresh button. A green breathing dot signals healthy data; failed requests retry automatically without flicker. Your API key is read only from your own runtime environment—the plugin ships with no secrets whatsoever.

If you rely on dsh desktop or web daily and want an at-a-glance sense of whether your budget is still good, this little overlay is far less intrusive than repeatedly opening the settings page. It quietly stays in the corner, ready the moment you look up.

Use Cases

  • Glance at your account balance during long coding or chat sessions
  • Avoid discovering a token budget shortfall mid-task
  • Maintain budget awareness without leaving the dsh interface

Best For

  • Developers who use dsh desktop or web daily
  • Users who need frequent visibility into DeepSeek balance and token usage
  • Users who want budget awareness without interrupting their workflow