在OpenClaw接入阿里雲 Coding Plan。OpenClaw (原名Moltbot/Clawdbot )是一個開源的個人 AI 助手平台,支援通過多種訊息渠道與 AI 互動。
安裝 OpenClaw
手動安裝
安裝或更新 Node.js
檢查目前的版本:在終端運行以下命令查看:
Node.js的版本(需 v22.0 或更高版本)。如果提示“找不到命令”,說明未安裝;如果顯示版本號碼低於 v22.0,說明需要更新。進入終端的方法: Mac 系統按 Command + Space(空格) → 輸入 Terminal 或 終端 → 斷行符號,Windows系統按 Win 鍵 → 輸入 終端/PowerShell/cmd → 斷行符號。
node -v下載並安裝:訪問Node.js,在頁面中選擇“LTS” 且
版本號碼 >= 22.x.x,並根據系統下載安裝包。下載完安裝即可。例如:Windows 系統找到並下載 Windows Installer(.msi),Mac 系統找到並下載 macOS Installer(.pkg)。
執行以下命令開始安裝OpenCLaw。
macOS/Linux:
按鍵盤上的 Command + Space(空格)按鍵組合, 輸入終端並斷行符號,開啟終端後運行以下命令:
curl -fsSL https://openclaw.ai/install.sh | bashWindows:
在工作列搜尋方塊裡輸入
PowerShell,選擇以管理員身份運行,在PowerShell中運行以下命令:iwr -useb https://openclaw.ai/install.ps1 | iex
安裝結束後會自動出現提示資訊,請根據提示資訊完成 OpenClaw 配置,參考配置如下:
配置項
配置內容
I understand this is powerful and inherently risky. Continue?
選擇 ”Yes”
Onboarding mode
選擇 “QuickStart”
Model/auth provider
選擇 “Skip for now”,後續可以配置
Filter models by provider
選擇 “All providers”
Default model
使用預設配置
Select channel (QuickStart)
選擇 “Skip for now”,後續可以配置
Configure skills now? (recommended)
選擇 “No”,後續可以配置。
Enable hooks?
按空格鍵選中 “Skip for now”,按斷行符號鍵進入下一步。
How do you want to hatch your bot?
選擇 “Hatch in TUI”。
Qwen Code 引導安裝
OpenClaw 安裝依賴於 Node.js 環境,手動安裝可能會遇到環境配置問題。您可以使用 Qwen Code 來完成安裝和驗證。
安裝並配置Qwen Code。
在終端輸入以下命令啟動 Qwen Code。
qwen在 Qwen Code 對話方塊中輸入以下指令。
macOS/Linux:
請幫我安裝 OpenClaw,依次執行以下命令完成安裝和初始配置: 1. 前置條件:需要先安裝 Node.js(v22.0 或更高版本),可通過 node --version 檢查是否已安裝。版本較低時需升級或安裝更高版本,注意不能卸載已有的Node.js。 2. curl -fsSL https://openclaw.ai/install.sh | bash -s -- --no-onboard 3. openclaw gateway install 4. openclaw onboard --non-interactive --accept-risk --flow quickstart --auth-choice skip --skip-channels --skip-skills 5. 通過執行openclaw status,確保OpenClaw狀態正常Windows:
請幫我在 Windows 上安裝 OpenClaw,按以下步驟依次執行: ## 執行說明 所有 PowerShell 命令請使用以下格式執行: ``` powershell -ExecutionPolicy Bypass -Command "<命令>" ``` ### 注意事項: 1. 多行內容請使用 `write_file` 工具建立檔案,避免 here-string 文法 2. 環境變數修改後,需要顯式重新整理 `$env:Path` 才能在同一會話中使用 3. 涉及網路下載的命令請設定較長 timeout(≥120000ms) --- ## 步驟 1:檢測前置環境 檢查以下工具是否已安裝,並輸出版本號碼: - `node --version`(需要 v22 或更高) - `npm --version` - `git --version` 如果全部已安裝且 Node.js 版本 ≥ 22,直接跳到步驟 4。 --- ## 步驟 2:安裝 Node.js(如未安裝或版本低於 22) 1. 檢測系統架構(x64 / x86 / ARM64) 2. 從官方源下載 Node.js zip 包並解壓: ``` powershell -ExecutionPolicy Bypass -Command "$ProgressPreference = 'SilentlyContinue'; Invoke-WebRequest -Uri 'https://nodejs.org/dist/v24.0.0/node-v24.0.0-win-x64.zip' -OutFile \"$env:TEMP\node24.zip\"; Expand-Archive \"$env:TEMP\node24.zip\" -DestinationPath \"$env:LOCALAPPDATA\nodejs-v24\" -Force; Remove-Item \"$env:TEMP\node24.zip\"" ``` 3. 添加到系統 PATH(永久生效,新終端可直接使用): ``` powershell -ExecutionPolicy Bypass -Command "$nodePath = \"$env:LOCALAPPDATA\nodejs-v24\node-v24.0.0-win-x64\"; $machinePath = [Environment]::GetEnvironmentVariable('PATH', 'Machine'); [Environment]::SetEnvironmentVariable('PATH', \"$nodePath;$machinePath\", 'Machine'); $env:Path = \"$nodePath;$env:Path\"; node --version; npm --version" ``` --- ## 步驟 3:安裝 Git(如未安裝) 1. 從官方源下載 Git 安裝包並靜默安裝: ``` powershell -ExecutionPolicy Bypass -Command "$ProgressPreference = 'SilentlyContinue'; Invoke-WebRequest -Uri 'https://github.com/git-for-windows/git/releases/download/v2.53.0.windows.2/Git-2.53.0.2-64-bit.exe' -OutFile \"$env:TEMP\Git-Installer.exe\"; Start-Process -FilePath \"$env:TEMP\Git-Installer.exe\" -ArgumentList '/VERYSILENT','/NORESTART','/NOCANCEL','/SP-','/CLOSEAPPLICATIONS','/RESTARTAPPLICATIONS','/COMPONENTS=icons,ext\reg\shellhere,assoc,assoc_sh' -Wait; Remove-Item \"$env:TEMP\Git-Installer.exe\"" ``` 2. 重新整理 PATH 並驗證安裝: ``` powershell -ExecutionPolicy Bypass -Command "$machinePath = [Environment]::GetEnvironmentVariable('PATH', 'Machine'); $env:Path = \"$machinePath;$env:Path\"; git --version" ``` --- ## 步驟 4:安裝 OpenClaw 重新整理 PATH 並全域安裝: ``` powershell -ExecutionPolicy Bypass -Command "$machinePath = [Environment]::GetEnvironmentVariable('PATH', 'Machine'); $userPath = [Environment]::GetEnvironmentVariable('PATH', 'User'); $env:Path = \"$machinePath;$userPath;$env:Path\"; npm install -g openclaw@latest" ``` --- ## 步驟 5:驗證安裝 ``` powershell -ExecutionPolicy Bypass -Command "$machinePath = [Environment]::GetEnvironmentVariable('PATH', 'Machine'); $userPath = [Environment]::GetEnvironmentVariable('PATH', 'User'); $env:Path = \"$machinePath;$userPath;$env:Path\"; openclaw --version" ``` --- ## 步驟 6:安裝 Gateway ``` openclaw gateway install ``` --- ## 步驟 7:自動完成初始配置 使用 `write_file` 工具建立設定檔,自動完成所有配置項(QuickStart 模式): 設定檔路徑:`%USERPROFILE%\.openclaw\config.yaml` 設定檔內容: ```yaml # OpenClaw Configuration - QuickStart mode workspace: name: default directory: . gateway: mode: local auth: token: openclaw-quickstart-token session: scope: personal dmScope: per-channel channels: - type: tui enabled: true skills: enabled: false hooks: enabled: false security: acknowledged: true mode: personal ui: hatch: tui ``` 建立設定檔後執行: ``` powershell -ExecutionPolicy Bypass -Command "[Environment]::SetEnvironmentVariable('OPENCLAW_GATEWAY_TOKEN', 'openclaw-quickstart-token', 'User')" ``` --- ## 步驟 8:啟動並使用 ``` # 啟動 TUI 介面 openclaw tui # 或查看狀態 openclaw status # 查看 Dashboard(瀏覽器訪問) # http://127.0.0.1:18789/ ```
授權允許 Qwen Code 執行命令,直至完成安裝。
輸入
/exit退出Qwen Code。/exit
在 OpenClaw 中配置 Coding Plan
如果OpenClaw部署在Simple Application Server,請參考方式二通過圖形化介面配置。
如果OpenClaw部署在您本地或Elastic Compute Service,建議參考方式一通過AI Agent(如Qwen Code)引導完成配置。如果熟悉OpenClaw配置,也可以採用方式三直接修改設定檔。
方式一:通過 Qwen Code 引導配置
安裝並配置Qwen Code。
在終端輸入以下命令啟動 Qwen Code。
qwen在 Qwen Code 對話方塊中輸入以下指令。
請幫我配置 OpenClaw 接入 Coding Plan,按以下步驟操作: ## 第一步:擷取 API Key 請先詢問使用者:"請提供您的 Coding Plan API Key" 等待使用者回複 API Key 後再繼續下一步。 ## 第二步:修改設定檔 1. 開啟設定檔:~/.openclaw/openclaw.json - 如果檔案不存在,請先建立該檔案 - 重要:必須使用 .json 格式,不要使用其他格式 2. 找到或建立以下欄位,合并配置(保留原有配置不變,若欄位不存在則新增): - 使用 "mode": "merge" 確保不會覆蓋已有配置 - 將 YOUR_API_KEY 替換為使用者提供的實際 API Key { "models": { "mode": "merge", "providers": { "bailian": { "baseUrl": "https://coding-intl.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, "compat": { "thinkingFormat": "qwen" } }, { "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, "compat": { "thinkingFormat": "qwen" } }, { "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": 196608, "maxTokens": 32768 }, { "id": "glm-5", "name": "glm-5", "reasoning": false, "input": ["text"], "cost": { "input": 0, "output": 0, "cacheRead": 0, "cacheWrite": 0 }, "contextWindow": 202752, "maxTokens": 16384, "compat": { "thinkingFormat": "qwen" } }, { "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, "compat": { "thinkingFormat": "qwen" } }, { "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, "compat": { "thinkingFormat": "qwen" } } ] } } }, "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": {} } } }, "gateway": { "mode": "local" } } 3. 儲存檔案 ## 第三步:重啟並驗證 1. 運行 `openclaw gateway restart` 重啟網關使配置生效 2. 運行 `openclaw models list` 驗證配置是否成功 - 檢查輸出中是否包含 `bailian/` 開頭的模型 - 檢查每個模型是否有 `configured` 標籤 - 如果有錯誤,請根據錯誤資訊修複授權允許 Qwen Code 執行命令,直至完成配置。
配置完成後,Qwen Code 會輸出
openclaw models list的結果。若bailian/qwen3.5-plus等模型都標記為 configured 表示配置成功。
方式二:通過圖形化介面配置
如果使用Simple Application Server部署方案部署的 OpenClaw,可以通過其產品的圖形化介面配置 Coding Plan。詳情請參考輕量伺服器配置方式。
方式三:直接修改設定檔
通過終端修改設定檔
在終端執行以下命令開啟設定檔。
nano ~/.openclaw/openclaw.json首次配置:複製以下內容到設定檔。將
YOUR_API_KEY替換為Coding Plan 專屬 API Key。已有配置:若需保留已有配置,請勿直接全量替換,詳見已有配置如何安全修改?
{ "models": { "mode": "merge", "providers": { "bailian": { "baseUrl": "https://coding-intl.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, "compat": { "thinkingFormat": "qwen" } }, { "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, "compat": { "thinkingFormat": "qwen" } }, { "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": 196608, "maxTokens": 32768 }, { "id": "glm-5", "name": "glm-5", "reasoning": false, "input": ["text"], "cost": { "input": 0, "output": 0, "cacheRead": 0, "cacheWrite": 0 }, "contextWindow": 202752, "maxTokens": 16384, "compat": { "thinkingFormat": "qwen" } }, { "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, "compat": { "thinkingFormat": "qwen" } }, { "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, "compat": { "thinkingFormat": "qwen" } } ] } } }, "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": {} } } }, "gateway": { "mode": "local" } }儲存檔案並退出,運行以下命令來使配置生效。
openclaw gateway restart
通過網頁瀏覽器修改設定檔
在終端執行以下命令,瀏覽器將自動開啟 OpenClaw 的操作介面(地址通常為
http://127.0.0.1/:xxxx),您可以在該頁面進行對話和配置。openclaw dashboard在左側功能表列中選擇(或)。
首次配置:複製以下內容到Raw JSON5輸入框,替換已有內容。
已有配置:若需保留已有配置,請勿直接全量替換,詳見已有配置如何安全修改?
將
YOUR_API_KEY替換為Coding Plan 專屬 API Key。
{ "models": { "mode": "merge", "providers": { "bailian": { "baseUrl": "https://coding-intl.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, "compat": { "thinkingFormat": "qwen" } }, { "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, "compat": { "thinkingFormat": "qwen" } }, { "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": 196608, "maxTokens": 32768 }, { "id": "glm-5", "name": "glm-5", "reasoning": false, "input": ["text"], "cost": { "input": 0, "output": 0, "cacheRead": 0, "cacheWrite": 0 }, "contextWindow": 202752, "maxTokens": 16384, "compat": { "thinkingFormat": "qwen" } }, { "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, "compat": { "thinkingFormat": "qwen" } }, { "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, "compat": { "thinkingFormat": "qwen" } } ] } } }, "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": {} } } }, "gateway": { "mode": "local" } }單擊右上方 Save 儲存,然後單擊 Update使配置生效。
儲存成功後,apiKey將顯示為“__OPENCLAW_REDACTED__”。脫敏保護,僅用於前端介面隱藏,不影響實際調用。

