Show your MiniMax Token Plan quota (5-hour and weekly) right inside VS Code — status bar and a detail dashboard with a usage history chart.
📸 Screenshots
Status bar (bottom-right)
Detail dashboard
Settings
Features
Status bar (bottom-right): live 5-hour and weekly used %, color-coded (green / yellow / red), with reset countdowns on hover.
Detail dashboard: big usage bars, reset countdowns, historical chart of usage over time, auto-refreshing live countdowns. Open it from the status bar or via "MiniMax Usage: Open Usage Dashboard".
Command palette:MiniMax Usage: Set API Key, Refresh Now, Open Usage Dashboard, Open Billing Page, …
Private by design: API key in OS keychain (SecretStorage); no telemetry, no analytics, zero runtime npm dependencies.
📦 Installation
Install the MiniMax Usage extension from the VS Code Marketplace (search "MiniMax Usage" or run ext install Hukilow.minimax-usage).
Open the Command Palette (Ctrl+Shift+P / Cmd+Shift+P).
Run MiniMax Usage: Set API Key and paste your Subscription Key from Billing → Token Plan.
The status bar should populate within a few seconds.
A Subscription Key is the Team-level key issued when you subscribe to MiniMax Token Plan. It is not the same as a pay-as-you-go Open Platform API key.
⚙️ Settings
Setting
Default
Description
minimaxUsage.refreshIntervalSeconds
60
Polling interval (30–600s).
minimaxUsage.statusBarDisplayMode
compact
compact (two panels) or split (inline countdown).
minimaxUsage.warningThreshold
70
Used-% at which the status bar turns yellow.
minimaxUsage.errorThreshold
90
Used-% at which the status bar turns red.
minimaxUsage.historySampleLimit
100
History ring-buffer size.
minimaxUsage.debug
false
Verbose logs in Output channel.
🔐 Privacy
Reads your Token Plan usage (one outbound HTTPS call to api.minimax.io).
Never writes to your MiniMax account, never calls LLM APIs, never sends data anywhere else.
API key is stored locally in your OS keychain via VS Code's SecretStorage API.
No telemetry, no analytics, no error reporting service.
Zero runtime npm dependencies (CVE surface = 0).
See SECURITY.md for how to report vulnerabilities.
🛠️ Development
git clone https://github.com/Hukilow/minimax-usage.git
cd minimax-usage
npm install
npm run watch # in one terminal
# In VS Code: Run > "Run Extension" (uses .vscode/launch.json)
Commands
Script
Purpose
npm run build
Bundle the extension (Node target).
npm run build:web
Bundle the webview (browser target).
npm run watch
Rebuild on change.
npm run typecheck
tsc --noEmit.
npm run lint
ESLint.
npm test
Vitest unit tests.
npm run package
Build + bundle + vsce package (produces .vsix).
Project layout
src/
├── extension.ts # activate / deactivate
├── api/ # HTTP client, QuotaService, types
├── auth/ # SecretStorage wrapper
├── ui/ # status bar, tree view, webview
├── commands/ # command palette handlers
├── utils/ # time, logger, regions
├── webview/ # webview-side TS (bundled separately)
└── test/ # vitest unit tests