平台支持
OpenClaw 支持在多种操作系统和云平台上运行,从桌面到服务器到移动设备。
桌面平台
| 平台 | 支持 | Gateway 服务 |
|---|---|---|
| macOS | 完整支持 | LaunchAgent |
| Linux | 完整支持 | systemd |
| Windows | 通过 WSL2 | systemd (WSL2) |
macOS
macOS 是 OpenClaw 的主要开发平台,提供最完整的功能支持:
- 原生 macOS 应用(菜单栏、通知、画布、语音唤醒)
- Gateway 作为 LaunchAgent 后台运行
- 支持 XPC 进程间通信
- 语音覆盖层和画布快照
# 安装 Gateway 服务
openclaw gateway install
# 查看服务状态
openclaw gateway status
# 停止服务
openclaw gateway stopLinux
Linux 服务器是常见的 Gateway 部署目标:
# 安装为 systemd 服务
openclaw gateway install
# 管理服务
sudo systemctl status openclaw-gateway
sudo systemctl restart openclaw-gateway
# 查看日志
journalctl -u openclaw-gateway -f移动平台
| 平台 | 说明 |
|---|---|
| iOS | 通过 Node 应用连接远程 Gateway |
| Android | 支持 Node 设备功能(相机、位置、短信等) |
云平台与 VPS
OpenClaw 支持在各种云平台上部署:
Docker
Podman
Kubernetes
Fly.io
Hetzner
GCP
DigitalOcean
Oracle Cloud
Railway
容器部署推荐使用 Docker 或 Podman:
# Docker 部署
docker run -d \
--name openclaw \
-v ~/.openclaw:/root/.openclaw \
-e ANTHROPIC_API_KEY=sk-ant-... \
openclaw/openclaw:latestRaspberry Pi
OpenClaw 可在 Raspberry Pi 上运行,适合作为始终在线的个人助手:
- 推荐 Raspberry Pi 4 或更新型号
- 使用 Node.js 运行
- 可连接摄像头、麦克风等外设
部署建议
- Gateway 建议作为系统服务运行,确保持续在线
- 远程访问通过 Tailscale 或 SSH 隧道,避免暴露端口
- 容器部署时确保挂载
~/.openclaw目录持久化数据 - WhatsApp (Baileys) 和 Telegram 在 Bun 上不可靠,请使用 Node