Linux 应用

适用范围

网关在 Linux 上完全支持。Node.js 是推荐的运行时;出于网关渠道稳定性的考虑,不推荐 Bun。

计划推出原生 Linux 配套应用(网关优先是当前模式)。

初学者快速路径(VPS)

  1. 安装 Node.js 22+
  2. 安装 Moltbot
  3. 运行配置并安装服务
  4. 通过 SSH 隧道(或 Tailscale)访问 UI
  5. 验证 status + health

示例:

curl -fsSL https://clawd.bot/install.sh | bash
moltbot onboard --install-daemon

从你的笔记本电脑:

ssh -N -L 18789:127.0.0.1:18789 user@host

打开 http://127.0.0.1:18789/

安装和更新

  • 安装中心:/zh-cn/docs/install/
  • 更新:/zh-cn/docs/install/updating/
  • Docker 选项:/zh-cn/docs/install/docker/

网关运维

  • 运维手册:/zh-cn/docs/gateway/
  • 配置:/zh-cn/docs/gateway/configuration/
  • 日志:/zh-cn/docs/gateway/logging/

服务安装(systemd 用户单元)

常用命令:

moltbot gateway install
moltbot gateway status
moltbot gateway restart

如果需要直接管理服务:

systemctl --user status moltbot-gateway.service
journalctl --user -u moltbot-gateway.service -f

验证

moltbot status
moltbot health

延伸阅读

  • 源路径:platforms/linux.md