exe.dev

目标:在 exe.dev VM 上运行 OpenClaw Gateway,可通过以下方式从笔记本电脑访问:https://<vm-name>.exe.xyz

此页面假设 exe.dev 默认的 exeuntu 镜像。如果您选择了不同的发行版,请相应地映射包管理器。

初学者快速路径

  1. https://exe.new/openclaw
  2. 根据需要填写您的 auth key/token
  3. 点击您的 VM 旁边的 “Agent”,然后等待…
  4. 成功

您需要的

  • exe.dev 账户
  • ssh exe.dev 访问 exe.dev 虚拟机(可选)

使用 Shelley 自动安装

Shelley,exe.dev 的代理,可以使用我们的提示立即安装 OpenClaw。使用的提示如下:

在此 VM 上设置 OpenClaw(https://docs.openclaw.ai/install)。使用非交互式标志并接受 openclaw onboarding 风险标志。根据需要添加提供的 auth 或 token。配置 nginx 将流量从默认端口 18789 转发到默认启用站点配置的根位置,确保启用 Websocket 支持。配对通过 "openclaw devices list" 和 "openclaw devices approve <request id>" 完成。确保仪表板显示 OpenClaw 的健康状态正常。exe.dev 为我们处理从端口 8000 到端口 80/443 的转发和 HTTPS,因此最终的 "reachable" 应该是 <vm-name>.exe.xyz,无需指定端口。

手动安装

1) 创建 VM

从您的设备:

ssh exe.dev new

然后连接:

ssh <vm-name>.exe.xyz

提示:保持此 VM 有状态。OpenClaw 将状态存储在 ~/.openclaw/~/.openclaw/workspace/ 下。

2) 安装前提条件(在 VM 上)

sudo apt-get update
sudo apt-get install -y git curl jq ca-certificates openssl

3) 安装 OpenClaw

运行 OpenClaw 安装脚本:

curl -fsSL https://openclaw.ai/install.sh | bash

4) 设置 nginx 代理 OpenClaw 到端口 8000

编辑 /etc/nginx/sites-enabled/default

server {
    listen 80 default_server;
    listen [::]:80 default_server;
    listen 8000;
    listen [::]:8000;

    server_name _;

    location / {
        proxy_pass http://127.0.0.1:18789;
        proxy_http_version 1.1;

        # WebSocket 支持
        proxy_set_header Upgrade $http_upgrade;
        proxy_set_header Connection "upgrade";

        # 标准代理头
        proxy_set_header Host $host;
        proxy_set_header X-Real-IP $remote_addr;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
        proxy_set_header X-Forwarded-Proto $scheme;

        # 长连接的超时设置
        proxy_read_timeout 86400s;
        proxy_send_timeout 86400s;
    }
}

5) 访问 OpenClaw 并授予权限

访问 https://<vm-name>.exe.xyz/(请参阅 onboarding 输出的 Control UI)。如果提示认证,请粘贴 VM 上 gateway.auth.token 中的 token(使用 openclaw config get gateway.auth.token 检索,或使用 openclaw doctor --generate-gateway-token 生成)。使用 openclaw devices listopenclaw devices approve <requestId> 批准设备。有疑问时,请使用浏览器中的 Shelley!

远程访问

远程访问由 exe.dev 的认证处理。默认情况下,来自端口 8000 的 HTTP 流量会转发到 https://<vm-name>.exe.xyz 并使用邮箱认证。

更新

npm i -g openclaw@latest
openclaw doctor
openclaw gateway restart
openclaw health

指南:更新