Skip to content

🚀 快速开始

5 分钟安装并运行你的第一个 AI 助手

选择你的平台

bash
# 使用 Homebrew 安装
brew install openclaw

# 或使用 npm
npm install -g openclaw
bash
# 使用 npm 安装(需要 Node.js 18+)
npm install -g openclaw

# 或使用安装脚本
curl -fsSL https://get.openclaw.ai | bash
bash
# 首先安装 WSL2,然后在 WSL 中执行
npm install -g openclaw
bash
docker run -d --name openclaw \
  -v ~/.openclaw:/root/.openclaw \
  ghcr.io/openclaw/openclaw:latest

步骤 1:初始化配置

bash
openclaw onboard

交互式向导会引导你完成:

  • ✅ 选择 AI 模型(推荐 Claude 或 GPT)
  • ✅ 配置 API Key
  • ✅ 连接聊天渠道(Telegram/WhatsApp 等)
  • ✅ 设置工作空间

步骤 2:启动 Gateway

bash
openclaw gateway start

💡 提示

Gateway 是 OpenClaw 的控制中枢。启动后它会在后台运行,自动连接你配置的聊天渠道。

步骤 3:开始对话

打开你配置的聊天应用(如 Telegram),给你的 AI 助手发一条消息:

你好!帮我看看今天的天气

如果收到回复——恭喜!🦞 你的 AI 助手已经上线了!

下一步

基于 MIT 协议开源