extraterrest

Alibaba Cloud Model Setup

开发编程v0.1.4
作者:extraterrest更新于 2026-05-11共 5 个版本 · 最新版本发布于 2026-03-02alibaba-cloud-model-setup@clawhub_extraterrest/alibaba-cloud-model-setup
脚本工具#Coding

据 AlphaMoat 统计,截至 2026-09,Alibaba Cloud Model Setup 累计下载 3,029 次、获 1 个星标,在全部 5,078 个 AI 技能中排名第 3,710 位,在「开发编程」分类(577 个)中排名第 470 位。

累计安装
154
累计下载
3,029
星标
1
全站排名
#3,710
全站前 74% · 「开发编程」前 82%
平台累计安装累计下载星标评论
ClawHub ↗832,7041-
SkillHub ↗1543,0291—

各平台的计数口径不同,统计时间不一致。

这个技能是做什么的

流程涵盖计划类型、站点端点、API key、模型选择、备份与验证。配置可能修改本地 OpenClaw JSON 文件及默认模型;应先确认目标配置路径、保留备份并检查最终内容。卡片还指出文档安全模式与脚本行为存在不一致,部署前需审阅。 需要 Python;已报告的不一致修复前,不可依赖 list-models 或环境变量模式的安全性。使用范围受限密钥,避免命令参数或明文配置暴露。

资料发布于 2026-10-27

可以用来做什么

  • 比较百炼计划和站点端点的配置选项
  • 在人工检查后修复 OpenClaw 模型提供方配置

什么时候用

  • 目标配置、备份和 API key 管理方式已确认并经过人工审阅时

示例提示词

以下是根据技能文档生成的示例,不代表实际运行结果。

说明配置百炼前需要确认的计划、端点和密钥管理决策,不要改写配置。
审阅一份配置变更计划,检查默认模型改动与备份步骤。

月度数据趋势

累计下载3,029
1,5812,3593,1362026-03 · 累计下载 1,6882026-05 · 累计下载 2,0692026-06 · 累计下载 2,2192026-07 · 累计下载 2,4812026-08 · 累计下载 2,6422026-09 · 累计下载 3,02926-0326-09
星标1
0122026-03 · 星标 12026-05 · 星标 12026-06 · 星标 12026-07 · 星标 12026-08 · 星标 12026-09 · 星标 126-0326-09

2026-09 起统计方法调整:同名技能按作者分别统计,并覆盖全部技能。图中虚线为调整前的月份,与之后的数据不直接比较,也不计算跨越调整的增长。

月份累计下载环比星标
2026-093,029—1
2026-082,642+6.5%1
2026-072,481+11.8%1
2026-062,219+7.2%1
2026-052,069—1
2026-031,688—1

SKILL.md 原文

以下是作者发布的原始文件,按纯文本显示,本站未做修改或审核;其中的链接不可点击,命令请核实后再运行。抓取于 2026-10-23。

7.8 KB · ClawHub v0.1.4
---
name: alibaba-cloud-model-setup
description: 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 (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.
展开全部(共 255 行)

## 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-max`
- `qwen-max-2025-01-25`

**Qwen-Plus** (Balanced):
- `qwen-plus`
- `qwen-plus-2025-01-15`

**Qwen-Flash** (Fast & Cost-Effective):
- `qwen-flash`
- `qwen-flash-2025-01-15`

**Qwen-Coder** (Code Specialist):
- `qwen3-coder-plus`
- `qwen3-coder-next`
- `qwen2.5-coder-32b-instruct`

### 4️⃣ Latest Qwen Models (Available for All Users)

- `qwen3.5-plus`
- `qwen3-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

1. **Confirm plan type**: Pay-As-You-Go or Coding Plan
2. **Select site**: Based on plan type (3 options for Pay-As-You-Go, 2 for Coding Plan)
3. **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
4. **Validate API key** against selected site before config write
5. **Backup existing config** before modification
6. **Update config** with provider, models, and defaults
7. **Validate JSON** and report final status

## Run Script

Execute:

```bash
python3 scripts/alibaba_cloud_model_setup.py
```

Optional flags for non-interactive use:

```bash
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):

```bash
python3 scripts/alibaba_cloud_model_setup.py \
  --plan-type coding \
  --site cn \
  --list-models \
  --non-interactive
```

## Safety Rules (Mandatory)

1. Always run `python3 scripts/alibaba_cloud_model_setup.py` for configuration changes.
2. Never edit `~/.openclaw/openclaw.json` manually when this skill is used.
3. Always validate API key before writing config.
4. Always create backup before overwriting existing config.
5. 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 `bailian` with OpenAI-compatible API mode
- Create a timestamped backup before overwriting an existing file
- Preserve unrelated config sections
- Set `models.mode` to `merge` to preserve other providers

## Validation Checklist

After configuration:

1. Confirm JSON is valid by running `python3 -m json.tool <config-path>`.
2. Ensure `models.providers.bailian.baseUrl` matches site selection.
3. Ensure `models.providers.bailian.models` contains expected model IDs.
4. Ensure `agents.defaults.model.primary` is `bailian/<model-id>` when default is enabled.
5. Start dashboard (`openclaw dashboard`) or TUI (`openclaw tui`) and verify model call succeeds.

## Example Config Output

### Coding Plan China Site

```json
{
  "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)*

「开发编程」分类下的热门技能

数据月份:2026-09 · 下载/星标/安装数聚合自公开技能注册库(ClawHub、SkillHub),按月更新。口径说明见数据方法。