Introduction¶
When developing with DeepSeek Harness (DSH), calling the GLM (Zhipu bigmodel.cn) Coding Plan requires constant monitoring of the remaining quota. Manually checking web pages or configuration files is inefficient. The following introduces a DSH plugin designed to display GLM Coding Plan quota information directly within the Web UI.
What is it¶
dsh-glm-quota is a client-side plugin maintained by chiikin, specifically designed for the DSH Web UI to display the quota status of Zhipu bigmodel.cn subscription plans.
Core Features¶
- Zero Configuration: Displayed only when the selected model provider is
zai-coding-cn. - No org/project required for Personal Plans: Tested to verify that querying quota requires only an API Key, without needing organizational context.
- Event-Driven Refresh: No timer polling; relies on host cache with a 60s TTL.
- Error Visibility: Displays specific messages for unconfigured Keys, missing Coding Plans, or upstream exceptions.
Installation¶
Install using the official CLI:
dsh plugin --profile web add dsh-glm-quota
Usage¶
- Display Location: Shows a “Remaining Quota” chip on the left side of the input box tool row and model selector.
- Interaction Details: Hovering over the chip expands details, including 5-hour window / weekly window progress bars (≥60% Green / 20-59% Orange / <20% Red), plan expiration time, auto-renewal status, and cash balance.
- Refresh Mechanism: Manual refresh button (with a 30-second cooldown); the floating window redraws locally every 30 seconds. Refreshes are triggered by mount, turn end, or model switching.
Notes¶
- The upstream relies on a non-public interface of the Zhipu monitor/biz gateway; official updates may lead to missing fields.
- Only supports the China mainland site (open.bigmodel.cn / bigmodel.cn).
- Team plans can theoretically be queried via a
type=2fallback, but team context headers (org/project) are not implemented.
Links¶
- GitHub: https://github.com/chiikin/dsh-glm-quota
- DSH Directory: https://www.skillhub.cn/plugins/chiikin/dsh-glm-quota