Display your GLM Coding Plan 5-hour, weekly, and MCP usage directly in the VS Code status bar
Features
Shows all token quota windows side by side: the 5-hour window, the weekly window, and the MCP quota (e.g. ⬡ 45.3% (2h30m) | Week: 12.4% (3d12h) | MCP: 5.2% (12d4h))
Displays time remaining until each quota resets when available
Condensed display style for a minimal status bar label (e.g. ⬡ 45% 2h30m · W 12% 3d12h)
Shows usage or remaining tokens (displayMode)
The weekly and MCP windows can each be hidden entirely (showWeekly, showMcp)
Automatically refreshes at a configurable interval
The ⬡ icon is the z.ai icon. Set zaiUsagePlus.useIcon: false to display z.ai: as a text prefix instead. The tooltip always shows the full details (percentages, reset countdowns, refresh interval) regardless of display style.
Open the Command Palette (Cmd+Shift+P / Ctrl+Shift+P)
Run z.ai Usage Plus: Set API Key and paste your token
The status bar will update immediately
Commands
Command
Description
z.ai Usage Plus: Set API Key
Enter and verify your z.ai API token
z.ai Usage Plus: Clear API Key
Remove the stored API token
z.ai Usage Plus: Refresh Status Bar
Refresh usage data immediately
Settings
Setting
Type
Default
Description
zaiUsagePlus.refreshInterval
number
60
Data refresh interval in seconds
zaiUsagePlus.useIcon
boolean
true
Use z.ai icon (⬡) instead of text prefix z.ai:
zaiUsagePlus.displayMode
string
usage
Display mode: "usage" (e.g. 75.3%) or "remaining" (e.g. 24.7%)
zaiUsagePlus.displayStyle
string
full
Label verbosity: "full" (45.3% (2h30m) \| Week: 12.4% (3d12h)), "condensed" (45% 2h30m · W 12% 3d12h), or "ultra" (45% · W 12%)
zaiUsagePlus.showWeekly
boolean
true
Show the weekly usage alongside the 5-hour usage
zaiUsagePlus.showMcp
boolean
true
Show the MCP quota alongside the other windows
zaiUsagePlus.statusBarPriority
number
10000
Status bar item priority (higher = further left; requires a window reload)
Requirements
VS Code 1.85.0 or higher
A valid z.ai API token
Credits
Based on vscode-zai-usage by @j4rviscmd (MIT). Weekly usage display, display-style and weekly-visibility settings added by this fork.
[!NOTE]
This is a fork of j4rviscmd/vscode-zai-usage — all credit for the original extension goes to @j4rviscmd. This fork adds weekly and MCP quota display and extra display settings under the name Z.ai GLM Usage Plus.
License
[!WARNING]
This extension uses an internal z.ai API (api.z.ai/api/monitor/usage/quota/limit) which is not officially documented. The API may change without notice, which could break this extension.