AI Agent Hub
Back to plugins
🖥️

dsh-balance

Client Updated 2026.08.25

Run the following command in DeepSeek Harness:

dsh plugin install 305037991x-pixel/dsh-balance

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

Run dsh plugin install 305037991x-pixel/dsh-balance in DeepSeek Harness to install; the source repository is available at https://github.com/305037991x-pixel/dsh-balance.

About this plugin

Running both DeepSeek and OpenRouter APIs side by side means hopping between two separate dashboards just to check your balance. dsh-balance solves that with a single persistent chip in the conversation header: DeepSeek credit in yuan on the left, OpenRouter credit in dollars on the right (top-up minus usage). Hover to reveal per-account breakdowns, auto-refresh every three minutes, and switch conversations without re-fetching thanks to a module-level shared cache.

Fault isolation is a deliberate design choice: if one provider errors out, only that side shows a warning mark while the other keeps displaying normally. The manual refresh button triggers both requests simultaneously, so you never end up with a half-stale state.

All credential handling stays on the host side. The browser never sees a raw key—only sanitized balance figures reach the front-end. For developers who lean on both platforms daily and want to stay on top of consumption without breaking the flow of an active conversation, this chip keeps the numbers right where your eyes already are.

Use Cases

  • Check both DeepSeek and OpenRouter credits without leaving the conversation
  • Glance at remaining budget mid-session by hovering the chip
  • Track consumption trends and spot low-balance situations early

Best For

  • Developers relying on both DeepSeek and OpenRouter daily
  • Solo builders who prefer fewer context switches
  • Tech leads auditing spend or setting up cost alerts for a team