Skip to content

exe.dev

目標:在 exe.dev VM 上執行 OpenClaw Gateway,可透過以下方式從您的筆記型電腦存取:https://<vm-name>.exe.xyz

本頁面假設使用 exe.dev 預設的 exeuntu 映像檔。如果您選擇了不同的發行版,請相應地對應套件。

  1. https://exe.new/openclaw
  2. 視需要填入您的驗證金鑰/權杖
  3. 點擊您 VM 旁邊的「Agent」並等待 Shelley 完成佈建
  4. 開啟 https://<vm-name>.exe.xyz/ 並貼上您的 gateway 權杖以進行驗證
  5. 使用 openclaw devices approve <requestId> 批准任何待處理的裝置配對請求
  • exe.dev 帳戶
  • ssh exe.dev 存取 exe.dev 虛擬機的權限(選用)

Shelley 是 exe.dev 的代理程式,可以使用我們的提示立即安裝 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.

從您的裝置:

Terminal window
ssh exe.dev new

然後連線:

Terminal window
ssh <vm-name>.exe.xyz

提示:讓此 VM 保持 有狀態。OpenClaw 將狀態儲存在 ~/.openclaw/~/.openclaw/workspace/ 下。

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

執行 OpenClaw 安裝腳本:

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

4) 設定 nginx 將 OpenClaw 代理至連接埠 8000

Section titled “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;
}
}

存取 https://<vm-name>.exe.xyz/(請參閱入門流程中的 Control UI 輸出)。如果提示進行驗證,請貼上 VM 上 gateway.auth.token 中的權杖(使用 openclaw config get gateway.auth.token 檢索,或使用 openclaw doctor --generate-gateway-token 產生)。使用 openclaw devices listopenclaw devices approve <requestId> 批准裝置。如果不確定,請從瀏覽器使用 Shelley!

遠端存取由 exe.dev 的驗證處理。預設情況下,來自連接埠 8000 的 HTTP 流量會透過電子郵件驗證轉發到 https://<vm-name>.exe.xyz

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

指南:更新