exe.dev¶
Mục tiêu: OpenClaw Gateway chạy trên một VM exe.dev, có thể truy cập từ laptop của bạn thông qua: https://<vm-name>.exe.xyz
Trang này giả định bạn sử dụng image exeuntu mặc định của exe.dev. Nếu bạn chọn một distro khác, hãy ánh xạ các gói tương ứng.
Lối nhanh cho người mới¶
- https://exe.new/openclaw
- Điền khóa/token xác thực của bạn khi được yêu cầu
- Nhấp vào "Agent" bên cạnh VM của bạn và chờ…
- ???
- Có lãi
Những gì bạn cần¶
- Tài khoản exe.dev
- Quyền truy cập
ssh exe.devvào máy ảo exe.dev (tùy chọn)
Cài đặt tự động với Shelley¶
Shelley, agent của exe.dev, có thể cài đặt OpenClaw ngay lập tức với prompt. The prompt used is as below:
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 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.
Cài đặt thủ công¶
1. Tạo VM¶
Từ thiết bị của bạn:
ssh exe.dev new
Sau đó kết nối:
ssh <vm-name>.exe.xyz
Mẹo: hãy giữ VM này ở trạng thái stateful. OpenClaw lưu trữ trạng thái tại ~/.openclaw/ và ~/.openclaw/workspace/.
2. Cài đặt các yêu cầu tiên quyết (trên VM)¶
sudo apt-get update
sudo apt-get install -y git curl jq ca-certificates openssl
3. Cài đặt OpenClaw¶
Chạy script cài đặt OpenClaw:
curl -fsSL https://openclaw.ai/install.sh | bash
4. Thiết lập nginx để proxy OpenClaw sang cổng 8000¶
Chỉnh sửa /etc/nginx/sites-enabled/default với
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. Truy cập OpenClaw và cấp quyền¶
Truy cập https://<vm-name>.exe.xyz/ (xem kết quả Control UI từ quá trình onboarding). Nếu được yêu cầu xác thực, hãy dán
token from gateway.auth.token on the VM (retrieve with openclaw config get gateway.auth.token, or generate one
with openclaw doctor --generate-gateway-token). Approve devices with openclaw devices list and
openclaw devices approve <requestId>. When in doubt, use Shelley from your browser!
Truy cập từ xa¶
Quyền truy cập từ xa được xử lý bởi cơ chế xác thực của exe.dev. Bằng cách
default, HTTP traffic from port 8000 is forwarded to https://<vm-name>.exe.xyz
with email auth.
Cập nhật¶
npm i -g openclaw@latest
openclaw doctor
openclaw gateway restart
openclaw health
Hướng dẫn: Updating