快速开始
npm install -g openclaw@latestpnpm add -g openclaw@latest新手引导并运行 Gateway 网关
Section titled “新手引导并运行 Gateway 网关”-
新手引导并安装服务
Terminal window openclaw onboard --install-daemon -
配对 WhatsApp
Terminal window openclaw channels login -
启动 Gateway 网关
Terminal window openclaw gateway --port 18789
完成新手引导后,Gateway 网关将通过用户服务运行。你也可以使用 openclaw gateway 手动启动。
从源码安装(开发)
Section titled “从源码安装(开发)”git clone https://github.com/openclaw/openclaw.gitcd openclawpnpm installpnpm ui:build # 首次运行时会自动安装 UI 依赖pnpm buildopenclaw onboard --install-daemon如果你还没有全局安装,可以在仓库目录中通过 pnpm openclaw ... 运行新手引导。
多实例快速开始(可选)
Section titled “多实例快速开始(可选)”OPENCLAW_CONFIG_PATH=~/.openclaw/a.json \OPENCLAW_STATE_DIR=~/.openclaw-a \openclaw gateway --port 19001发送测试消息
Section titled “发送测试消息”需要一个正在运行的 Gateway 网关。
openclaw message send --target +15555550123 --message "Hello from OpenClaw"