Appearance
exe.dev
目标:OpenClaw Gateway 运行在 exe.dev 虚拟机上,可通过 https://<vm-name>.exe.xyz 从笔记本远程访问——让你的龙虾随时在线。
本页假设 exe.dev 默认的 exeuntu 镜像。如果你选择了其他发行版,请相应调整软件包命令。
快速上路
- 打开 https://exe.new/openclaw
- 根据需要填写认证 key/token
- 点击 VM 旁边的 "Agent",等待 Shelley 完成预配
- 打开
https://<vm-name>.exe.xyz/,粘贴你的 Gateway 令牌进行认证 - 使用
openclaw devices approve <requestId>审批待处理的设备配对请求
你需要什么
- exe.dev 账号
- (可选)通过
ssh exe.dev访问 exe.dev 虚拟机的权限
使用 Shelley 自动安装
Shelley 是 exe.dev 的 Agent,可以使用我们的提示词一键安装 OpenClaw。使用的提示词如下:
Set up OpenClaw (https://docs.openclaw.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 devices 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
从你的设备:
bash
ssh exe.dev new然后连接:
bash
ssh <vm-name>.exe.xyz提示:保持此 VM 有状态。OpenClaw 将状态存储在 ~/.openclaw/ 和 ~/.openclaw/workspace/ 下。
2) 安装前置依赖(在 VM 上)
bash
sudo apt-get update
sudo apt-get install -y git curl jq ca-certificates openssl3) 安装 OpenClaw
运行 OpenClaw 安装脚本:
bash
curl -fsSL https://openclaw.ai/install.sh | bash4) 配置 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/(见引导配置输出的 Control UI 地址)。如果提示认证,粘贴 VM 上 gateway.auth.token 的值(通过 openclaw config get gateway.auth.token 获取,或用 openclaw doctor --generate-gateway-token 生成新令牌)。使用 openclaw devices list 和 openclaw devices approve <requestId> 审批设备。遇到问题时可以直接用浏览器中的 Shelley!
远程访问
远程访问由 exe.dev 的认证处理。默认情况下,来自 8000 端口的 HTTP 流量会被转发到 https://<vm-name>.exe.xyz,并带有邮件认证。
更新
bash
npm i -g openclaw@latest
openclaw doctor
openclaw gateway restart
openclaw health指南:Updating