Skip to content

安装

install

Note

nodejs >= 22

# Recommended: global install (npm/pnpm)
npm install -g openclaw@latest
# or: pnpm add -g openclaw@latest

# Onboard + install the service (launchd/systemd user service)
openclaw onboard --install-daemon

# Pair WhatsApp Web (shows QR)
openclaw channels login

# Gateway runs via the service after onboarding; manual run is still possible:
openclaw gateway --port 18789 --verbose
  • disconnected (1008): unauthorized: gateway token mismatch (open a tokenized dashboard URL or paste token in Control UI settings)

more ~/.openclaw/openclaw.json 查看token 粘贴到Overview

openclaw gateway --port 18789 --verbose

openclaw tui

无法打开浏览器,重启下网关 sudo apt install -y chromium-browser openclaw gateway start openclaw gateway restart openclaw gateway status

☁️ 部署建议
如果你打算长期运行项目(博客 / API / 自动化脚本),建议直接用云服务器,会比本地稳定很多。
👉 查看云服务器(新用户优惠)