使用 OpenClaw
支援通過網頁瀏覽器和終端命令列的方式使用 OpenClaw。
網頁瀏覽器
新開一個終端,運行以下命令,瀏覽器將自動開啟 OpenClaw 的操作介面。
openclaw dashboard開始對話。

終端命令列
新開一個終端,運行以下命令。
openclaw tui開始對話。

常見命令
命令 | 說明 | 樣本 |
/help | 顯示可用命令的快速摘要。 | /help |
/status | 查看當前模型、會話、網關等狀態資訊。 | /status |
/model <模型名稱> | 切換當前會話使用的模型。 | /model qwen3.5-plus |
/new | 開始一個新會話。 | /new |
/compact | 壓縮對話歷史,釋放上下文視窗空間。 | /compact |
/think <層級> | 設定思考(推理)深度層級,可選 off、low、medium、high 等。 | /think high |
/skills | 展示所有可用的 Skill。 | /skills |
切換模型
在當前會話切換模型(臨時有效)
在終端輸入
openclaw tui,進入 OpenClaw 終端命令列,使用/model <模型名稱>在當前會話中切換模型。/model qwen3-coder-next介面返回提示“model set to qwen3-coder-next” 即表示生效。
切換預設模型(永久有效)
如需在每次新會話中使用指定模型,修改
agents.defaults.model.primary欄位為目標模型。請參考修改設定檔。{ "agents": { "defaults": { "model": { "primary": "bailian/qwen3.5-plus" } } } }
接入訊息渠道
Telegram
步驟一:配置 Telegram 機器人
通過 BotFather 建立機器人
發送
/newbot命令,按提示輸入機器人名稱和使用者名稱(使用者名稱必須以bot結尾),複製並儲存返回的 Bot Token(格式為:123456789:ABCdefGHIjklMNOpqrsTUVwxyz)。
在 OpenClaw 對話中輸入如下內容,並將 xxxx 替換為實際的 Bot Token。OpenClaw 會自動完成配置。
請幫我配置Telegram,配置項如下,我的Bot Token是xxxx。 { "channels": { "telegram": { "enabled": true, "botToken": "xxxx", "dmPolicy": "pairing" } } }配置完成後,重啟網關。
openclaw gateway restart在 Telegram 中發送訊息給機器人,首次發送訊息會收到配對碼。

