dsh-balance
Run the following command in DeepSeek Harness:
dsh plugin install PengPeng6845/dsh-balance
Paste the following prompt into your AI chat to install this plugin:
Run the install command in DeepSeek Harness to add this balance monitor plugin; source code is at https://github.com/PengPeng6845/dsh-balance
About this plugin
A lightweight DeepSeek Harness sidebar plugin that shows your real API account balance via the official /user/balance endpoint. No local price-table estimation — a decrease is real spend, a refill is ignored. Since the official API does not expose per-request usage breakdowns, local cost estimates have historically drifted badly (one known case overestimated by 70x). This plugin simply trusts the balance delta from the billing system.
The experience is built around speed and zero overhead. About twenty seconds after a model response finishes (when billing settles), the plugin queries once and pushes the result over an SSE long-poll channel within one second; a fifteen-second fallback poll keeps things alive. Below the alert threshold (default 5 in your account currency), the number turns orange with a hover hint. On network failure it backs off exponentially from 5 s to 5 min, greys out the last known value, and auto-pauses polling when the tab is hidden. The whole plugin ships with zero npm runtime dependencies and no build step; the API key is referenced via an environment variable, re-resolved per request, and never written to disk.
Ideal for DeepSeek Harness users who run batch prompts daily, care about API spend, and would rather glance at a sidebar widget than log into a console. The UI is bilingual and follows the system locale automatically. Setup is a few key-value lines in your profile config — no extra service, no dashboard, just the number where you already look.
Use Cases
- Glance at remaining balance while running batch prompts
- Spot an orange low-balance alert in the sidebar before funds run out
- Check the official balance without leaving Harness or the console
Best For
- Developers running batch inference who track API spend closely
- Chinese or English users of DeepSeek Harness sidebar plugins
- Users who prefer lightweight, zero-dependency plugins with no build step
Related Plugins
Free web search plugin for DeepSeek Harness with web search, X search, and page fetch; no signup or API key required, with automatic multi-engine failover.
AnySearch-powered web and vertical search plugin for DeepSeek Harness, offering real-time search, cleaned URL content, concurrent batch search via native web_search/web_fetch, no API key required.
Pixel-perfect webpage clone tool that uses an agent harness to turn any webpage into a scored, full-page React replica.
A bilingual cost-tracking plugin for DeepSeek Harness with session/daily cost, budget, official & custom provider balance, coding plan quotas, peak/off-peak pricing alerts, and history stats.