feat: add MiniMax OAuth plugin (#4521) (thanks @Maosghoul)

This commit is contained in:
Peter Steinberger
2026-01-31 12:42:45 +01:00
parent b9b94715fa
commit 1287328b6f
21 changed files with 795 additions and 38 deletions

View File

@@ -35,7 +35,24 @@ MiniMax highlights these improvements in M2.1:
## Choose a setup
### MiniMax M2.1 — recommended
### MiniMax OAuth (Coding Plan) — recommended
**Best for:** quick setup with MiniMax Coding Plan via OAuth, no API key required.
Enable the bundled OAuth plugin and authenticate:
```bash
moltbot plugins enable minimax-portal-auth # skip if already loaded.
moltbot gateway restart # restart if gateway is already running
moltbot onboard --auth-choice minimax-portal
```
You will be prompted to select an endpoint:
- **Global** - International users (`api.minimax.io`)
- **CN** - Users in China (`api.minimaxi.com`)
See [MiniMax OAuth plugin README](https://github.com/moltbot/moltbot/tree/main/extensions/minimax-portal-auth) for details.
### MiniMax M2.1 (API key)
**Best for:** hosted MiniMax with Anthropic-compatible API.
@@ -143,6 +160,7 @@ Use the interactive config wizard to set MiniMax without editing JSON:
3) Choose **MiniMax M2.1**.
4) Pick your default model when prompted.
## Configuration options
- `models.providers.minimax.baseUrl`: prefer `https://api.minimax.io/anthropic` (Anthropic-compatible); `https://api.minimax.io/v1` is optional for OpenAI-compatible payloads.