Model Balance · DSH plugin
jacujay/dsh-model-balance · skills
DSH plugin: auto-detect current model vendor and show balance/quota in the composer input row (DeepSeek/Moonshot/MiniMax/StepFun/Zhipu/SiliconFlow/OpenRouter + custom endpoints).
★ 2GitHub stars
0Forks
2026-08-28Last updated
JavaScriptLanguage
MITLicense
Key features
- Auto vendor detection — reads the current default model's provider from DSH configuration and identifies the vendor by provider id, then by baseURL hostname as a fallback.
- Balance requests are issued by the local DSH host with the provider's API key
- Built-in vendors — DeepSeek, Moonshot/Kimi, MiniMax, StepFun, Zhipu (quota only), SiliconFlow, OpenRouter.
- Two result kinds — monetary balance (with granted/topped-up breakdown where the API provides it) and quota (MiniMax / Zhipu, which expose usage plans instead of money).
- Input-row button — a small ◈ icon before the model name in the native composer row.
Requirements
- New API exposes token usage at /api/usage/token, authenticated with the same API key used for model calls.
- Add a custom endpoint for the matching DSH provider (often openai) in Settings → Balance lookup
Install command
dsh plugin --profile web add github:jacujay/dsh-model-balance