Display your MiniMax Token Plan usage percentage directly in the VS Code status bar
Most existing VS Code extensions for AI usage tracking don't support MiniMax's token plan API. This extension fills that gap by directly calling https://www.minimax.io/v1/token_plan/remains to show your real-time usage in the status bar.
- Shows token quota usage (e.g.
45% (2h30m)) or remaining tokens (e.g.55% (2h30m)) in the status bar - Displays time remaining until quota resets when available
- Automatically refreshes at a configurable interval
- Secure API key storage via VS Code Secret Storage
Status bar examples:
| Situation | Display |
|---|---|
| Authenticated, usage available | ⚡ MiniMax 45% (2h30m) |
| Authenticated, no reset time | ⚡ MiniMax 45% |
| Authenticated, remaining mode | ⚡ MiniMax 55% (2h30m) |
| API key not set | 🔑 MiniMax: Set API Key |
| Error / fetch failed | ⚠️ MiniMax: Error |
- Get your Token Plan Key from the MiniMax Platform
- Open the Command Palette (
Cmd+Shift+P/Ctrl+Shift+P) - Run MiniMax Usage: Set API Key and paste your token
- The status bar will update immediately
| Command | Description |
|---|---|
MiniMax Usage: Set API Key |
Enter and verify your MiniMax Token Plan Key |
MiniMax Usage: Clear API Key |
Remove the stored API token |
MiniMax Usage: Refresh |
Manually refresh usage data |
MiniMax Usage: Show Details |
Display detailed usage information |
| Setting | Type | Default | Description |
|---|---|---|---|
minimaxUsage.refreshIntervalMinutes |
number |
5 |
Data refresh interval in minutes |
- VS Code 1.85.0 or higher
- A valid MiniMax Token Plan Key
- Download the
.vsixfile from Releases - In VS Code: go to Extensions → press ... (three dots) → Install from VSIX...
- Select the downloaded
.vsixfile - Press Reload Window when prompted
code --install-extension minimax-usage-x.x.x.vsix# Install vsce (once)
npm install -g vsce
# Package extension
vsce packageThis creates minimax-usage-X.X.X.vsix ready for installation.
- Endpoint:
GET https://www.minimax.io/v1/token_plan/remains - Auth:
Authorization: Bearer <Token Plan Key>
Warning
This extension uses an internal MiniMax API (www.minimax.io/v1/token_plan/remains) which is not officially documented. The API may change without notice, which could break this extension.
MIT
