OpenClaw安装与模型配置笔记

Windows PowerShell一键安装方式

Set-ExecutionPolicy RemoteSigned -Scope Process -Force
iwr -useb https://openclaw.ai/install.ps1 | iex

Windows CMD一键安装方式

curl -fsSL https://openclaw.ai/install.cmd -o install.cmd && install.cmd && del install.cmd

macOS/Linux一键安装方式

curl -fsSL --proto '=https' --tlsv1.2 https://openclaw.ai/install.sh | bash

npm安装方式(各系统通用)

npm config set registry https://registry.npmmirror.com
npm i -g openclaw

OpenClaw初始化/注册流程(--install-daemon:安装为系统服务并开机自启)

openclaw onboard
openclaw onboard --install-daemon

OpenClaw设置使用完整功能配置文件

openclaw config set tools.profile full

OpenClaw模型配置文件(记得替换YOUR_APIKEY)

{
  "models": {
    "mode": "merge",
    "providers": {
      "bailian": {
        "baseUrl": "https://dashscope.aliyuncs.com/compatible-mode/v1",
        "apiKey": "YOUR_APIKEY",
        "api": "openai-completions",
        "models": [
          {
            "id": "qwen3.5-plus",
            "name": "Qwen3.5-Plus",
            "api": "openai-completions",
            "reasoning": false,
            "input": [
              "text",
              "image"
            ],
            "contextWindow": 1000000,
            "maxTokens": 8192
          }
        ]
      }
    }
  },
  "agents": {
    "defaults": {
      "model": {
        "primary": "bailian/qwen3.5-plus",
      }
    }
  }
}

posted @ 2026-03-12 17:13  wanghongwei-dev  阅读(77)  评论(0)    收藏  举报