feat(minimax-portal-auth): add regional endpoint selection and improve OAuth flow

- Support Global (api.minimax.io) and CN (api.minimaxi.com) endpoints
- Add endpoint selection prompt in onboard flow
- Add notification_message display after successful login
- Update documentation with Coding Plan details
- Fix API response field parsing (expired_in, base_resp.status_msg)
- Add debug logging for OAuth response and poll results
This commit is contained in:
xiaose committed 2026-01-28 22:42:31 +08:00
1 parent cdd03f465d
commit 2219152ccf
5 files changed
+67 -19

No files matched your search

+19 -1
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
moltbot gateway restart
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.