OpenClaw 国内版快速安装指南 (2026 更新)
1. 下载 Powershell 离线安装包
PowerShell 7.5.3 离线安装程序
| 版本 | 适用平台 | 下载链接 |
|---|---|---|
| PowerShell 7.5.3 | Windows 10/11 | x64 | x86 |
| PowerShell 7.5.3 | MacOS | 64-bit | ARM64 |
| PowerShell 7.5.3 | Linux | Redhat | Debian |
如需更多下载选项,请访问 PowerShell 7.5.3 发布页面。
PowerShell 7.4.12 LTS 离线安装程序
| 版本 | 适用平台 | 下载链接 |
|---|---|---|
| PowerShell 7.4.12 LTS | Windows 10/11 | x64 | x86 |
| PowerShell 7.4.12 LTS | MacOS | 64-bit | ARM64 |
| PowerShell 7.4.12 LTS | Linux | Redhat | Debian |
2. 在PowerShell安装 Node.js 和 pnpm
1. 安装Node.js(推荐18+版本) brew install node # macOS用brew,Linux用apt install nodejs 2. 安装pnpm(国内镜像加速) npm install -g pnpm --registry=https://registry.npmmirror.com # 3. 验证安装 node -v && pnpm -v # 输出版本号即成功 # 设置淘宝镜像源并安装 npm config set registry https://registry.npmmirror.com npm install -g pnpm pnpm -v # 输出版本号即表示安装成功3.安装国内版OpenClaw
# 卸载旧版(如有) npm uninstall -g openclaw # 安装国内增强版 npm install -g openclaw-cn --registry=https://registry.npmmirror.com # 初始化配置(自动生成国内适配的配置文件) openclaw-cn onboard --install-daemon #4.申请key
1.DeepSeek|深度求索 https://www.deepseek.com/
2.Kimi https://platform.moonshot.cn/
3.开发者后台 - 飞书开放平台 https://open.feishu.cn/
4. 百度开发平台 百度千帆Coding Plan-百度智能云 7.9元 可以体验一下
百度千帆配置文件
C:\Users\Administrator\.openclaw\openclaw.json
# 直接在PowerShell中创建并编辑 notepad $env:USERPROFILE\.openclaw\openclaw.json{ "models": { "mode": "merge", "providers": { "baiduqianfancodingplan": { "baseUrl": "https://qianfan.baidubce.com/v2/coding", "apiKey": "在此处获取:https://console.bce.baidu.com/qianfan/resource/subscribe", "api": "openai-completions", "models": [ { "id": "qianfan-code-latest", "name": "qianfan-code-latest", "reasoning": false, "input": [ "text" ], "cost": { "input": 0.0025, "output": 0.01, "cacheRead": 0, "cacheWrite": 0 }, "contextWindow": 98304, "maxTokens": 65536 } ] } } }, "agents": { "defaults": { "model": { "primary": "baiduqianfancodingplan/qianfan-code-latest" }, "models": { "baiduqianfancodingplan/qianfan-code-latest": { "alias": "QianfanCodingPlan" } }, "compaction": { "mode": "safeguard" }, "maxConcurrent": 4, "subagents": { "maxConcurrent": 8 } } } }5.安装国内可用的Skills(核心功能扩展)
海外版ClawHub国内访问受限,直接用Gitee克隆国内技能(无需翻墙)
# 克隆国内技能仓库(无需翻墙) git clone https://gitee.com/mirrors/openclaw-skills.git # 或 git clone https://gitee.com/openclaw-cn/skills.git # 进入目录安装 cd openclaw-skills pnpm install # 配置技能路径 openclaw-cn config set skills.path ./skills5.OpenClaw 首次启动配置AI模型
openclaw-cn onboard6 其他
日常启动: openclaw-cn gateway stop openclaw-cn gateway start 打开界面:openclaw-cn dashboard 遇到问题:openclaw-cn doctor 或 openclaw-cn logs --follow