AI Agent Hub
Back to plugins
🧰

dsh-api-balance

Web Tools Updated 2026.08.25

Run the following command in DeepSeek Harness:

dsh plugin install Badegg404/dsh-api-balance

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

Run dsh plugin install Badegg404/dsh-api-balance, or clone from https://github.com/Badegg404/dsh-api-balance into ~/.dsh/profiles/web/plugins/dsh-api-balance/ and restart DSH to activate the plugin.

About this plugin

If you juggle several AI providers—DeepSeek, OpenRouter, Moonshot, SiliconFlow, MiniMax, xAI, OpenAI, Anthropic—verifying balances and 30-day usage costs often means context-switching to a terminal and firing off yet another curl. dsh-api-balance folds that chore into the DeepSeek Harness session header: a small pill in the top-right corner shows the active provider's account balance in real time, and clicking it opens a two-tab panel—Balance and Usage—each with its own provider picker, API-key field, and 30-second auto-poll. Credentials persist in DSH's local store (mode 0600) across restarts, the backend only accepts loopback traffic, and API keys never leak to the frontend or logs. Styling follows DSH's light/dark theme tokens out of the box. If you orchestrate multi-model tasks in DSH and keep a rotating roster of provider keys, this lightweight component keeps the account-checking workflow a couple of clicks away without leaving the chat window. Adding a new provider is a one-line config entry; the matching form renders automatically with no UI code changes.

Use Cases

  • Glance at remaining API credits mid-session without leaving the chat window
  • Review 30-day spend or token quota across providers at month-end
  • Verify a newly pasted key and its balance before launching a batch job
  • Confirm the account is in good standing before kicking off a long-running task

Best For

  • Developers juggling multiple AI API subscriptions who check balances often
  • Teams orchestrating multi-model workflows inside DeepSeek Harness
  • Engineers who prefer keeping account checks inline with the chat session