← 返回 Skills 市场
extraterrest

Alibaba Cloud Model Setup

作者 extraterrest · GitHub ↗ · v0.1.4
cross-platform ✓ 安全检测通过
1745
总下载
1
收藏
3
当前安装
5
版本数
在 OpenClaw 中安装
/install 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 flagsh...
使用说明 (SKILL.md)

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-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:

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)

  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 \x3Cconfig-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/\x3Cmodel-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

{
  "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)

安全使用建议
This skill appears to do what it says: add or update a 'bailian' provider in your OpenClaw config. Before running it: (1) review scripts/alibaba_cloud_model_setup.py yourself to confirm behavior (it will back up and overwrite your OpenClaw JSON), (2) avoid using the '--persist-env-shell' or '--persist-env-systemd' flags unless you want the API key written into your shell profile or systemd user config and are comfortable with the script restarting the openclaw user service, (3) prefer environment-variable mode over inline storage for secrets, and (4) keep a copy of the backup file created by the script so you can restore if needed. If you are unsure, run the script with --list-models or --non-interactive (no-write) first to inspect outputs without changing files.
功能分析
Type: OpenClaw Skill Name: alibaba-cloud-model-setup Version: 0.1.4 The skill bundle is designed to configure Alibaba Cloud Bailian as an OpenClaw model provider. The `SKILL.md` provides clear instructions for the AI agent, including explicit script execution commands and safety rules, without any evidence of prompt injection attempts for malicious purposes. The `scripts/alibaba_cloud_model_setup.py` script performs expected actions such as detecting config paths, prompting for user input, validating API keys against Alibaba Cloud endpoints (`aliyuncs.com`), backing up existing configuration, and updating the OpenClaw JSON configuration file. While the script defines command-line arguments like `--persist-env-shell` and `--persist-env-systemd` which could imply persistence mechanisms, the corresponding code to implement these actions is not present in the `main` function, rendering them inert. All network and file system operations are aligned with the stated purpose of configuring the model provider, with no evidence of data exfiltration, unauthorized execution, or other malicious intent.
能力评估
Purpose & Capability
Name/description describe adding/switching an Alibaba (Bailian) provider; included files (SKILL.md, reference doc, and a Python script) implement exactly that: listing models, selecting site/plan, validating an API key, backing up and writing OpenClaw JSON, and optionally persisting an env var. No unrelated credentials, services, or binaries are requested.
Instruction Scope
SKILL.md and the script explicitly read and write OpenClaw-style config files (~/.openclaw/openclaw.json and fallbacks), validate keys against Bailian endpoints, and offer non-interactive flags. They also include operations beyond simple JSON editing: writing export lines to shell profile and writing systemd user overrides plus restarting a user service. Those extra actions are coherent for making environment variables persistent, but they modify shell/systemd files and restart services and therefore warrant explicit user approval before running with persistence flags.
Install Mechanism
Instruction-only skill with no install spec; the only executable shipped is a Python script. No network download/install of third-party code is performed by the skill itself (other than contacting Bailian endpoints for validation), so install risk is low.
Credentials
The skill does not declare required env vars up front (metadata lists none) but the script prompts for an API key and supports storing it inline or in an environment variable (default DASHSCOPE_API_KEY). Requesting an API key is appropriate for this purpose, but users should note the script can persist that secret into shell profiles or systemd units if persistence flags are used.
Persistence & Privilege
always:false (normal). The script can make persistent system changes (append export to shell profile, write systemd user overrides, and restart a user service). This is consistent with wanting the provider key available to a running openclaw service, but it has side effects on the user environment and services that should be consciously authorized.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install alibaba-cloud-model-setup
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /alibaba-cloud-model-setup 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v0.1.4
Alibaba Cloud Model Setup 0.1.4 — major update with Coding Plan support and improved model/site options. - Fixed provider name typo: now consistently "bailian" (was "balian"). - Added support for both Pay-As-You-Go and Coding Plan subscriptions, with 5 site endpoints instead of 3. - Expanded and clarified available model list: flagship Qwen series, new Qwen3 models, and Coding Plan–exclusive third-party models. - Updated workflow: choose plan type, select site, improved API key validation and model selection steps. - Example config output and validation steps refreshed for new provider name, models, and plan logic.
v0.1.3
Restructured flow: ask terminal capability first, choose env vs inline before site/key collection; stricter fail-closed checks to avoid config writes when env not ready; enforce script-driven safety rules.
v0.1.2
Interactive secure key flow: ask env-var mode, provide 2 commands (export + bashrc), verify up to 2 times, then optional inline fallback. Keep pre-write API key validation and provider id balian.
v0.1.1
Provider id switched to balian; env-var key mode improved; optional shell profile + systemd env persistence; safer key validation before write.
v0.1.0
Initial release: interactive Alibaba Cloud setup (CN/INTL/US), key validation, env-var key support, model selection.
元数据
Slug alibaba-cloud-model-setup
版本 0.1.4
许可证
累计安装 3
当前安装数 3
历史版本数 5
常见问题

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 flagsh... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 1745 次。

如何安装 Alibaba Cloud Model Setup?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install alibaba-cloud-model-setup」即可一键安装,无需额外配置。

Alibaba Cloud Model Setup 是免费的吗?

是的,Alibaba Cloud Model Setup 完全免费(开源免费),可自由下载、安装和使用。

Alibaba Cloud Model Setup 支持哪些平台?

Alibaba Cloud Model Setup 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Alibaba Cloud Model Setup?

由 extraterrest(@extraterrest)开发并维护,当前版本 v0.1.4。

💬 留言讨论