GLM Usage Monitor
Monitor your GLM Coding Plan usage directly in Visual Studio Code

Features
- Real-time Usage Tracking: Monitor your GLM Coding Plan token usage at a glance
- Status Bar Integration: See current usage statistics in your status bar
- Auto-Refresh: Configurable auto-refresh interval (default: 10 minutes)
- Manual Refresh: Quick refresh command to get the latest data
- Secure Credential Storage: API key stored securely in VSCode's secret storage
- Time Window Analysis: View usage data with customizable time windows (24h, 7d, 30d)
Requirements
- Visual Studio Code 1.80.0 or higher
- GLM Coding Plan API credentials
Installation
- Open Visual Studio Code
- Go to Extensions (Ctrl+Shift+X)
- Search for "GLM Usage Monitor"
- Click Install
Quick Start
Configure API Credentials
- Open Command Palette (Ctrl+Shift+P / Cmd+Shift+P)
- Run "GLM Usage Monitor: Configure"
- Enter your API Base URL (default:
https://api.z.ai/api/anthropic)
- Enter your API Key
View Your Usage
- Click the status bar item or run "Show GLM Usage Panel" command
- View your current usage statistics
Commands
| Command |
Description |
glmUsage.showUsage |
Show GLM Usage Panel |
glmUsage.refresh |
Refresh usage data |
glmUsage.configure |
Configure API credentials |
glmUsage.clearCredentials |
Clear stored API credentials |
Settings
| Setting |
Type |
Default |
Description |
glmUsage.baseUrl |
string |
https://api.z.ai/api/anthropic |
GLM API base URL |
glmUsage.refreshInterval |
number |
600000 |
Auto-refresh interval in milliseconds |
glmUsage.autoRefresh |
boolean |
true |
Enable/disable auto-refresh |
Privacy & Security
- Your API key is stored securely in VSCode's secret storage
- No usage data is sent to any third-party services
- All API calls are made directly to the configured GLM API endpoint
License
MIT License - see LICENSE for details
Support
For issues, feature requests, or questions, please visit the GitHub repository
Changelog
See CHANGELOG.md for version history
| |