A lightweight Docker image for quick and easy deployment of OpenClaw ("lobster🦞" AI Agent) .
| Image | Tag | Description |
|---|---|---|
| gentkit/openclaw | <OPENCLAW_VERSION>-alpine | OpenClaw <OPENCLAW_VERSION> based on Alpine Linux (gentkit/alpine:latest) |
| gentkit/openclaw | latest-alpine | Current OpenClaw version based on Alpine Linux (gentkit/alpine:latest) |
step 1 : Create home directory and set permission
sudo mkdir -p /usr/local/openclawstep 2 : Generate and remember your token
#
# Replace <your_token> in [step 3] and use it for first-time setup at http://localhost:18789
# Must match exactly
## e.g. CentOS / RHEL / Fedora
sudo yum install openssl -y && openssl rand -hex 32
## e.g. Debian / Ubuntu
sudo apt install openssl -y && openssl rand -hex 32step 3 : Pull and run a new container
sudo docker run -d \
-p 18789:18789 \
-v /usr/local/openclaw:/root/.openclaw:rw \
-e GATEWAY_TOKEN=<your_token> \
--restart unless-stopped \
--name OpenClaw \
gentkit/openclaw:latestNOTE : It's recommended to set up /root/.openclaw as a volume to ensure that your OpenClaw data can be backed up on your host.
GATEWAY_TOKEN can be set to any value you prefer (obtainable via openssl rand -hex 32). If not provided, the system will retrieve it via openssl rand -hex 32 by default.
ls -l ~/.openclaw# enter Docker container
docker exec -it <your_container_id or your_container_name> /bin/bash
# view or edit
vi ~/.openclaw/openclaw.json# start OpenClaw gateway
docker start <your_container_id or your_container_name>
# stop OpenClaw gateway
docker stop <your_container_id or your_container_name>http://localhost:18789