adithyanraj03/dsh-balance-plugin ↗★ 0
@adithyanraj/dsh-balance-plugin
Provider-aware account balance chip for the DeepSeek Harness composer dock: DeepSeek, OpenRouter, Moonshot/Kimi, Zhipu/GLM, MiniMax and Alibaba Cloud Token Plan, with peak/off-peak and night-discount countdowns.
安裝
npx -p @deepseek-ai/dsh dsh plugin --profile web add @adithyanraj/dsh-balance-plugin說明文件
閱讀完整 README ↗Alibaba usage percentages
Model Studio's quota gateway accepts console-login or AccessKey-derived tokens only — never a model API key — so the chip reads your usage through the official CLI instead of storing any secret:
npm install -g bailian-cli
bl auth login --console # browser login; international accounts add --console-site international
With bl installed and logged in, the chip shows percent used and the window reset countdown (4.22% · resets in 1d 6h); without it, the chip runs in night-discount-only mode and says where the credits live. Readings cache for five minutes.
Live captures from a Model Studio session — the all-day launch promo, and the last hour before nights open on a DeepSeek-on-plan model:


Configuration
All optional:
| knob | default | meaning |
|---|---|---|
DSH_BALANCE_MOCK=1 or ?mock=1 | off | canned balances for every provider, no account needed |
DSH_BALANCE_BL | bl on PATH | path to the Model Studio CLI binary |
Provider keys resolve from ~/.dsh/.credentials.yaml first, then the environment (DEEPSEEK_API_KEY, OPENROUTER_API_KEY, MOONSHOT_API_KEY, ZAI_API_KEY/GLM_API_KEY/ZHIPU_API_KEY, MINIMAX_API_KEY). Alibaba needs no key at all.