2026-01-12 00:57:17 +00:00
---
2026-03-20 00:04:32 -04:00
summary: "Use MiniMax models in OpenClaw"
2026-01-12 00:57:17 +00:00
read_when:
2026-01-30 03:15:10 +01:00
- You want MiniMax models in OpenClaw
2026-01-12 05:49:02 +00:00
- You need MiniMax setup guidance
2026-01-31 16:04:03 -05:00
title: "MiniMax"
2026-01-12 00:57:17 +00:00
---
2026-01-31 21:13:13 +09:00
2026-01-12 00:57:17 +00:00
# MiniMax
2026-03-20 00:04:32 -04:00
OpenClaw's MiniMax provider defaults to **MiniMax M2.7** and keeps
**MiniMax M2.5** in the catalog for compatibility.
2026-01-12 00:57:17 +00:00
2026-03-20 00:04:32 -04:00
## Model lineup
2026-01-12 00:57:17 +00:00
2026-03-20 00:04:32 -04:00
- `MiniMax-M2.7` : default hosted text model.
- `MiniMax-M2.7-highspeed` : faster M2.7 text tier.
- `MiniMax-M2.5` : previous text model, still available in the MiniMax catalog.
- `MiniMax-M2.5-highspeed` : faster M2.5 text tier.
- `MiniMax-VL-01` : vision model for text + image inputs.
2026-01-12 05:49:02 +00:00
2026-01-12 00:57:17 +00:00
## Choose a setup
2026-03-17 23:55:24 -07:00
### MiniMax OAuth (Coding Plan) - recommended
2026-01-31 12:42:45 +01:00
**Best for:** quick setup with MiniMax Coding Plan via OAuth, no API key required.
Enable the bundled OAuth plugin and authenticate:
```bash
2026-03-16 02:26:11 +00:00
openclaw plugins enable minimax # skip if already loaded.
2026-01-31 20:45:28 +08:00
openclaw gateway restart # restart if gateway is already running
2026-03-16 05:50:48 +00:00
openclaw onboard --auth-choice minimax-portal
2026-01-31 12:42:45 +01:00
```
2026-01-31 21:13:13 +09:00
2026-01-31 12:42:45 +01:00
You will be prompted to select an endpoint:
2026-01-31 21:13:13 +09:00
2026-01-31 12:42:45 +01:00
- **Global** - International users (`api.minimax.io` )
- **CN** - Users in China (`api.minimaxi.com` )
2026-03-16 02:26:11 +00:00
See [MiniMax plugin README ](https://github.com/openclaw/openclaw/tree/main/extensions/minimax ) for details.
2026-01-31 12:42:45 +01:00
2026-03-20 00:04:32 -04:00
### MiniMax M2.7 (API key)
2026-01-12 00:57:17 +00:00
2026-01-12 05:09:59 +00:00
**Best for:** hosted MiniMax with Anthropic-compatible API.
2026-01-12 00:57:17 +00:00
2026-01-12 01:02:39 +00:00
Configure via CLI:
2026-01-31 21:13:13 +09:00
2026-01-30 03:15:10 +01:00
- Run `openclaw configure`
2026-01-12 01:02:39 +00:00
- Select **Model/auth**
2026-03-20 00:04:32 -04:00
- Choose a **MiniMax** auth option
2026-01-12 00:57:17 +00:00
```json5
{
env: { MINIMAX_API_KEY: "sk-..." },
2026-03-20 00:04:32 -04:00
agents: { defaults: { model: { primary: "minimax/MiniMax-M2.7" } } },
2026-01-12 00:57:17 +00:00
models: {
mode: "merge",
providers: {
minimax: {
2026-01-12 05:09:59 +00:00
baseUrl: "https://api.minimax.io/anthropic",
2026-01-12 00:57:17 +00:00
apiKey: "${MINIMAX_API_KEY}",
2026-01-12 05:09:59 +00:00
api: "anthropic-messages",
2026-01-12 00:57:17 +00:00
models: [
2026-03-20 00:04:32 -04:00
{
id: "MiniMax-M2.7",
name: "MiniMax M2.7",
reasoning: true,
input: ["text"],
cost: { input: 0.3, output: 1.2, cacheRead: 0.03, cacheWrite: 0.12 },
contextWindow: 200000,
maxTokens: 8192,
},
{
id: "MiniMax-M2.7-highspeed",
name: "MiniMax M2.7 Highspeed",
reasoning: true,
input: ["text"],
cost: { input: 0.3, output: 1.2, cacheRead: 0.03, cacheWrite: 0.12 },
contextWindow: 200000,
maxTokens: 8192,
},
2026-01-12 00:57:17 +00:00
{
2026-03-03 00:02:25 +00:00
id: "MiniMax-M2.5",
name: "MiniMax M2.5",
2026-03-03 00:40:06 +00:00
reasoning: true,
input: ["text"],
cost: { input: 0.3, output: 1.2, cacheRead: 0.03, cacheWrite: 0.12 },
contextWindow: 200000,
maxTokens: 8192,
},
{
id: "MiniMax-M2.5-highspeed",
name: "MiniMax M2.5 Highspeed",
reasoning: true,
2026-01-12 00:57:17 +00:00
input: ["text"],
2026-03-03 00:40:06 +00:00
cost: { input: 0.3, output: 1.2, cacheRead: 0.03, cacheWrite: 0.12 },
2026-01-12 00:57:17 +00:00
contextWindow: 200000,
2026-01-31 21:13:13 +09:00
maxTokens: 8192,
},
],
},
},
},
2026-01-12 00:57:17 +00:00
}
```
2026-03-20 00:04:32 -04:00
### MiniMax M2.7 as fallback (example)
2026-01-13 07:15:18 +00:00
2026-03-20 00:04:32 -04:00
**Best for:** keep your strongest latest-generation model as primary, fail over to MiniMax M2.7.
2026-03-03 00:02:25 +00:00
Example below uses Opus as a concrete primary; swap to your preferred latest-gen primary model.
2026-01-13 07:15:18 +00:00
```json5
{
env: { MINIMAX_API_KEY: "sk-..." },
agents: {
defaults: {
models: {
2026-03-03 00:02:25 +00:00
"anthropic/claude-opus-4-6": { alias: "primary" },
2026-03-20 00:04:32 -04:00
"minimax/MiniMax-M2.7": { alias: "minimax" },
2026-01-13 07:15:18 +00:00
},
model: {
2026-02-05 16:54:44 -05:00
primary: "anthropic/claude-opus-4-6",
2026-03-20 00:04:32 -04:00
fallbacks: ["minimax/MiniMax-M2.7"],
2026-01-31 21:13:13 +09:00
},
},
},
2026-01-13 07:15:18 +00:00
}
```
2026-01-12 05:57:49 +00:00
### Optional: Local via LM Studio (manual)
**Best for:** local inference with LM Studio.
2026-03-03 00:02:25 +00:00
We have seen strong results with MiniMax M2.5 on powerful hardware (e.g. a
2026-01-12 05:57:49 +00:00
desktop/server) using LM Studio's local server.
2026-01-30 03:15:10 +01:00
Configure manually via `openclaw.json` :
2026-01-12 05:57:49 +00:00
```json5
{
agents: {
defaults: {
2026-03-03 00:02:25 +00:00
model: { primary: "lmstudio/minimax-m2.5-gs32" },
models: { "lmstudio/minimax-m2.5-gs32": { alias: "Minimax" } },
2026-01-31 21:13:13 +09:00
},
2026-01-12 05:57:49 +00:00
},
models: {
mode: "merge",
providers: {
lmstudio: {
baseUrl: "http://127.0.0.1:1234/v1",
apiKey: "lmstudio",
api: "openai-responses",
models: [
{
2026-03-03 00:02:25 +00:00
id: "minimax-m2.5-gs32",
name: "MiniMax M2.5 GS32",
2026-03-13 02:23:42 +08:00
reasoning: true,
2026-01-12 05:57:49 +00:00
input: ["text"],
cost: { input: 0, output: 0, cacheRead: 0, cacheWrite: 0 },
contextWindow: 196608,
2026-01-31 21:13:13 +09:00
maxTokens: 8192,
},
],
},
},
},
2026-01-12 05:57:49 +00:00
}
```
2026-01-30 03:15:10 +01:00
## Configure via `openclaw configure`
2026-01-12 00:57:17 +00:00
Use the interactive config wizard to set MiniMax without editing JSON:
2026-01-31 21:13:13 +09:00
1. Run `openclaw configure` .
2. Select **Model/auth** .
2026-03-20 00:04:32 -04:00
3. Choose a **MiniMax** auth option.
2026-01-31 21:13:13 +09:00
4. Pick your default model when prompted.
2026-01-31 12:42:45 +01:00
2026-01-12 00:57:17 +00:00
## Configuration options
2026-01-12 06:02:39 +00:00
- `models.providers.minimax.baseUrl` : prefer `https://api.minimax.io/anthropic` (Anthropic-compatible); `https://api.minimax.io/v1` is optional for OpenAI-compatible payloads.
- `models.providers.minimax.api` : prefer `anthropic-messages` ; `openai-completions` is optional for OpenAI-compatible payloads.
2026-01-12 00:57:17 +00:00
- `models.providers.minimax.apiKey` : MiniMax API key (`MINIMAX_API_KEY` ).
- `models.providers.minimax.models` : define `id` , `name` , `reasoning` , `contextWindow` , `maxTokens` , `cost` .
- `agents.defaults.models` : alias models you want in the allowlist.
- `models.mode` : keep `merge` if you want to add MiniMax alongside built-ins.
## Notes
2026-01-12 05:49:02 +00:00
- Model refs are `minimax/<model>` .
2026-03-20 00:04:32 -04:00
- Default text model: `MiniMax-M2.7` .
- Alternate text models: `MiniMax-M2.7-highspeed` , `MiniMax-M2.5` , `MiniMax-M2.5-highspeed` .
2026-01-17 19:45:54 +00:00
- Coding Plan usage API: `https://api.minimaxi.com/v1/api/openplatform/coding_plan/remains` (requires a coding plan key).
2026-01-12 05:49:02 +00:00
- Update pricing values in `models.json` if you need exact cost tracking.
2026-02-06 10:08:59 -05:00
- Referral link for MiniMax Coding Plan (10% off): [https://platform.minimax.io/subscribe/coding-plan?code=DbXJTRClnb&source=link ](https://platform.minimax.io/subscribe/coding-plan?code=DbXJTRClnb&source=link )
2026-01-12 00:57:17 +00:00
- See [/concepts/model-providers ](/concepts/model-providers ) for provider rules.
2026-03-20 00:04:32 -04:00
- Use `openclaw models list` and `openclaw models set minimax/MiniMax-M2.7` to switch.
2026-01-13 07:58:47 +00:00
## Troubleshooting
2026-03-20 00:04:32 -04:00
### "Unknown model: minimax/MiniMax-M2.7"
2026-01-13 07:58:47 +00:00
This usually means the **MiniMax provider isn’ t configured** (no provider entry
and no MiniMax auth profile/env key found). A fix for this detection is in
**2026.1.12** (unreleased at the time of writing). Fix by:
2026-01-31 21:13:13 +09:00
2026-01-13 07:58:47 +00:00
- Upgrading to **2026.1.12** (or run from source `main` ), then restarting the gateway.
2026-03-20 00:04:32 -04:00
- Running `openclaw configure` and selecting a **MiniMax** auth option, or
2026-01-13 07:58:47 +00:00
- Adding the `models.providers.minimax` block manually, or
- Setting `MINIMAX_API_KEY` (or a MiniMax auth profile) so the provider can be injected.
Make sure the model id is **case‑ sensitive** :
2026-01-31 21:13:13 +09:00
2026-03-20 00:04:32 -04:00
- `minimax/MiniMax-M2.7`
- `minimax/MiniMax-M2.7-highspeed`
2026-03-03 00:02:25 +00:00
- `minimax/MiniMax-M2.5`
2026-03-03 00:40:06 +00:00
- `minimax/MiniMax-M2.5-highspeed`
2026-01-13 07:58:47 +00:00
Then recheck with:
2026-01-31 21:13:13 +09:00
2026-01-13 07:58:47 +00:00
```bash
2026-01-30 03:15:10 +01:00
openclaw models list
2026-01-13 07:58:47 +00:00
```