在終端執行以下命令,將 xxx 替換為實際的配對碼。
openclaw pairing approve telegram xxx
步驟二:測試
在終端執行以下命令重啟網關。
openclaw gateway restart執行以下命令檢查 Telegram 渠道狀態
openclaw status在 Channels 部分,Telegram 應顯示為
ON且狀態為OK。在 Telegram 中發送訊息進行測試。

瞭解更多
Skill
Skill 是可擴充的能力模組,Agent 會根據請求自動匹配並載入對應的 Skill。OpenClaw 支援查看和啟用內建 Skill,從 ClawHub安裝社區 Skill,或建立自訂 Skill。
查看已有 Skill
執行以下命令查看已安裝的 Skill 及其狀態。
# 列出已安裝的 Skill openclaw skills list # 查看 Skill 狀態(已啟用、已禁用、缺少依賴等) openclaw skills check # 查看特定 Skill 的詳細資料 openclaw skills info <skill-name>內建 Skill 預設未啟用,需在
~/.openclaw/openclaw.json中通過skills.allowBundled白名單啟用,只有列在其中的內建 Skill 才會被載入。{ "skills": { "allowBundled": [ "github", "weather", "summarize", "coding-agent", "clawhub", "nano-pdf", "google-web-search", "image-lab" ] } }部分內建 Skill需要配置對應的第三方 API Key 才能使用,請在
~/.openclaw/openclaw.json的skills.entries中配置,具體請參考 Skills 配置文檔。
尋找更多 Skill
可以通過以下兩種方式尋找並安裝更多 Skill。
通過 ClawHub 搜尋安裝
ClawHub 提供 3,000+ 個社區 Skill,可以在網站上瀏覽,也可以通過命令列搜尋。
# 按關鍵詞搜尋 npx clawhub search [關鍵詞] # 瀏覽最新動向的 Skill npx clawhub explore找到合適的 Skill 後,執行以下命令安裝,安裝完成後重啟網關即可使用。
npx clawhub install <skill-name>直接在 OpenClaw 中提問
在對話中直接描述需求,例如
幫我找一個可以查天氣的 Skill,OpenClaw 會自動搜尋並安裝。
建立自訂 Skill
建立 Skill 目錄。
mkdir -p ~/.openclaw/workspace/skills/my-custom-skill在該目錄下建立
SKILL.md檔案。檔案由 YAML 前置中繼資料和 Markdown 指令兩部分組成,其中name和description為必要欄位。Agent 根據description判斷是否載入該 Skill,請確保描述準確。--- name: my-custom-skill description: 簡短描述 --- # My Custom Skill 當使用者請求 XXX 時,執行以下操作: 1. 使用 bash 工具運行 xxx 命令 2. 解析輸出結果 3. 以表格形式返回給使用者重啟網關使 Skill 生效。
# 重啟網關 openclaw gateway restart # 查看 Skill 是否生效 openclaw skills list
更多 Skill 配置說明請參考OpenClaw 官方文檔。
常見問題
如何查看coding plan已配置的模型?
在終端輸入openclaw tui,進入 OpenClaw 終端命令列,接著輸入/model查看模型列表。按斷行符號鍵選中模型,按Esc鍵退出模型列表。

