kongshan-zhuyu/dsh-balance-quota
Puts provider balance or quota under the DSH composer, and can read third-party JSON status APIs for model health, availability and TTFT.
Puts the number you actually need where you are typing: provider balance or quota directly below the chat composer. Official presets cover DeepSeek balance and OpenCode Go's rolling/weekly/monthly quota, and anything else can be wired from a public JSON status endpoint with a configurable JSON path — GET or a bodyless POST, custom headers, timeout, refresh interval, and amount conversion with a static or dynamic currency. The value mapping is explicit rather than clever: percentages can auto-scale, force ×100, or render raw with %, and status fields convert to healthy, failed, warning or unknown. On top of the number it can render a health dialog with model, failure and warning counts, availability, average TTFT, response time, custom metrics and recent-history bars with a manual refresh. Its limits are stated in place: it does not execute page scripts, does not discover hidden browser APIs, and cannot read Cookie-authenticated monitor endpoints.
Install
dsh plugin --profile web add dsh-balance-quotaThe npm line. Requires Node.js 22+ and the DSH CLI. Two behaviours worth knowing before configuring: the Test button validates only the current unsaved draft and writes no configuration, credentials or production cache, so save after the result is correct; and the Health Monitoring feature has to be enabled, tested and saved under Advanced Settings before its icon appears, and the icon only exists for the provider that has an enabled monitor.
Compatibility
0.3.4 and later require DSH 0.1.5-rc.1 or newer, because @deepseek-ai/dsh-settings 0.1.5-rc.2 removed the settingsNamespace() helper in favour of passing the namespace string straight to settings.register(); on DSH 0.1.4 and older the README says to use 0.3.3 instead. Only public HTTP/HTTPS endpoints are accepted, and setting DSH_BALANCE_ALLOW_HTTP=0 requires TLS. Health monitoring reads third-party monitoring data and never invokes a chat model, so it consumes no model quota — and the README is explicit that the health it shows is the monitor's, not your own account's.
Details
- Repo: kongshan-zhuyu/dsh-balance-quota
- Category: Usage & Billing
- Stars: 0
- Version: 0.3.7 (npm; the README's development line is 0.3.5 and the previous release 0.3.3)
Alternatives
iamfromchangsha/dsh-go-balance · JonyChan8394/dsh-llm-balance · fuqiancheng/dsh-commandcode-quota