This guide configures MiniMax Coding Plan usage tracking in onWatch.
- Active MiniMax Coding Plan subscription
- onWatch v2.11+
- Open https://platform.minimax.io
- Go to API Keys
- Create or copy an API key
Add this to your environment file (~/.onwatch/.env for local installs):
MINIMAX_API_KEY=sk-cp-your_key_hereRegion (optional, default: global):
MINIMAX_REGION=cn # Use MiniMax CN endpoint (www.minimaxi.com)Set MINIMAX_REGION=cn if you're using MiniMax from China; otherwise omit for the global endpoint (api.minimax.io).
You can apply the new key without full restart:
- Open Settings -> Providers
- Click Reload Providers From .env
- Enable MiniMax telemetry and dashboard toggle
Or restart onWatch:
onwatch stop
onwatch- Open the dashboard and switch to the MiniMax tab
- Check that quota cards and history begin populating
- In Settings, confirm MiniMax status shows configured/polling
- MiniMax endpoint used by onWatch:
https://api.minimax.io/v1/api/openplatform/coding_plan/remains - Auth is sent as a
Bearertoken. - onWatch stores usage snapshots locally in SQLite.