Appearance
Qwen / Model Studio(阿里云)
Model Studio 提供对阿里云模型的访问,包括通义千问及平台上托管的第三方模型。支持两种计费方案:Standard(按量付费)和 Coding Plan(订阅制)。
- Provider:
modelstudio - Auth:
MODELSTUDIO_API_KEY - API:OpenAI 兼容
快速上手
Standard(按量付费)
bash
# 中国区端点
openclaw onboard --auth-choice modelstudio-standard-api-key-cn
# 全球/国际端点
openclaw onboard --auth-choice modelstudio-standard-api-keyCoding Plan(订阅制)
bash
# 中国区端点
openclaw onboard --auth-choice modelstudio-api-key-cn
# 全球/国际端点
openclaw onboard --auth-choice modelstudio-api-key完成 onboard 后,设置默认模型:
json5
{
agents: {
defaults: {
model: { primary: "modelstudio/qwen3.5-plus" },
},
},
}套餐与端点对照表
| 套餐 | 区域 | auth-choice 参数 | 端点 |
|---|---|---|---|
| Standard(按量付费) | 中国 | modelstudio-standard-api-key-cn | dashscope.aliyuncs.com/compatible-mode/v1 |
| Standard(按量付费) | 全球 | modelstudio-standard-api-key | dashscope-intl.aliyuncs.com/compatible-mode/v1 |
| Coding Plan(订阅) | 中国 | modelstudio-api-key-cn | coding.dashscope.aliyuncs.com/v1 |
| Coding Plan(订阅) | 全球 | modelstudio-api-key | coding-intl.dashscope.aliyuncs.com/v1 |
Provider 会根据你的 auth choice 自动选择端点。如需自定义,可在配置中覆盖 baseUrl。
获取 API Key
可用模型
- qwen3.5-plus(默认)—— Qwen 3.5 Plus
- qwen3-coder-plus、qwen3-coder-next —— Qwen 编程专用模型
- GLM-5 —— 通过阿里云接入的 GLM 系列
- Kimi K2.5 —— 通过阿里云接入的 Moonshot AI
- MiniMax-M2.5 —— 通过阿里云接入的 MiniMax
部分模型(qwen3.5-plus、kimi-k2.5)支持图像输入,上下文窗口从 200K 到 1M tokens 不等。
环境变量说明
如果 Gateway 以守护进程(launchd/systemd)方式运行,需确保 MODELSTUDIO_API_KEY 对该进程可见(例如写入 ~/.openclaw/.env 或通过 env.shellEnv 配置)。让你的龙虾持续运行,Key 不能丢。