andregoncalves/dsh-balance0

@andrecgoncalves/dsh-balance

Provider-aware account balance chip for the DeepSeek Harness web sidebar: DeepSeek, OpenRouter, Moonshot/Kimi, Zhipu/GLM, and MiniMax.

包名
@andrecgoncalves/dsh-balance
版本
0.4.0
许可证
MIT
最近更新
2026年9月9日

安装

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:andregoncalves/dsh-balance

Configuration

DeepSeek resolves DEEPSEEK_API_KEY through the Harness credentials seam (for example ~/.dsh/.credentials.yaml). The other providers try the seam first, then fall back to the ambient launch environment (process, the invoking project's .env, then the Harness home's .env).

ProviderCredential names tried, in order
DeepSeekDEEPSEEK_API_KEY
OpenRouterOPENROUTER_API_KEY
Moonshot / KimiMOONSHOT_API_KEY
Zhipu / GLMZAI_API_KEY, GLM_API_KEY, ZHIPU_API_KEY
MiniMaxMINIMAX_API_KEY, MINIMAX_CN_API_KEY, MINIMAX_API_TOKEN

To share one credential plane with the model adapter, store the key in ~/.dsh/.credentials.yaml and add apiKeyEnv to the route. Zhipu's account endpoints expect the key verbatim (no Bearer prefix); the host applies the right scheme automatically. Moonshot and Zhipu mirror across two regional hosts, so a key valid on only one site falls through to the other before the request is reported as failed.