记录下openclaw安装流程,以macOS为例
安装node
- 安装brew install node 可指定版本,但openclaw 要求大于22
- 验证 node –version 出现版本号,版本号大于20即可
安装git
brew install git
git --version
输出有值即可
git version 2.39.5 (Apple Git-154)
安装并配置openclaw
- 安装openclaw
luna@ppmac ~ curl -fsSL https://openclaw.ai/install.sh | bash
🦞 OpenClaw Installer
Because texting yourself reminders is so 2024.
✓ Detected: macos
Install plan
OS: macos
Install method: npm
Requested version: latest
[1/3] Preparing environment
✓ Homebrew already installed
✓ Node.js v25.6.1 found
· Active Node.js: v25.6.1 (/opt/homebrew/bin/node)
· Active npm: 11.9.0 (/opt/homebrew/bin/npm)
[2/3] Installing OpenClaw
✓ Git already installed
· Installing OpenClaw v2026.2.26
✓ OpenClaw npm package installed
✓ OpenClaw installed
[3/3] Finalizing setup
· Refreshing loaded gateway service
✓ Gateway service metadata refreshed
✓ Gateway service restarted
✗ Probing gateway service failed — re-run with --verbose for details
error: unknown option '--probe'
(Did you mean one of --no-probe, --profile?)
🦞 OpenClaw installed successfully (2026.2.26)!
I'm in. Let's cause some responsible chaos.
· Config already present; running doctor
· Running doctor to migrate settings
✓ Doctor complete
· Config already present; skipping onboarding
· Starting setup
配置openclaw
- 安装好后会自动开始这步
选yes - 先quickstart 后面可配置

- 模型选择自己想要的模型即可,我这里选用z.ai 使用智谱模型(需要先去生成apikey 并且填入,其他模型也是一样)

- channel官方推荐telegram 这里自行选择,需要准备上网工具增加proxy配置后,粘贴bot的token ,机器上需要加配置 “proxy”:“http://127.0.0.1:7890”, 给机器人发消息 ,/start 之后会收到回复的code 然后在终端使用。openclaw pairing approve telegram QRNT5UUY(code)
至此已经配置完,可以开始使用了openclaw
- 安装好后会自动开始这步
给openclaw操控浏览器的能力
macOS
- 安装extension,命令执行后会自动下载extension包到对应文件夹下 /Users/{你的用户名}/.openclaw/browser/chrome-extension
openclaw browser extension install
在chrome里地址栏输入 chrome://extensions/ 打开开发者模式

点击加载未打包的扩展程序,然后选中extension文件夹即可

linux 可参照 https://cloud.tencent.com/developer/article/2626186
遇到的坑
- 最初用nvm 安装node ,node全局安装后总时不时出现闪退问题,后面直接采用brew install node,官方脚本安装的openclaw
- nvm安装后,卸载时,重新运行openclaw gatway install的plist .nvm路径,导致openclaw doctor始终有问题 原因是清理了.zshr后当前终端没有source 导致读取的环境变量是旧的,要么source ,要么重连一下ssh

