alibaba-cloud-model-setup
⚠Review·Scanned 2/17/2026
Configures OpenClaw to add or update an Alibaba Cloud balian provider by running scripts/alibaba_cloud_model_setup.py and editing OpenClaw config. The skill executes local commands (systemctl, openclaw gateway restart), writes to ~/.openclaw/openclaw.json and ~/.bashrc/systemd overrides, calls https://dashscope-intl.aliyuncs.com/compatible-mode/v1, and handles DASHSCOPE_API_KEY.
from clawhub.ai·ve2d6762·30.2 KB·0 installs
Scanned from 0.1.3 at e2d6762 · Transparency log ↗
$ vett add clawhub.ai/extraterrest/alibaba-cloud-model-setupReview findings below
Alibaba Cloud Model Setup
Overview
Use this skill to configure Alibaba Cloud as an OpenClaw model provider with minimal manual editing. Prefer the bundled script for deterministic updates and safe backups.
Workflow
- Confirm OpenClaw config location.
- Run the interactive script to collect:
- First and mandatory: whether user can run terminal commands now (decides env mode vs inline mode)
- In env mode, show 2 commands for user to run (
export+ append to~/.bashrc), then wait for confirmation and verify - Retry env detection up to 2 times; if still not detected, ask whether to fallback to inline key
- Site choice (
Beijing/中国站/CN,Singapore/国际站/INTL, orVirginia/美国站/US) - Access Key (only required if inline mode, or if user chooses inline fallback)
- Validate API key against selected site before any config write
- In systemd deployments, ensure service environment is ready before write
- Default preset models (
qwen-max,qwen-flash,qwen3-coder-plus) - Whether to add extra models from live API list
- Whether to change primary model from default
- Whether to set this model as default
- Validate the resulting JSON and report the final provider/model path.
- If user is unsure which model IDs are available, fetch live models from API first.
Safety Rules (Mandatory)
- Always run
python3 scripts/alibaba_cloud_model_setup.pyfor configuration changes. - Never edit
~/.openclaw/openclaw.jsonmanually when this skill is used. - In environment-variable mode, never proceed to config write unless env detection succeeds in the script flow; if detection fails and user rejects inline fallback, stop with
Config not changed. - In systemd deployments, never proceed to config write unless
systemctl --user show-environmentcontains the configured env var.
Run Script
Execute:
python3 scripts/alibaba_cloud_model_setup.py
Optional flags for non-interactive use:
python3 scripts/alibaba_cloud_model_setup.py \
--site intl \
--api-key-source env \
--env-var DASHSCOPE_API_KEY \
--api-key "$DASHSCOPE_API_KEY" \
--models qwen-max,qwen-flash,qwen3-coder-plus \
--model qwen3-coder-plus \
--set-default
List live model IDs via API (no config write):
python3 scripts/alibaba_cloud_model_setup.py \
--site intl \
--api-key "$DASHSCOPE_API_KEY" \
--list-models \
--non-interactive
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
balianwith OpenAI-compatible API mode - Create a timestamped backup before overwriting an existing file
- Preserve unrelated config sections
Validation Checklist
After configuration:
- Confirm JSON is valid by running
python3 -m json.tool <config-path>. - Ensure
models.providers.balian.baseUrlmatches site selection. - Ensure
models.providers.balian.modelscontains expected model IDs. - Ensure
agents.defaults.model.primaryisbalian/<model-id>when default is enabled. - Start dashboard (
openclaw dashboard) or TUI (openclaw tui) and verify model call succeeds.
References
- Endpoint and field conventions:
references/openclaw_alibaba_cloud.md