Linux 应用
Gateway 网关在 Linux 上得到完全支持。Node 是推荐的运行时。 不建议将 Bun 用于 Gateway 网关(存在 WhatsApp/Telegram bug)。
原生 Linux 配套应用已在规划中。如果你想帮助构建一个,欢迎贡献。
面向初学者的快速路径(VPS)
Section titled “面向初学者的快速路径(VPS)”- 安装 Node 24(推荐;Node 22 LTS,目前
22.16+,为了兼容性仍然可用) npm i -g openclaw@latestopenclaw onboard --install-daemon- 在你的笔记本电脑上运行:
ssh -N -L 18789:127.0.0.1:18789 <user>@<host> - 打开
http://127.0.0.1:18789/并粘贴你的令牌
分步 VPS 指南:exe.dev
Gateway 网关
Section titled “Gateway 网关”Gateway 网关服务安装(CLI)
Section titled “Gateway 网关服务安装(CLI)”使用以下任一方式:
openclaw onboard --install-daemon或者:
openclaw gateway install或者:
openclaw configure出现提示时,选择 Gateway 服务。
修复/迁移:
openclaw doctor系统控制(systemd 用户单元)
Section titled “系统控制(systemd 用户单元)”OpenClaw 默认安装 systemd 用户服务。对于共享或始终在线的服务器,请使用 系统 服务。完整的单元示例和指导 请参见 Gateway 网关运行手册。
最小设置:
创建 ~/.config/systemd/user/openclaw-gateway[-<profile>].service:
[Unit]Description=OpenClaw Gateway (profile: <profile>, v<version>)After=network-online.targetWants=network-online.target
[Service]ExecStart=/usr/local/bin/openclaw gateway --port 18789Restart=alwaysRestartSec=5
[Install]WantedBy=default.target启用它:
systemctl --user enable --now openclaw-gateway[-<profile>].service