← 返回 Skills 市场
papabearclaw

Alibaba Dashscope Local

作者 PapaBearClaw · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ⚠ suspicious
74
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install alibaba-dashscope-local
功能描述
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)

安全使用建议
What to check before installing or running this skill: - Source trust: The package's homepage/source is unknown. Treat it like unaudited third-party code until you can verify the author. - Inspect the script: Review scripts/alibaba_cloud_model_setup.py yourself (it is bundled) to confirm exactly what it writes into your config, shell profile, and any systemd unit files. Pay attention to any subprocess calls (the script imports subprocess) and what commands it may run when using the --persist-env-systemd or --persist-env-shell flags. - API key handling: The script expects a DashScope API key (default env var DASHSCOPE_API_KEY). Prefer environment-variable mode over inline storage. Do not allow inline storage of secrets into config files unless you accept the risk. - Minimize side effects: Run first with safe options: --list-models and --non-interactive (or run the script in a test container/sandbox) to see behavior without writing files. Do not use --persist-env-systemd or --persist-env-shell unless you reviewed the exact lines it will add and you understand restarting the openclaw user service. - Backup and verify: The script claims to back up existing configs before writing; still make a manual backup of ~/.openclaw/openclaw.json (and any other detected config) before running. After running, validate JSON (python3 -m json.tool) and inspect what changed. - If unsure, run in a disposable environment: e.g., a throwaway VM or container where changes are reversible. If you want, I can list the places in the bundled script where it writes files or invokes subprocesses so you can review exact behavior before running.
功能分析
Type: OpenClaw Skill Name: alibaba-dashscope-local Version: 1.0.0 The skill bundle is a legitimate configuration utility for integrating Alibaba Cloud Bailian (DashScope) models into OpenClaw. The primary component is a Python script (scripts/alibaba_cloud_model_setup.py) that interactively collects API keys, validates them via official Alibaba Cloud endpoints (e.g., dashscope.aliyuncs.com), and safely updates the local JSON configuration with appropriate model metadata. While the script defines arguments for shell and systemd persistence, the actual implementation logic for these high-risk actions is absent, and the script instead provides manual instructions to the user. The behavior is transparent, includes configuration backups, and aligns perfectly with the stated purpose in SKILL.md.
能力标签
cryptocan-make-purchasesrequires-sensitive-credentials
能力评估
Purpose & Capability
Name/description align with the included script and SKILL.md: the package configures an OpenClaw 'bailian' provider, detects/writes OpenClaw config files, and exposes options for plan/site/model. The one notable capability beyond a simple JSON edit is optional persistence of an API key into shell profiles or a systemd user override; this is related to storing the API key but is broader than a minimal 'provider config' tool and should be considered before use.
Instruction Scope
SKILL.md instructs the agent to run the bundled Python script and lists flags and safety checks. The script performs expected actions: prompt/collect API key, validate it against the selected base URL, backup and update OpenClaw JSON, and validate JSON after write. It also offers non-interactive listing and validation modes. No instructions send data to unexpected external endpoints beyond the documented dashscope/coding dashscope URLs.
Install Mechanism
No install spec or external downloads; the skill is instruction-only with a bundled Python script. Nothing is fetched from arbitrary URLs or installed into system paths by the skill itself.
Credentials
Registry metadata declares no required env vars, yet the script strongly recommends and defaults to an environment variable named DASHSCOPE_API_KEY and supports inline storage. Requesting and validating an API key is proportionate to the stated purpose, but the metadata not listing that credential is an inconsistency the user should notice.
Persistence & Privilege
The script writes to user config files (~/.openclaw/openclaw.json etc.) which is expected. However it also offers flags to persist the API key into shell profiles (~/.bashrc by default), to write systemd user overrides, and to restart a systemd user service. Those operations modify system-level user configuration and can restart services; they are powerful and should only be run with explicit user consent and review of the exact modifications.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install alibaba-dashscope-local
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /alibaba-dashscope-local 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Initial release introducing guided Alibaba Cloud (Bailian) configuration for OpenClaw. - Supports both Pay-As-You-Go and Coding Plan with 5 regional site options. - Includes 4 flagship Qwen model series, latest Qwen models, and exclusive third-party models for Coding Plan. - Strict interactive flow: confirms plan/site, validates API key, supports env-var/in-file API key storage, creates config backups. - Enforces safety (no manual config editing, auto-backup, config validation). - Sample config and validation checklist provided for user reference.
元数据
Slug alibaba-dashscope-local
版本 1.0.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

Alibaba Dashscope Local 是什么?

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 插件,目前累计下载 74 次。

如何安装 Alibaba Dashscope Local?

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

Alibaba Dashscope Local 是免费的吗?

是的,Alibaba Dashscope Local 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Alibaba Dashscope Local 支持哪些平台?

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

谁开发了 Alibaba Dashscope Local?

由 PapaBearClaw(@papabearclaw)开发并维护,当前版本 v1.0.0。

💬 留言讨论