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.

패키지
@adithyanraj/dsh-balance-plugin
호환성
미검증
Harness peer 범위
*
Cordis peer 범위
*
버전
0.13.4
라이선스
MIT
최근 업데이트
2026. 11. 11.

설치

$npx -p @deepseek-ai/dsh dsh plugin --profile web add @adithyanraj/dsh-balance-plugin

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:

Alibaba Token Plan chip with the all-day −80% promo

Alibaba Token Plan chip with nights approaching at −50%

Configuration

All optional:

knobdefaultmeaning
DSH_BALANCE_MOCK=1 or ?mock=1offcanned balances for every provider, no account needed
DSH_BALANCE_BLbl on PATHpath 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.