openclaw安装
安装
- 脚本安装
- npm安装
- 源码安装
curl -fsSL https://openclaw.ai/install.sh | bash
npm install -g openclaw@latest
克隆代码并构建
git clone https://github.com/openclaw/openclaw.git
cd openclaw
pnpm install
pnpm ui:build
pnpm build
链接cli命令
pnpm link --global
运行onboarding
openclaw onboard --install-daemon
出现以下界面,按照提示下一步即可

配置
进行配置
openclaw configure

启动服务
启动gateway
openclaw gateway
输出
🦞 OpenClaw 2026.3.11 (29dc654) — Like having a senior engineer on call, except I don't bill hourly or sigh audibly.
10:37:53 [canvas] host mounted at http://127.0.0.1:18789/__openclaw__/canvas/ (root /root/.openclaw/canvas)
10:37:53 [heartbeat] started
10:37:53 [health-monitor] started (interval: 300s, startup-grace: 60s, channel-connect-grace: 120s)
10:37:53 [gateway] agent model: anthropic/claude-opus-4-6
10:37:53 [gateway] listening on ws://127.0.0.1:18789, ws://[::1]:18789 (PID 207637)
10:37:53 [gateway] log file: /tmp/openclaw/openclaw-2026-03-13.log
10:37:53 [browser/server] Browser control listening on http://127.0.0.1:18791/ (auth=token)
访问
本地访问
http://127.0.0.1:18789

执行以下命令获取token,然后填入网关令牌处
openclaw dashboard --no-open
点击连接
