exe.dev
目標:OpenClaw Gateway 在 exe.dev VM 上執行,從你的筆電透過以下網址存取:https://<vm-name>.exe.xyz
本頁假設使用 exe.dev 預設的 exeuntu 映像。如果你選了不同的發行版,請對應調整套件。
新手快速路徑
- https://exe.new/openclaw
- 填入你的授權金鑰/token
- 點選 VM 旁的「Agent」,等待…
- ???
- Profit
你需要什麼
- 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
從你的裝置:
ssh exe.dev new
然後連線:
ssh <vm-name>.exe.xyz
小技巧:保持此 VM 為 stateful。OpenClaw 在 ~/.openclaw/ 和 ~/.openclaw/workspace/ 儲存狀態。
2) 安裝先決條件(在 VM 上)
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 代理 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 的 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,使用 email 驗證。
更新
npm i -g openclaw@latest
openclaw doctor
openclaw gateway restart
openclaw health
指南:更新