Real-time monitoring of GLM Coding Plan quota usage in the status bar. Supports bigmodel.cn and Z.ai platforms.
Features
Status Bar: Real-time 5h/weekly quota %, color-coded alerts (🟥≥90% / 🟡70-89% / 🟢<70%), always green when usage estimate is sufficient
Sidebar Panel: Dedicated activity bar panel with full usage stats, quota details, and trend charts
Multi-Model Stats: Per-model daily usage and 30-day usage trend display
Status Bar Click: Click to refresh quota data; hover tooltip shows 5h/weekly next-reset times in the same format as the sidebar (e.g. 5d 18h (09-27 Sun 08:52)), with clickable "Refresh data | View details"
MCP Usage: Monthly MCP tool call quota monitoring with progress bar & usage estimate (hidden when usage is 0)
Usage Estimate: Predict quota usage based on current consumption rate (shown when usage ≥ 50%)
Today Stats: Token usage, call count, peak data; switch to any day within the last 7 days
Token Activity: GitHub-style Token activity heatmap below Recent Usage (same credit-usage/activity data source as Coding Plan personal plan)
Trend Chart: Unicode bar chart for hourly usage trends
Quota Warning: Auto notification at ≥90%
Peak Hours Indicator: During peak hours (Mon–Fri 14:00–18:00 UTC+8), a lightning bolt icon appears at the end of the status bar usage text
Token Unit Toggle: Switch usage numbers between K/M/B and Chinese units (万/亿) via the sidebar "..." menu
Auto Refresh · Multi-Platform (ZHIPU/Z.ai) · i18n (EN/中文) · Encrypted API Key Storage
UI Preview
Status Bar
Sidebar Panel
Configuration
Configure in settings (Ctrl+,):
Setting
Description
Default
glmPlanUsage.baseUrl
API URL, select from dropdown
https://open.bigmodel.cn/api/anthropic
glmPlanUsage.autoRefresh
Auto refresh on startup
true
glmPlanUsage.refreshInterval
Auto refresh interval (seconds), 0 to disable
300
glmPlanUsage.enableRetry
Automatically retry on request failure (up to 3 retries)
true
Secure Storage
Set API Key
Use the command to set your API Key (encrypted storage, never written to files):
Open command palette (Ctrl+Shift+P)
Type GLM Plan Usage: Set API Key
Paste your API Key in the input dialog (password mode enabled for secure input)
Press Enter to save
⚡ Security Note: This command uses VS Code SecretStorage API. Your API Key will be encrypted by the OS keychain manager and never written to any config file or Git repository.
Supported API URLs
Platform
URL
ZHIPU
https://open.bigmodel.cn/api/anthropic
ZHIPU Dev
https://dev.bigmodel.cn/api/anthropic
Z.ai
https://api.z.ai/api/anthropic
Get API Key
ZHIPU Platform: Login to open.bigmodel.cn, get it from the API Keys page
Z.ai Platform: Login to z.ai, get it from account settings