MeiK2333/dsh-model-allowance ↗★ 0

dsh-model-allowance

Shows the current conversation model's provider balance or remaining allowance in the composer.

套件
dsh-model-allowance
相容性
待驗證
Harness 依賴範圍
>=0.2.1-rc.5 <0.3.0
版本
1.0.0
授權
MIT
最近更新
2026年11月6日

安裝

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:MeiK2333/dsh-model-allowance

dsh-model-allowance

中文

Shows the balance or remaining allowance of the provider behind the current conversation model, right beside the composer in DeepSeek Harness.

Why

DSH's account page only shows your official DeepSeek account balance. Switch a session to a third-party provider such as MiniMax or Zhipu, and nothing on screen tells you how much allowance is left. This plugin fills that gap with a badge that follows the session's model and reads that provider's balance or plan allowance.

Features

  • A badge beside the model selector follows the session's model: a money balance (e.g. ¥46.71) for DeepSeek, remaining percent or time for coding plans. A plan with several windows speaks through the shortest one (the 5-hour window on coding plans), and shows 0% as soon as any window runs out
  • Refreshes automatically after every turn, briefly showing the change (e.g. ↓0.90)
  • Click the badge for details: per-window progress bars, reset countdowns, manual refresh, and a link to the provider's console
  • Switch between the providers configured on this machine; ones without a credential stay out of the way
  • Shows the provider's own platform status, read from its official status page, so a bad reading can be told apart from a bad day: the dot on the badge is green while the service is available, red when its status page says otherwise, and grey when no status source exists for the route
  • Vendors that price by the wall clock get a schedule block: DeepSeek's peak windows (weekdays 09:00–12:00 and 14:00–18:00 Beijing time, holidays excluded) and Zhipu's (weekdays 14:00–18:00), the phase the clock is in now, and a live countdown to the flip
  • Credentials never leave the host process — the web UI only ever sees readings

Supported providers

ProviderShowsCredential
DeepSeek accountBalancenone (DSH login)
DeepSeek API keyBalanceDEEPSEEK_API_KEY
MiniMax coding plan5-hour + weekly allowanceMINIMAX_CN_API_KEY
Zhipu coding plan5-hour + weekly quotaZAI_API_KEY / ZAI_CODING_CN_API_KEY
Kimi for Codingweekly + 5-hour allowanceKIMI_API_KEY
OpenCode Go5-hour + weekly + monthlyOPENCODE_API_KEY

The plugin reuses the credentials DSH already has: it asks the harness which credential each provider route uses, so if these keys are configured, it works out of the box — including routes whose profile names a non-default apiKeyEnv. The names above are the defaults.

Platform status comes from the vendors' own pages where they publish one: DeepSeek (status.deepseek.com), MiniMax (status.minimaxi.com), Moonshot/Kimi (status.moonshot.cn), and OpenCode (status.opencode.ai). Zhipu publishes no machine-readable status page, so its card shows no status row.

Installation

Install from this repository via DSH's plugin manager, with the target:

git+https://github.com/MeiK2333/dsh-model-allowance.git

Refresh the page after installing.

Compatibility

DeepSeek Harness >=0.2.1-rc.5 <0.3.0.

License

MIT. Provider icons are trademarks of their respective owners, used only to identify them.