exe.dev
在 exe.dev 上运行 OpenClaw Gateway(VM + HTTPS 代理)以实现远程访问
Goal: OpenClaw Gateway running on an exe.dev VM, reachable from your laptop via: ''https://<vm-name>.exe.xyz''
本页面假设使用 exe.dev 的默认 exeuntu 镜像。如果您选择了其他发行版,请相应地映射软件包。
新手快速路径
您需要什么
- exe.dev 账户
- 对 ''exe.dev'' 虚拟机的 ''ssh exe.dev'' 访问权限(可选)
使用 Shelley 自动安装
Shelley,''exe.dev'' 的代理,可以使用我们的
提示立即安装 OpenClaw。使用的提示如下:
在此 VM 上设置 OpenClaw(https://docs.openclaw.ai/install)。对 openclaw 入门使用非交互式和接受风险标志。根据需要添加提供的认证或令牌。配置 nginx 从默认端口 18789 转发到默认启用的站点配置的根位置,确保启用 WebSocket 支持。配对通过 "openclaw devices list" 和 "openclaw device 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 support
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
# Standard proxy headers
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;
# Timeout settings for long-lived connections
proxy_read_timeout 86400s;
proxy_send_timeout 86400s;
}
}5)访问 OpenClaw 并授予权限
Access ''https://<vm-name>.exe.xyz/?token=YOUR-TOKEN-FROM-TERMINAL'' (see Control UI output from onboarding). Approve
devices with ''openclaw devices list'' and ''openclaw devices approve <requestId>''. When in doubt,
请从浏览器使用 Shelley!
远程访问
远程访问由 ''exe.dev'' 的
default, HTTP traffic from port 8000 is forwarded to ''https://<vm-name>.exe.xyz''
并使用电子邮件认证。
更新
npm i -g openclaw@latest openclaw doctor openclaw gateway restart openclaw health
指南:''更新''