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」,然後等待…
  4. ???
  5. 完成
  • 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 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.

從您的裝置:

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/?token=YOUR-TOKEN-FROM-TERMINAL(請參閱入門時的 Control UI 輸出)。使用 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

指南:更新