knowledge-vault/discussions/technology/OpenClaw/初始化工作/_MinimaxCodeingPlan.md

104 lines
2.5 KiB
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# MiniMax OAuth编程计划— 推荐
**适用于:** 通过 OAuth 快速设置 MiniMax 编程计划,无需 API 密钥。 启用内置 OAuth 插件并进行认证:
复制
```
openclaw plugins enable minimax-portal-auth # 如果已加载则跳过
openclaw gateway restart # 如果 Gateway 网关已在运行则重启
openclaw onboard --auth-choice minimax-portal
```
系统会提示你选择端点:
* **Global** - 国际用户(`api.minimax.io`
* **CN** - 中国用户(`api.minimaxi.com`
---
```json
"auth": {
"profiles": {
"minimax-portal:default": {
"provider": "minimax-portal",
"mode": "oauth"
}
}
},
...
"minimax-portal": {
"baseUrl": "https://api.minimaxi.com/anthropic",
"apiKey": "minimax-oauth",
"api": "anthropic-messages",
"models": [
{
"id": "MiniMax-M2.5",
"name": "MiniMax M2.5",
"reasoning": false,
"input": [
"text"
],
"cost": {
"input": 0,
"output": 0,
"cacheRead": 0,
"cacheWrite": 0
},
"contextWindow": 200000,
"maxTokens": 8192
},
{
"id": "MiniMax-M2.5-highspeed",
"name": "MiniMax M2.5 Highspeed",
"reasoning": true,
"input": [
"text"
],
"cost": {
"input": 0,
"output": 0,
"cacheRead": 0,
"cacheWrite": 0
},
"contextWindow": 200000,
"maxTokens": 8192
},
{
"id": "MiniMax-M2.5-Lightning",
"name": "MiniMax M2.5 Lightning",
"reasoning": true,
"input": [
"text"
],
"cost": {
"input": 0,
"output": 0,
"cacheRead": 0,
"cacheWrite": 0
},
"contextWindow": 200000,
"maxTokens": 8192
}
]
}
"agents": {
"defaults": {
"model": {
"primary": "minimax-portal/MiniMax-M2.5-highspeed"
},
"models": {
"minimax-portal/MiniMax-M2.5": {
"alias": "minimax-m2.5"
},
"minimax-portal/MiniMax-M2.5-highspeed": {
"alias": "minimax-m2.5-highspeed"
},
"minimax-portal/MiniMax-M2.5-Lightning": {
"alias": "minimax-m2.5-lightning"
}
},