OpenClaw報錯“API rate limit reached”怎麼辦?
請按以下順序排查:
OpenClaw 配置錯誤
若 Base URL 或模型供應商配置有誤,導致請求未進入 Coding Plan 專屬通道,而是被路由到了 通用的API 呼叫,從而觸發限流。
若使用 Coding Plan 套餐,請核對OpenClaw 設定檔中的
models、agents、gateway(含嵌套欄位),確保與文檔配置一致。例如:模型服務提供者的結構為{ "models": { "providers": { "bailian": {...} } } }。若當前未使用 Coding Plan 套餐,建議切換至 Coding Plan 以擷取專屬額度。
超出套餐限額:在Coding Plan頁面查看套餐用量情況。
若額度已用盡,在該頁面查看下一次額度重設的時間。
若頻繁觸達限額,建議升級至 Pro 套餐以擷取更多調用次數。
嘗試重設 API Key:若完成上述排查後問題仍未解決,請前往Coding Plan頁面重設 API Key。
為什麼報錯"HTTP 401: Incorrect API key provided."或"No API key found for provider xxx"?
可能原因:
API Key 無效、到期、為空白、格式錯誤,或與端點環境不匹配,請檢查 API Key 是否為 Coding Plan 套餐專屬 Key,複製完整且無空格;確認訂閱狀態有效。
OpenClaw的歷史配置緩衝導致配置錯誤,請刪除
~/.openclaw/agents/main/agent/models.json檔案中的providers配置項,並重啟OpenClaw。
我已經配置過DingTalk等其他渠道,如何安全地添加 Coding Plan 模型(防止原有配置丟失)?
請勿直接全量覆蓋。直接“全部替換”會覆蓋掉你的自訂配置,請進行局部修改。
您可以選擇以下方式完成配置:
若OpenClaw 可正常對話:直接在 OpenClaw 對話中輸入以下指令完成配置合并。
若OpenClaw 未配置模型或無法對話:請參考Qwen Code 引導配置。
指令內容(請將 YOUR_API_KEY 替換為實際的 API Key):
請在OpenClaw 中接入Coding Plan,步驟如下: 1. 開啟設定檔:~/.openclaw/openclaw.json 2. 找到或建立以下欄位,合并配置(保留原有配置不變,若欄位不存在則新增): { "models": { "mode": "merge", "providers": { "bailian": { "baseUrl": "https://coding-intl.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, "compat": { "thinkingFormat": "qwen" } }, { "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, "compat": { "thinkingFormat": "qwen" } }, { "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": 196608, "maxTokens": 32768 }, { "id": "glm-5", "name": "glm-5", "reasoning": false, "input": ["text"], "cost": { "input": 0, "output": 0, "cacheRead": 0, "cacheWrite": 0 }, "contextWindow": 202752, "maxTokens": 16384, "compat": { "thinkingFormat": "qwen" } }, { "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, "compat": { "thinkingFormat": "qwen" } }, { "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, "compat": { "thinkingFormat": "qwen" } } ] } } }, "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": {} } } }, "gateway": { "mode": "local" } } 3. 儲存設定檔 4. 運行openclaw gateway restart,重啟Openclaw的網關,使配置生效。配置完成後,新開一個 OpenClaw 或 Qwen Code 會話,輸入以下指令驗證配置是否生效:
openclaw models status。重啟網關後,已有會話可能無法正常對話,請重啟會話。
如果通過Simple Application Server安裝的OpenClaw,可直接使用圖形化介面添加 Coding Plan 模型。詳情請參考Simple Application Server添加方式。
更多問題請參考常見問題。