AI Agent Hub
Back to plugins
🧰

dsh-deepseek-balance

Web Tools Updated 2026.09.11

Run the following command in DeepSeek Harness:

dsh plugin install Jianwen-Xu/dsh-deepseek-balance

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

Run dsh plugin install Jianwen-Xu/dsh-deepseek-balance to add the plugin to your current profile; source is at https://github.com/Jianwen-Xu/dsh-deepseek-balance .

About this plugin

When the DeepSeek API carries real workloads, the questions that actually keep you up at night are not about the code — they are about balance and pricing window. dsh-deepseek-balance pins both to the bottom of the DSH Web sidebar so you never have to leave the editor, fire off a curl, or open the pricing page to check where you stand.

The plugin resolves peak and off-peak windows locally against the official DeepSeek pricing schedule — Beijing weekday hours 09:00–12:00 and 14:00–18:00 are peak, everything else is off-peak at half rate — and displays a live countdown to the next switch on the badge. The time calculation shifts eight hours before reading UTC fields, so a developer in London, Shanghai, or San Francisco all gets the same verdict. Hovering the badge breaks out gift-balance and top-up-balance figures separately. A colour dot communicates state at a glance: green for healthy, amber for an unavailable account, red for a read failure, blue while loading; clicking the row bypasses the 60-second cache and forces a fresh upstream call, while concurrent reads are coalesced into a single in-flight promise so rapid clicks never spiral into a request storm. When the sidebar is collapsed the widget shrinks to a wallet glyph with the dot tucked in its corner — hover for full detail, click to refresh, no text overflow.

Anyone who calls the DeepSeek API day-to-day inside the DSH workspace will find the value: prompt debugging, batch evaluations, cost window scheduling, or simply keeping an eye on what is left. One narrow strip in the sidebar replaces a dozen context switches.

Use Cases

  • Glancing at remaining balance mid-prompt-debug
  • Checking if the current window is off-peak before a batch run
  • Reading the status dot with the sidebar collapsed

Best For

  • Developers making high-frequency DeepSeek API calls
  • Teams managing cost windows and billing periods
  • Individual users working in the DSH environment