OpenClaw 教程
先决条件
官方 Getting started:
- Node.js 22.22.3+、24.15+ 或 25.9+(推荐 Node 26)
- 一个模型供应商 API key(Anthropic / OpenAI / Google 等;onboarding 会问)
15 分钟内打开
1. 安装
Install / Getting started 原文:
bash
curl -fsSL https://openclaw.ai/install.sh | bashWindows PowerShell:
powershell
iwr -useb https://openclaw.ai/install.ps1 | iex已有 Node 时(GitHub README):
bash
npm install -g openclaw@latest --allow-scripts=openclaw该命令适用于 npm 12 或 npm 11.16+。npm 11.15 及更早去掉 --allow-scripts=openclaw。
可选:openclaw onboard --install-daemon(docs 首页 Quick start)。
2. 确认 Gateway
bash
openclaw gateway status官方:应看到 Gateway 监听端口 18789。
3. 打开 Control UI
bash
openclaw dashboard在浏览器 Control UI 里发第一句。手机上最快的通道官方写的是 Telegram(一个 bot token)。其它通道见官方 Channels,本仓飞书/微信/企微见侧栏已有页。
跳过可选步骤之后可用 openclaw configure 回来补。