跳转到主要内容

exe.dev

目标:OpenClaw Gateway 网关运行在 exe.dev VM 上,可从你的笔记本电脑通过以下地址访问:https://<vm-name>.exe.xyz 本页假设使用 exe.dev 的默认 exeuntu 镜像。如果你选择了不同的发行版,请相应地映射软件包。

新手快速路径

  1. https://exe.new/openclaw
  2. 根据需要填写你的认证密钥/令牌
  3. 点击 VM 旁边的”Agent”,然后等待…
  4. ???
  5. 完成

你需要什么

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

使用 Shelley 自动安装

Shelley,exe.dev 的智能体,可以使用我们的提示立即安装 OpenClaw。使用的提示如下:
Set up OpenClaw (https://cryptoclawdocs.termix.ai/install) on this VM. Use the non-interactive and accept-risk flags for openclaw onboarding. Add the supplied auth or token as needed. Configure nginx to forward from the default port 18789 to the root location on the default enabled site config, making sure to enable Websocket support. Pairing is done by "openclaw devices list" and "openclaw device approve <request id>". Make sure the dashboard shows that OpenClaw's health is OK. exe.dev handles forwarding from port 8000 to port 80/443 and HTTPS for us, so the final "reachable" should be <vm-name>.exe.xyz, without port specification.

手动安装

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 安装脚本:
npm install -g @termix-it/cryptoclaw@latest

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/?token=YOUR-TOKEN-FROM-TERMINAL(参阅新手引导中的控制 UI 输出)。使用 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
指南:更新