HoodyHuo/dsh-plugin-glm-balance ↗★ 0
dsh-plugin-glm-balance
DSH web plugin: GLM (bigmodel.cn) quota balance indicator beside the composer context meter, shown when the current provider is zai-coding-cn; token, provider id, and auto-refresh interval configurable in its own settings section. 适合使用 zai-coding-cn 渠道并需要实时监控 GLM 余额的用户。
インストール
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:HoodyHuo/dsh-plugin-glm-balanceドキュメント
README 全文を読む ↗Configuration
The plugin proxies GET https://bigmodel.cn/api/monitor/usage/quota/limit
through two same-origin host routes (avoiding browser CORS):
GET/POST /glm-balance/api/config— stored credentialsGET /glm-balance/api/usage— proxied quota query
The token persists in glm-balance.json under the harness home
(~/.dsh/glm-balance.json by default):
{
"authorization": "your bigmodel.cn authorization header value",
"providerId": "zai-coding-cn",
"refreshMinutes": 30
}
Edit the file, or use Settings → GLM Balance. No restart needed for token changes; the indicator picks them up on the next poll (or click).
配置
Token 存放在 harness 主目录下的 glm-balance.json(默认 ~/.dsh/glm-balance.json):
{
"authorization": "bigmodel.cn 请求头里的 authorization 值",
"providerId": "zai-coding-cn",
"refreshMinutes": 30
}
可直接编辑该文件,或在 设置 → GLM 余额 分区填写;改完无需重启,下次轮询(或点击刷新)即生效。