VS Code extension
GLM Quota
v0.5.2 ยท CC BY-NC-SA 4.0
Shows your z.ai GLM Coding Plan quota usage in the VS Code status bar: remaining percentage in the 5-hour and weekly windows. Your API key is stored in VS Code's secret storage and is only ever sent to the configured z.ai host.
Setup
Install, then run GLM Quota: Set API Key (or click the status bar item) and paste a z.ai API key from your own GLM Coding Plan account. Create one at z.ai โ API Keys. Set zaiQuota.host to open.bigmodel.cn if your key was issued for that host.
Source and user guide on GitHub โ
Install
Download the .vsix below - say it lands in your Downloads folder - then install it from a terminal.
Windows (PowerShell or CMD - if code isn't recognised yet, launch VS Code once, close it, and reopen the terminal):
cd %USERPROFILE%\Downloads code --install-extension zai-quota-0.5.2.vsix
macOS / Linux:
cd ~/Downloads code --install-extension zai-quota-0.5.2.vsix
No terminal needed: in VS Code, open the Extensions view (Ctrl+Shift+X), click the ... menu at the top of the panel, choose Install from VSIX... and pick the downloaded file.
Restart VS Code (or run Developer: Reload Window) and the quota item appears in the status bar.
Download zai-quota-0.5.2.vsix SHA-256 checksumChangelog
- 0.5.2 - Public source, CC BY-NC-SA 4.0 licensing and hardened release packaging/credential boundaries.
- 0.5.1 - Sends the key only to the configured host, protects the machine-scoped credential destination, and settles interrupted usage reads before retrying.
- 0.5.0 - Shares the hardened status-bar monitor and refresh lifecycle with the sibling quota extensions.
- 0.4.0 - Adds a machine-scoped
zaiQuota.hostsetting forapi.z.aioropen.bigmodel.cn; the key is no longer sent to the other host as a fallback. - 0.3.0 - Double-click the status bar item (or run GLM Quota: Open Usage Page) to open the z.ai usage page; a single click still refreshes.
- 0.2.1 - Harder refresh: transient network failures and gateway hiccups are retried, and the key is retried with and without the
Bearerprefix on 401/403. - 0.2.0 - Switched to the quota/limit endpoint; windows are identified by shape (not field order) with fallback across
api.z.aiandopen.bigmodel.cn. - 0.1.1 - Tries several candidate usage routes in order until one returns a usable body.
- 0.1.0 - Initial release: 5-hour and weekly GLM Coding Plan quota in the status bar; API key stored in VS Code's secret storage.
