alibaba-cloud-model-setup
БесплатноБез исполняемых скриптовНе проверенConfigure OpenClaw to use Alibaba Cloud Bailian provider (Pay-As-You-Go or Coding Plan) through a strict interactive flow. Supports 5 site options and…
от lxyeternal★ 68 звёзд на GitHubОб этом скилле
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 <config-path>. - Ensure
models.providers.bailian.baseUrlmatches site selection. - Ensure
models.providers.bailian.modelscontains expected model IDs. - Ensure
agents.defaults.model.primaryisbailian/<model-id>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
}
Установить alibaba-cloud-model-setup в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл alibaba-cloud-model-setup?
Configure OpenClaw to use Alibaba Cloud Bailian provider (Pay-As-You-Go or Coding Plan) through a strict interactive flow. Supports 5 site options and flagship model series. Use this skill when a user asks to add, switch, or repair Alibaba Cloud/Qwen provider configuration in OpenClaw.
Как установить скилл alibaba-cloud-model-setup?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл alibaba-cloud-model-setup запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic