Settings per tool
Every tool below needs the same three values. Create the key on the homepage first.
- Cline, Roo Code, Kilo Code: API Provider “OpenAI Compatible”, Base URL, API Key, Model ID minimax-m4-pro.
- Continue: provider openai with apiBase set to the base URL; use minimax-m4 for the autocomplete role.
- Aider: export OPENAI_API_BASE and OPENAI_API_KEY, then aider --model openai/minimax-m4-pro --weak-model openai/minimax-m4.
- OpenCode: a provider entry using @ai-sdk/openai-compatible with both model IDs.
Keeping agent runs affordable
Maximum reasoning on every step adds up in long agent loops. Use M4 Pro where the decision matters and the cheaper standard model elsewhere.
- Plan with Pro. Use minimax-m4-pro for the planning or architect role.
- Edit with standard M4. Use minimax-m4 at medium effort for routine file edits and summaries.
- Cap each step. Set a max_tokens limit in the tool so one step cannot run away.