Manage Alibaba Cloud beebot (Chatbot) via OpenAPI/SDK. Use whenever the user asks to configure, query, or troubleshoot Alibaba Cloud chatbot resources, inclu...
编程
Alibaba Cloud Model Setup
通过引导脚本把阿里云百炼接入 OpenClaw,并自动校验 API Key 与备份配置。
它能做什么
该技能通过交互式 Python 脚本,将阿里云百炼配置为 OpenClaw 的模型提供商。支持两种计费方式:按量付费与 Coding Plan(订阅制),共覆盖五个站点端点(按量付费含中国、国际、美国;Coding Plan 含中国与国际)。脚本会校验 API Key、收集主用模型选择并可设为默认;写入前为原配置文件生成带时间戳的备份,写入后校验 JSON 合法性,并保留其他无关配置段(models.mode 设为 merge)。同时提供基于参数的旗标式非交互调用模式,可列出可用模型而不写入配置。
什么时候用它
- 首次将百炼配置为 OpenClaw 模型提供商
- 在按量付费与 Coding Plan 之间切换
- 把 Qwen 或 Coding Plan 第三方模型加入现有配置
- 在中国站与国际站之间迁移百炼配置
技能文档
Alibaba Cloud Model Setup (Bailian)
Overview
Use this skill to configure Alibaba Cloud Bailian as an OpenClaw model provider with minimal manual editing. Supports both Pay-As-You-Go (按量付费) and Coding Plan (订阅制) subscription types.
Key Features
1️⃣ Fixed Provider Name
- Provider:
bailian(not "balian" - typo fixed!)
2️⃣ 5 Site Options
| Plan Type | Site | Base URL |
|---|---|---|
| Pay-As-You-Go | China (CN) | https://dashscope.aliyuncs.com/compatible-mode/v1 |
| Pay-As-You-Go | International (INTL) | https://dashscope-intl.aliyuncs.com/compatible-mode/v1 |
| Pay-As-You-Go | US (US) | https://dashscope-us.aliyuncs.com/compatible-mode/v1 |
| Coding Plan | China (CN) | https://coding.dashscope.aliyuncs.com/v1 |
| Coding Plan | International (INTL) | https://coding-intl.dashscope.aliyuncs.com/v1 |
3️⃣ Flagship Model Series (4 series, 2-3 generations each)
Qwen-Max (Best Performance):
qwen-maxqwen-max-2025-01-25
Qwen-Plus (Balanced):
qwen-plusqwen-plus-2025-01-15
Qwen-Flash (Fast & Cost-Effective):
qwen-flashqwen-flash-2025-01-15
Qwen-Coder (Code Specialist):
qwen3-coder-plusqwen3-coder-nextqwen2.5-coder-32b-instruct
4️⃣ Latest Qwen Models (Available for All Users)
qwen3.5-plusqwen3-max-2026-01-23
5️⃣ Coding Plan Exclusive Models (Third-Party)
MiniMax-M2.5(MiniMax)glm-5/glm-4.7(智谱 AI)kimi-k2.5(月之暗面)
Total:
- Pay-As-You-Go: 11 models (4 flagship series + 2 latest Qwen)
- Coding Plan: 15 models (Pay-As-You-Go + 4 third-party exclusive)
Workflow
- Confirm plan type: Pay-As-You-Go or Coding Plan
- Select site: Based on plan type (3 options for Pay-As-You-Go, 2 for Coding Plan)
- Run interactive script to collect:
- API key (with validation)
- API key storage mode (env-var recommended or inline)
- Primary model selection
- Whether to set as default model
- Validate API key against selected site before config write
- Backup existing config before modification
- Update config with provider, models, and defaults
- Validate JSON and report final status
Run Script
Execute:
python3 scripts/alibaba_cloud_model_setup.py
Optional flags for non-interactive use:
python3 scripts/alibaba_cloud_model_setup.py \
--plan-type coding \
--site cn \
--api-key-source env \
--env-var DASHSCOPE_API_KEY \
--models qwen3.5-plus,qwen3-max-2026-01-23,qwen3-coder-plus \
--model qwen3.5-plus \
--set-default
List available models (no config write):
python3 scripts/alibaba_cloud_model_setup.py \
--plan-type coding \
--site cn \
--list-models \
--non-interactive
Safety Rules (Mandatory)
- Always run
python3 scripts/alibaba_cloud_model_setup.pyfor configuration changes. - Never edit
~/.openclaw/openclaw.jsonmanually when this skill is used. - Always validate API key before writing config.
- Always create backup before overwriting existing config.
- In environment-variable mode, never proceed to config write unless env detection succeeds.
Default Behavior
- Detect config path in this order:
~/.openclaw/openclaw.json~/.moltbot/moltbot.json~/.clawdbot/clawdbot.json
- If none exists, create
~/.openclaw/openclaw.json - Write provider
bailianwith OpenAI-compatible API mode - Create a timestamped backup before overwriting an existing file
- Preserve unrelated config sections
- Set
models.modetomergeto preserve other providers
Validation Checklist
After configuration:
- Confirm JSON is valid by running
python3 -m json.tool. - Ensure
models.providers.bailian.baseUrlmatches site selection. - Ensure
models.providers.bailian.modelscontains expected model IDs. - Ensure
agents.defaults.model.primaryisbailian/when default is enabled. - Start dashboard (
openclaw dashboard) or TUI (openclaw tui) and verify model call succeeds.
Example Config Output
Coding Plan China Site
{
"models": {
"mode": "merge",
"providers": {
"bailian": {
"baseUrl": "https://coding.dashscope.aliyuncs.com/v1",
"apiKey": "YOUR_API_KEY",
"api": "openai-completions",
"models": [
{
"id": "qwen3.5-plus",
"name": "Qwen3.5 Plus",
"reasoning": false,
"input": ["text", "image"],
"cost": { "input": 0, "output": 0, "cacheRead": 0, "cacheWrite": 0 },
"contextWindow": 1000000,
"maxTokens": 65536
},
{
"id": "qwen3-max-2026-01-23",
"name": "Qwen3 Max 2026-01-23",
"reasoning": false,
"input": ["text"],
"cost": { "input": 0, "output": 0, "cacheRead": 0, "cacheWrite": 0 },
"contextWindow": 262144,
"maxTokens": 65536
},
{
"id": "qwen3-coder-next",
"name": "Qwen3 Coder Next",
"reasoning": false,
"input": ["text"],
"cost": { "input": 0, "output": 0, "cacheRead": 0, "cacheWrite": 0 },
"contextWindow": 262144,
"maxTokens": 65536
},
{
"id": "qwen3-coder-plus",
"name": "Qwen3 Coder Plus",
"reasoning": false,
"input": ["text"],
"cost": { "input": 0, "output": 0, "cacheRead": 0, "cacheWrite": 0 },
"contextWindow": 1000000,
"maxTokens": 65536
},
{
"id": "MiniMax-M2.5",
"name": "MiniMax M2.5",
"reasoning": false,
"input": ["text"],
"cost": { "input": 0, "output": 0, "cacheRead": 0, "cacheWrite": 0 },
"contextWindow": 204800,
"maxTokens": 131072
},
{
"id": "glm-5",
"name": "GLM-5",
"reasoning": false,
"input": ["text"],
"cost": { "input": 0, "output": 0, "cacheRead": 0, "cacheWrite": 0 },
"contextWindow": 202752,
"maxTokens": 16384
},
{
"id": "glm-4.7",
"name": "GLM-4.7",
"reasoning": false,
"input": ["text"],
"cost": { "input": 0, "output": 0, "cacheRead": 0, "cacheWrite": 0 },
"contextWindow": 202752,
"maxTokens": 16384
},
{
"id": "kimi-k2.5",
"name": "Kimi K2.5",
"reasoning": false,
"input": ["text", "image"],
"cost": { "input": 0, "output": 0, "cacheRead": 0, "cacheWrite": 0 },
"contextWindow": 262144,
"maxTokens": 32768
}
]
}
}
},
"agents": {
"defaults": {
"model": {
"primary": "bailian/qwen3.5-plus"
},
"models": {
"bailian/qwen3.5-plus": {},
"bailian/qwen3-max-2026-01-23": {},
"bailian/qwen3-coder-next": {},
"bailian/qwen3-coder-plus": {},
"bailian/MiniMax-M2.5": {},
"bailian/glm-5": {},
"bailian/glm-4.7": {},
"bailian/kimi-k2.5": {}
}
}
}
}
References
- Endpoint and field conventions:
references/openclaw_alibaba_cloud.md
Version: 0.1.4
Updated: 2026-03-02
Changes: Fixed provider name typo (balian → bailian), added Coding Plan support, 5 site options, 11 models for Pay-As-You-Go (flagship + latest Qwen), 15 models for Coding Plan (+4 third-party exclusive)
常见问题
- 是否会直接编辑我的配置文件?
- 不会。该技能通过运行 scripts/alibaba_cloud_model_setup.py 完成:先校验 API Key,再为现有文件生成带时间戳的备份,然后再写入新的 provider 段。
- 支持哪些站点?
- 按量付费支持中国、国际、美国三个站点;Coding Plan 仅支持中国与国际两个站点。
- 是否会覆盖其他已配置的提供商?
- 不会。脚本会将 models.mode 设为 merge,并保留配置文件中其他无关的段落。
相关技能
Route Alibaba Cloud Model Studio requests to the right local skill (Qwen Image, Qwen Image Edit, Wan Video, Wan R2V, Qwen TTS, Qwen ASR and advanced TTS vari...
Manage Alibaba Cloud TongyiTranslate (AnyTrans) via OpenAPI/SDK. Use whenever the user needs translation service resource operations in Alibaba Cloud, includ...
Manage Alibaba Cloud ID Verification (Cloudauth) via OpenAPI/SDK. Use whenever the user is working on identity-verification resource operations, config updat...
Manage Alibaba Cloud Cloud Call Center (CCC) via OpenAPI/SDK. Use whenever the user is working on CCC operations such as instance/resource management, config...
Manage Alibaba Cloud Content Moderation (Green) via OpenAPI/SDK. Use whenever the user needs content moderation resource and policy operations, including lis...