OPENCLAW docker setup flow:
cd docker
git clone https://github.com/openclaw/openclaw.ai
cd openclaw
nano docker-compose.yml (fix: allow docker cli container to connect to gateway: https://github.com/openclaw/openclaw/pull/12504/changes)
./docker-setup.sh
result:
When prompted:
- Gateway bind: lan
- Gateway auth: token
- Gateway token: THE_TOKEN
- Tailscale exposure: Off
- Install Gateway daemon: No
docker compose cp openclaw-gateway:/home/node/.openclaw/openclaw.json ./openclaw.config
nano openclaw.config --> put the token where needed in the config: THE_TOKEN
docker compose cp ./openclaw.config openclaw-gateway:/home/node/.openclaw/openclaw.json
nano .env:
add:
CLAUDE_AI_SESSION_KEY=
CLAUDE_WEB_COOKIE=
CLAUDE_WEB_SESSION_KEY=
nano docker-compose.yml (edits on cli):
add this row under volumes to enable sandboxes later: - /var/run/docker.sock:/var/run/docker.sock
add a new section tmpfs:
-/tmp
add a new section read_only: true
nano docker-compose.yml (edits on gateway):
update ports section like this:
ports:
- "127.0.0.1:18789:18789"
- "127.0.0.1:18790:18790"
docker compose down && docker compose up -d
to make the webUI device-pairing:
docker compose exec openclaw-gateway node dist/index.js devices list
docker compose exec openclaw-gateway node dist/index.js devices approve --latest
docker compose exec openclaw-gateway node dist/index.js status
Result of the last command (gateway section):
│ Gateway │ local · wss://127.0.0.1:18789 (local loopback) · unreachable (connect failed: self-signed certificate)
And the agents seems to be unable to use the cronjobs from the application itself or browsing the web with a headless browser or do tasks on the system itself.