OpenClaw is a self-hosted AI gateway/control UI stack.
This setup runs the OpenClaw gateway with persisted local state.
flowchart LR
User([User]) -->|:18789| OpenClaw[OpenClaw Gateway]
OpenClaw --> Data[(./data)]
- The OpenClaw container starts the gateway process.
- It serves API/control endpoints on mapped ports.
- State/config files are persisted in the mounted
./datadirectory. - The startup command clears stale lock/pid files before launch.
- Image:
ghcr.io/openclaw/openclaw:main-slim-amd64 - Container name:
openclaw - Ports:
1878918791
- Persistent data:
./data:/home/node/.openclaw
- Key environment:
OPENCLAW_GATEWAY_CONTROLUI_ALLOWEDORIGINSOPENCLAW_CONTROLUI_BIND=0.0.0.0
Environment variables are currently defined directly in docker-compose.yml.
From the repository root:
cd openclaw
docker compose up -dUseful commands:
docker compose ps
docker compose logs -f
docker compose restart
docker compose down- Keep the
./datafolder backed up if you want to preserve gateway state. - Update allowed origins if you access the UI from non-localhost domains.