OpenClawSkills
GitHub
平台 • 5 分钟阅读

Linux 应用

Linux 支持与伴侣应用状态

Gateway 在 Linux 上已完全支持。推荐使用 Node 作为运行时。

不建议用 Bun 跑 Gateway(WhatsApp/Telegram 存在兼容性问题)。

原生 Linux 伴侣应用在规划中。如果你愿意参与,欢迎贡献。

Tutorial.step

新手最快路径(VPS)

1. 安装 Node 22+

2. ''npm i -g openclaw@latest''

3. ''openclaw onboard --install-daemon''

4. On your laptop: ''ssh -N -L 18789:127.0.0.1:18789 <user>@<host>''

5. 打开 ''http://127.0.0.1:18789/'' 并粘贴你的 token

VPS 分步指南:''exe.dev''

Tutorial.step

安装

Tutorial.step

Gateway

Tutorial.step

Gateway 服务安装(CLI)

任意一种方式都可以:

Terminal
openclaw onboard --install-daemon

或:

Terminal
openclaw gateway install

或:

Terminal
openclaw configure

出现提示时选择 Gateway service。

修复/迁移:

Terminal
openclaw doctor
Tutorial.step

系统控制(systemd 用户单元)

OpenClaw 默认安装 systemd ''user'' 服务。对于共享或需要常驻的服务器,使用 ''system'' 服务更合适。完整 unit 示例与指导见 ''Gateway runbook''。

最小示例:

Create ''~/.config/systemd/user/openclaw-gateway[-<profile>].service'':

Terminal
[Unit]
Description=openclaw gateway (profile: '<profile>', v'<version>')
After=network-online.target
Wants=network-online.target

[Service]
ExecStart=/usr/local/bin/openclaw gateway --port 18789
Restart=always
RestartSec=5

[Install]
WantedBy=default.target

启用:

Terminal
systemctl --user enable --now openclaw-gateway[-'<profile>'].service