JonyChan8394/dsh-llm-balance

JonyChan8394★ 0JavaScriptLast synced: 2026-08-17

Open on GitHub

Show LLM API balances under the chat input: DeepSeek, OpenRouter, SiliconFlow and any custom provider with a balance endpoint. DSH plugin.

README excerpt

dsh-llm-balance English 中文 Show the balances of exactly the LLM providers you have configured in dsh, right below the chat input box. - Below the chat input — a compact readout in the composer's footer band (the seat under the input card, where the stats line lives) that refreshes automatically (default every 60 s) with a manual refresh link. - Click to recharge — click any provider's balance (or "未开放查询API" label) to open its recharge/top-up page in a new browser tab. - Driven by your dsh configuration — the strip shows exactly the providers registered in dsh (the Models page / llm-pi-ai settings + the built-in adapters you use). Configure a new LLM in dsh and it appears on the next refresh; remove it and it disappears. No restart, no config editing. - No public balance API? — providers like Qwen/DashScope, OpenAI and Anthropic have a public API key but no public balance endpoint. When such a provider is configured with a key, the strip shows "未开放查询API / no balance API" instead of hiding it. - Keys stay on the host — API keys are resolved from DSH credentials (or environment) host-side; the browser only ever sees the fetched balances. Install Restart dsh web . The balance readout a…

View full README on GitHub →
Tools / Devdeepseek-harnessdsh-pluginllm-balance

Category