# Mac/Linux
curl -fsSL https://openclaw.ai/install.sh | bash
# Windows (PowerShell)
iwr https://openclaw.ai/install.ps1 -useb | iex
确保 Windows 10/11 系统,已安装 PowerShell 5.1+,并有管理员权限
以管理员身份打开 PowerShell,执行以下命令:
iwr https://openclaw.ai/install.ps1 -useb | iex
安装程序会自动下载依赖并配置环境,首次安装约需 5-10 分钟
安装完成后,运行 openclaw start 启动服务
openclaw start
确保 macOS 12+ 系统,已安装 Homebrew(如未安装请先安装)
打开终端,执行以下命令:
curl -fsSL https://openclaw.ai/install.sh | bash
安装程序会自动安装 Node.js、ffmpeg 等依赖
安装完成后,启动服务:
openclaw start
支持 Ubuntu 20.04+ / Debian 11+ / CentOS 8+,需要 curl 和 bash
打开终端,执行以下命令:
curl -fsSL https://openclaw.ai/install.sh | bash
使用 systemd 管理服务:
sudo systemctl enable openclaw
sudo systemctl start openclaw
查看服务运行状态:
sudo systemctl status openclaw
OpenClaw 通过 Skills(技能)扩展功能。每个技能是一个可安装的模块,可以添加新的能力。
# 查看可用技能
openclaw skills list
# 安装技能
openclaw skills install <skill-name>
# 查看已安装技能
openclaw skills installed
部署完成后,建议进行以下测试确保一切正常:
打开浏览器访问 http://localhost:8080 ,确认管理界面可访问
通过配置的通讯渠道(微信/Telegram等)发送消息,确认能收到回复
尝试使用安装的技能,如发送邮件、查询日历等
配置心跳检查,确认后台任务能正常执行
# 测试命令
openclaw status # 查看运行状态
openclaw test # 运行内置测试
openclaw logs # 查看日志排查问题
OpenClaw 支持多种大语言模型,你需要配置 API Key 才能使用。
| 模型 | 提供商 | 特点 | 支持 |
|---|---|---|---|
| GPT-4 / GPT-4o | OpenAI | 最强综合能力 | ✅ |
| Claude 3.5 | Anthropic | 编程能力强 | ✅ |
| Gemini | 多模态 | ✅ | |
| M2.5 | MiniMax | 中文优化 | ✅ |
| Qwen | 阿里 | 开源本地 | ✅ |
# 在 .env 文件中配置
OPENAI_API_KEY=sk-xxxxx
ANTHROPIC_API_KEY=sk-ant-xxxxx
GOOGLE_GENERATIVE_AI_KEY=xxxxx
OpenClaw 可以通过多种通讯渠道接入,你可以通过以下任一方式与 AI 对话:
# 查看可用渠道
openclaw channels list
# 启用 WhatsApp (扫码登录)
openclaw channels enable whatsapp
# 启用 Telegram (Bot Token)
openclaw channels enable telegram --token YOUR_BOT_TOKEN
# 启动服务
openclaw start
# 停止服务
openclaw stop
# 重启服务
openclaw restart
# 查看状态
openclaw status
# 查看日志
openclaw logs -f
# 更新 OpenClaw
openclaw update
在 .env 文件中添加你的 API Key,或使用 openclaw config 命令
选择并配置你想要的通讯方式(微信/Telegram等)
根据你的需求安装必要的技能
通过你的通讯渠道发送消息,开始与 AI 助手对话