I'm running openclaw (version 2026.1.29) I followed this doc (https://docs.openclaw.ai/platforms/gcp) to run it from VM in GCP.
I use openclaw CLI from local through SSH tunel. To start the service I execute:
docker compose up -d openclaw-gateway from ~/openclaw in my VM
this is mi docker-compose.yml file located in ~/openclaw :
services:
openclaw-gateway:
image: ${OPENCLAW_IMAGE}
build: .
restart: unless-stopped
env_file:
- .env
environment:
- HOME=/home/node
- NODE_ENV=production
- TER= xterm-256color
- OPENCLAW_GATEWAY_TOKEN=${OPENCLAW_GATEWAY_TOKEN}
- OPENCLAW_GATEWAY_BIND=${OPENCLAW_GATEWAY_BIND}
- OPENCLAW_GATEWAY_PORT=${OPENCLAW_GATEWAY_PORT}
- XDG_CONFIG_HOME=/home/node/.openclaw
- PATH=/home/linuxbrew/.linuxbrew/bin:/usr/local/sbin:/usr/local/bin:/usr/sb>
volumes:
- ${OPENCLAW_CONFIG_DIR}:/home/node/.openclaw
- ${OPENCLAW_WORKSPACE_DIR}:/home/node/.openclaw/workspace
ports:
- "127.0.0.1:${OPENCLAW_GATEWAY_PORT}:18789"
command:
[
"node",
"dist/index.js",
"gateway",
"--bind",
"${OPENCLAW_GATEWAY_BIND}",
"--port",
"${OPENCLAW_GATEWAY_PORT}"
]
this is my .env file located in ~/openclaw:
OPENCLAW_IMAGE=openclaw:latest
OPENCLAW_GATEWAY_TOKEN=XXXXXXXXXX
OPENCLAW_GATEWAY_BIND=lan
OPENCLAW_GATEWAY_PORT=18789
OPENCLAW_CONFIG_DIR=/home/$USER/.openclaw
OPENCLAW_WORKSPACE_DIR=/home/$USER/.openclaw/workspace
config.yaml file. I tried all this locations and none worked:
~/.config/openclaw/
~/.openclaw
~/.openclaw/openclaw
~/openclaw
gateway:
mode: local
bind: lan
port: 18789
@vernal mulch can you help to spot the issue?