Caricamento in corso...
Caricamento in corso...
Last synced: Today, 22:00
Technical reference for the OpenClaw framework. Real-time synchronization with the official documentation engine.
Use this file to discover all available pages before exploring further.
Goal: OpenClaw Gateway running on an exe.dev VM, reachable from your laptop via:
https://<vm-name>.exe.xyzThis page assumes exe.dev's default exeuntu image. If you picked a different distro, map packages accordingly.
https://<vm-name>.exe.xyz/gateway.auth.modeopenclaw devices approve <requestId>ssh exe.devShelley, exe.dev's agent, can install OpenClaw instantly with our prompt. The prompt used is as below:
textSet 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.
From your device:
bashssh exe.dev new
Then connect:
bashssh <vm-name>.exe.xyz
bashsudo apt-get update sudo apt-get install -y git curl jq ca-certificates openssl
Run the OpenClaw install script:
bashcurl -fsSL https://openclaw.ai/install.sh | bash
Edit
/etc/nginx/sites-enabled/defaulttextserver { 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 $remote_addr; proxy_set_header X-Forwarded-Proto $scheme; # Timeout settings for long-lived connections proxy_read_timeout 86400s; proxy_send_timeout 86400s; } }
Overwrite forwarding headers instead of preserving client-supplied chains. OpenClaw trusts forwarded IP metadata only from explicitly configured proxies, and append-style
X-Forwarded-ForAccess
https://<vm-name>.exe.xyz/gateway.auth.tokenopenclaw config get gateway.auth.tokenopenclaw doctor --generate-gateway-tokengateway.auth.passwordOPENCLAW_GATEWAY_PASSWORDopenclaw devices listopenclaw devices approve <requestId>For remote hosts, prefer one
config patchconfig set~/.openclaw/.envopenclaw.jsonOn the VM, make the service environment contain the secrets it needs:
bashcat >> ~/.openclaw/.env <<'EOF' SLACK_BOT_TOKEN=xoxb-... SLACK_APP_TOKEN=xapp-... DISCORD_BOT_TOKEN=... OPENAI_API_KEY=sk-... EOF
From your local machine, create a patch file and pipe it to the VM:
json5// openclaw.remote.patch.json5 { secrets: { providers: { default: { source: "env" }, }, }, channels: { slack: { enabled: true, mode: "socket", botToken: { source: "env", provider: "default", id: "SLACK_BOT_TOKEN" }, appToken: { source: "env", provider: "default", id: "SLACK_APP_TOKEN" }, groupPolicy: "open", requireMention: false, }, discord: { enabled: true, token: { source: "env", provider: "default", id: "DISCORD_BOT_TOKEN" }, dmPolicy: "disabled", dm: { enabled: false }, groupPolicy: "allowlist", }, }, agents: { defaults: { model: { primary: "openai/gpt-5.5" }, models: { "openai/gpt-5.5": { params: { fastMode: true } }, }, }, }, }
bashssh <vm-name>.exe.xyz 'openclaw config patch --stdin --dry-run' < ./openclaw.remote.patch.json5 ssh <vm-name>.exe.xyz 'openclaw config patch --stdin' < ./openclaw.remote.patch.json5 ssh <vm-name>.exe.xyz 'openclaw gateway restart && openclaw health'
Use
--replace-pathbashssh <vm-name>.exe.xyz 'openclaw config patch --stdin --replace-path "channels.discord.guilds[\"123\"].channels"' < ./discord.patch.json5
Remote access is handled by exe.dev's authentication. By default, HTTP traffic from port 8000 is forwarded to
https://<vm-name>.exe.xyzbashnpm i -g openclaw@latest openclaw doctor openclaw gateway restart openclaw health
Guide: Updating
© 2024 TaskFlow Mirror
Powered by TaskFlow Sync Engine