Open the Command Palette (Cmd+Shift+P / Ctrl+Shift+P)
Run z.ai Usage: Set API Key and paste your token
The status bar will update immediately
Commands
Command
Description
z.ai Usage: Set API Key
Enter and verify your z.ai API token
z.ai Usage: Clear API Key
Remove the stored API token
Settings
Setting
Type
Default
Description
zaiUsage.refreshInterval
number
60
Data refresh interval in seconds
zaiUsage.useIcon
boolean
true
Use z.ai icon (⬡) instead of text prefix z.ai:
Requirements
VS Code 1.85.0 or higher
A valid z.ai API token
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.