13.11 exe.dev

在 exe.dev VM 上运行 OpenClaw Gateway,通过 https://<name>.exe.xyz 访问。使用默认的 exeuntu 镜像。

新手快速路径

  1. 访问 https://exe.new/openclaw
  2. 输入认证密钥/令牌
  3. 点击 VM 旁边的 "Agent" 并等待
  4. 完成!

所需准备

  • exe.dev 账户
  • ssh exe.dev 访问权限(可选)

使用 Shelley 自动安装

Shelley(exe.dev 的 AI 助手)可以使用以下提示词立即安装 OpenClaw:

在此 VM 上设置 OpenClaw (https://docs.openclaw.ai/install)。
使用非交互式和接受风险标志...

手动安装

1) 创建 VM

ssh exe.dev new
ssh <name>.exe.xyz
提示
保持 VM 有状态 — OpenClaw 将状态存储在 ~/.openclaw/~/.openclaw/workspace/ 中。

2) 安装前置依赖

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

3) 安装 OpenClaw

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

4) 配置 nginx 反向代理

编辑 /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;
    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;
  }
}

重启 nginx:

sudo systemctl restart nginx

5) 访问和批准设备

访问 https://<name>.exe.xyz/?token=YOUR-TOKEN-FROM-TERMINAL

通过以下命令批准设备:

openclaw devices list
openclaw device approve
提示
不确定时,可以在浏览器中使用 Shelley。

远程访问

由 exe.dev 认证处理。端口 8000 → https://<name>.exe.xyz 配合邮箱认证。

更新

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

指南:/install/updating

配置示例

创建或编辑 ~/.openclaw/openclaw.json

{
  "agents": {
    "defaults": {
      "model": {
        "primary": "anthropic/claude-opus-4-5",
        "fallbacks": ["anthropic/claude-sonnet-4-5", "openai/gpt-4o"]
      },
      "maxConcurrent": 4
    },
    "list": [
      {
        "id": "main",
        "default": true
      }
    ]
  },
  "auth": {
    "profiles": {
      "anthropic:default": {
        "mode": "token",
        "provider": "anthropic"
      },
      "openai:default": {
        "mode": "token",
        "provider": "openai"
      }
    }
  },
  "gateway": {
    "mode": "local",
    "bind": "auto"
  }
}

故障排查

无法访问 Gateway

检查 nginx 配置和 OpenClaw 服务状态:

sudo systemctl status nginx
openclaw status

Gateway 启动失败

查看日志:

openclaw logs
journalctl -u openclaw -f

端口冲突

如果端口 18789 被占用,可以在配置中修改:

{
  "gateway": {
    "port": 18790
  }
}

记得同时更新 nginx 配置中的 proxy_pass 地址。

优势

  • 自动 HTTPS 支持
  • 通过邮箱认证的安全访问
  • 无需手动配置防火墙
  • 集成 Shelley AI 助手快速设置
  • 简单的 VM 管理

注意事项

  • exe.dev 仍在 beta 阶段,功能可能变化
  • 确保备份 ~/.openclaw 目录
  • 定期更新 OpenClaw 和系统包
  • VM 重启后确认 OpenClaw 自动启动

相关资源