阿里云 千文模型 龙虾切换
{
"meta": {
"lastTouchedVersion": "2026.2.1",
"lastTouchedAt": "2026-02-03T08:20:00.000Z"
},
"models": {
"mode": "merge",
"providers": {
"bailian": {
"baseUrl": "https://dashscope.aliyuncs.com/compatible-mode/v1",
"apiKey": "DASHSCOPE_API_KEY",
"api": "openai-completions",
"models": [
{
"id": "qwen3.5-plus",
"name": "qwen3.5-plus",
"reasoning": false,
"input": ["text", "image"],
"contextWindow": 1000000,
"maxTokens": 65536
},
{
"id": "qwen3-coder-next",
"name": "qwen3-coder-next",
"reasoning": false,
"input": ["text"],
"contextWindow": 262144,
"maxTokens": 65536
}
]
}
}
},
"agents": {
"defaults": {
"model": {
"primary": "bailian/qwen3.5-plus"
},
"models": {
"bailian/qwen3.5-plus": {},
"bailian/qwen3-coder-next": {}
}
}
},
"gateway": {
"mode": "local",
"auth": {
"mode": "token",
"token": "test123"
}
}
}
豆包给出的建议(确实有效)
豆包给出的建议(确实有效)
✅ 正确修改方案(按你的目标对齐)
目标:让 custom 提供者下的 qwen3.5-plus 成为默认模型
把 agents.defaults 部分改成这样:
json
"agents": {
"defaults": {
"model": {
"primary": "custom/qwen3.5-plus" // 这里要和 models.providers.custom 里的 id 对应
},
"models": {
"custom/qwen3.5-plus": { // 键名必须是 [提供者]/[模型id]
"alias": "qwen3.5-plus"
}
},
// ... 其他配置不变
}
}
按阿里云文档的正确改法(两种方案)
方案一:继续用 custom 提供者(最简单,不用改 providers)
把所有 bailian/ 前缀改成 custom/,和你已有的 custom 提供者对齐:
json
"agents": {
"defaults": {
"model": {
"primary": "custom/qwen3.5-plus" // 把 bailian/ 改成 custom/
},
"models": {
"custom/qwen3.5-plus": { // 键名保持 custom/ 开头
"alias": "qwen3.5-plus"
}
}
}
}
优点:不用动
models.providers里的custom配置,直接生效。
方案二:新增 bailian 提供者(完全对齐阿里云文档)
如果你想严格用 bailian/ 前缀,需要先在 models.providers 里加一个 bailian 配置:
json
"models": {
"mode": "merge",
"providers": {
"custom": { ... }, // 保留你原来的 custom 配置
"bailian": { // 新增 bailian 提供者
"baseUrl": "https://dashscope.aliyuncs.com/compatible-mode/v1",
"apiKey": "sk-9ade1ee425fxxxxx8c72470bf302",
"api": "openai-completions",
"models": [
{
"id": "qwen3.5-plus",
"name": "qwen3.5-plus",
"reasoning": false,
"input": ["text"],
"cost": { "input": 0, "output": 0 },
"contextWindow": 128000,
"maxTokens": 4096
},
{
"id": "qwen3-coder-next",
"name": "qwen3-coder-next",
"reasoning": false,
"input": ["text"],
"cost": { "input": 0, "output": 0 },
"contextWindow": 262144,
"maxTokens": 65536
}
]
}
}
},
"agents": {
"defaults": {
"model": {
"primary": "bailian/qwen3.5-plus" // 现在可以用 bailian/ 前缀了
},
"models": {
"bailian/qwen3.5-plus": { "alias": "qwen3.5-plus" },
"bailian/qwen3-coder-next": { "alias": "qwen3-coder-next" }
}
}
}
腾讯原配置 参考
{
"meta": {
"lastTouchedVersion": "0.1.8-fix.3",
"lastTouchedAt": "2026-03-13T00:58:47.029Z"
},
"wizard": {
"lastRunAt": "2026-03-12T14:42:38.235Z",
"lastRunVersion": "0.1.8-fix.3",
"lastRunCommand": "onboard",
"lastRunMode": "local"
},
"models": {
"mode": "merge",
"providers": {
"custom": {
"baseUrl": "https://api.lkeap.cloud.tencent.com/coding/v3",
"apiKey": "sk-sp-0vEtOVHF4LOp5xxxxx5kTj1dq3eYTkXgvQl6n",
"api": "openai-completions",
"models": [
{
"id": "tc-code-latest",
"name": "tc-code-latest",
"reasoning": false,
"input": [
"text"
],
"cost": {
"input": 0,
"output": 0,
"cacheRead": 0,
"cacheWrite": 0
},
"contextWindow": 128000,
"maxTokens": 4096
}
]
}
}
},
"agents": {
"defaults": {
"model": {
"primary": "custom/tc-code-latest"
},
"models": {
"custom/tc-code-latest": {
"alias": "tc-code-latest"
}
},
"workspace": "C:\Users\Administrator\.openclaw\workspace",
"compaction": {
"mode": "safeguard"
},
"maxConcurrent": 4,
"subagents": {
"maxConcurrent": 8
}
}
},
"messages": {
"ackReactionScope": "group-mentions"
},
"commands": {
"native": "auto",
"nativeSkills": "auto",
"restart": true
},
"channels": {
"qqbot": {
"enabled": true,
"appId": "1903226226",
"clientSecret": "8c7c8fCkJsS3eGsV9nS8oVDveN7sdPCz",
"markdownSupport": true,
"allowFrom": [
"" ], "accounts": { "bot2": { "enabled": true, "allowFrom": [ ""
],
"appId": "1903207629",
"clientSecret": "O3jP5lR7nUBsZGxeM4mUCucL4nWFyhRB"
}
}
}
},
"gateway": {
"port": 18789,
"mode": "local",
"bind": "loopback",
"auth": {
"mode": "token",
"token": "8c6003d16a9eed1624124097979aa4e41732b8a571c0fd8d"
},
"tailscale": {
"mode": "off",
"resetOnExit": false
}
},
"skills": {
"install": {
"nodeManager": "npm"
}
},
"plugins": {
"entries": {
"qqbot": {
"enabled": true
}
},
"installs": {
"qqbot": {
"source": "npm",
"spec": "@sliverp/qqbot@latest",
"installPath": "C:\Users\Administrator\.openclaw\extensions\qqbot",
"version": "1.5.4",
"installedAt": "2026-03-12T14:41:44.545Z"
}
}
}
}
阿里云 切换成功模型
{
"meta": {
"lastTouchedVersion": "0.1.8-fix.3",
"lastTouchedAt": "2026-03-13T00:58:47.029Z"
},
"wizard": {
"lastRunAt": "2026-03-12T14:42:38.235Z",
"lastRunVersion": "0.1.8-fix.3",
"lastRunCommand": "onboard",
"lastRunMode": "local"
},
"models": {
"mode": "merge",
"providers": {
"custom": {
"baseUrl": "https://dashscope.aliyuncs.com/compatible-mode/v1",
"apiKey": "sk-9ade1eexxxxxc72470bf302",
"api": "openai-completions",
"models": [
{
"id": "qwen3.5-plus",
"name": "qwen3.5-plus",
"reasoning": false,
"input": [
"text"
],
"cost": {
"input": 0,
"output": 0,
"cacheRead": 0,
"cacheWrite": 0
},
"contextWindow": 128000,
"maxTokens": 4096
}
]
}
}
},
"agents": {
"defaults": {
"model": {
"primary": "custom/qwen3.5-plus"
},
"models": {
"custom/qwen3.5-plus": {
"alias": "qwen3.5-plus"
}
},
"workspace": "C:\\Users\\Administrator\\.openclaw\\workspace",
"compaction": {
"mode": "safeguard"
},
"maxConcurrent": 4,
"subagents": {
"maxConcurrent": 8
}
}
},
"messages": {
"ackReactionScope": "group-mentions"
},
"commands": {
"native": "auto",
"nativeSkills": "auto",
"restart": true
},
"channels": {
"qqbot": {
"enabled": true,
"appId": "1903226226",
"clientSecret": "8c7c8fCkJsS3eGsV9nS8oVDveN7sdPCz",
"markdownSupport": true,
"allowFrom": [
"*"
],
"accounts": {
"bot2": {
"enabled": true,
"allowFrom": [
"*"
],
"appId": "1903207629",
"clientSecret": "O3jP5lR7nUBsZGxeM4mUCucL4nWFyhRB"
}
}
}
},
"gateway": {
"port": 18789,
"mode": "local",
"bind": "loopback",
"auth": {
"mode": "token",
"token": "8c6003d16a9eed1624124097979aa4e41732b8a571c0fd8d"
},
"tailscale": {
"mode": "off",
"resetOnExit": false
}
},
"skills": {
"install": {
"nodeManager": "npm"
}
},
"plugins": {
"entries": {
"qqbot": {
"enabled": true
}
},
"installs": {
"qqbot": {
"source": "npm",
"spec": "@sliverp/qqbot@latest",
"installPath": "C:\\Users\\Administrator\\.openclaw\\extensions\\qqbot",
"version": "1.5.4",
"installedAt": "2026-03-12T14:41:44.545Z"
}
}
}
}