JonyChan8394/dsh-llm-balance

Multi-provider LLM API balances under the chat input, with presets for DeepSeek, OpenRouter and SiliconFlow.

Shows the balances of exactly the LLM providers you have configured in dsh, in a compact readout in the composer's footer band below the chat input, refreshing automatically (default every 60 s) with a manual refresh link. It is driven by your dsh configuration — configure a new LLM and it appears on the next refresh, remove it and it disappears, with no restart or config editing. Balance endpoints are known for DeepSeek, OpenRouter, SiliconFlow, Moonshot/Kimi, MiniMax, StepFun and Zhipu/GLM routes; a provider with an API key but no public balance endpoint (Qwen/DashScope, OpenAI, Anthropic) shows "未开放查询API / no balance API" instead of being hidden. Clicking a balance opens that provider's recharge page in a new tab, and each preset ships a rechargeUrl.

Usage & Billing ★ 2 updated 2026-08-17
View on GitHub ↗

Install

dsh plugin --profile web add github:JonyChan8394/dsh-llm-balance

README install quoted verbatim, followed by "Restart dsh web". Registry check 2026-09-13: a dsh-llm-balance package exists at 0.7.1 but its repository field points at a different project (github.com/AlienGene/dsh-llm-balance-siderbar), so no npm claim is made and the README's GitHub form is used. Configuration is optional: the README shows overriding the plugin row in the profile's cordis.patch.yml (for example refreshMs: 30000) to add a balance endpoint for a provider not in the built-in list.

Compatibility

Runs in the DSH Web profile and follows whatever providers are registered in dsh (the Models page / llm-ai-pi settings plus the built-in adapters you use). API keys are resolved from DSH credentials (or the environment) host-side, so the browser only ever sees the fetched balances.

Details

Recent updates

The README documents the provider coverage table, the optional config override and the key-handling model rather than a changelog; verify the repository for current releases.

FAQ

Which providers does it cover?
Balance endpoints are known for DeepSeek, OpenRouter, SiliconFlow, Moonshot/Kimi, MiniMax, StepFun and Zhipu/GLM; other configured providers show "未开放查询API" rather than being hidden.
Do I have to configure it?
No — the README says nothing needs configuring; the strip follows the providers you already set up in dsh. Overriding the plugin row in cordis.patch.yml is only needed to add a balance endpoint for an unlisted provider.
Where do API keys go?
Keys stay on the host — the README says they are resolved from DSH credentials (or environment) host-side and the browser only sees the fetched balances.

Alternatives

FengHuoLinShan/dsh-plugin-llm-balance · jelly-000/dsh-balance-monitor · Ghost011118/dsh-balance-meter

More plugins in Usage & Billing

Browse more in Usage & Billing

Guides for Usage & Billing plugins