本文将指导你快速安装 OpenClaw 并运行你的第一个聊天会话。
前置要求
- Node.js:Node 24 推荐(Node 22.19+ 也支持)
- API Key:来自 Anthropic、OpenAI、Google 等模型提供商
安装步骤
macOS / Linux
curl -fsSL https://openclaw.ai/install.sh | bash
Windows (PowerShell)
iwr -useb https://openclaw.ai/install.ps1 | iex
运行引导设置
openclaw onboard --install-daemon
引导向导会帮你选择模型提供商、设置 API Key、配置 Gateway,大约 2 分钟完成。
验证运行状态
openclaw gateway status
你应该看到 Gateway 在端口 18789 监听。然后运行 openclaw dashboard 打开 Control UI。
发送第一条消息
在 Control UI 中输入消息,你应该能收到 AI 回复。想从手机聊天?最快的方式是设置 Telegram(只需要一个 Bot Token)。