Set Up OpenClaw on Local (Linux)
Free
Run on any Linux machine. Great for home servers or spare hardware.
Setup Guide for Local (Linux)
Pros
- No monthly cost
- Full control
- Native Docker support
Cons
- Must keep machine running
- Self-managed updates
- No remote access without VPN
Quick Overview
Linux has native Docker support, making it the simplest local setup. Works on Ubuntu, Debian, Fedora, Arch, or any distro that supports Docker.
Setup Steps
# 1. Install Docker (Ubuntu/Debian)
curl -fsSL https://get.docker.com | sh
sudo apt install -y docker-compose-plugin
sudo usermod -aG docker $USER
# Log out and back in for group change to take effect
# 2. Create project directory
mkdir -p ~/openclaw && cd ~/openclaw
# 3. Create docker-compose.yml
cat > docker-compose.yml << 'EOF'
services:
openclaw:
image: ghcr.io/nicepkg/openclaw:latest
container_name: openclaw
restart: unless-stopped
ports:
- "3000:3000"
volumes:
- ./data:/app/data
environment:
- OPENAI_API_KEY=your-api-key-here
- GATEWAY_TOKEN=your-secret-token
EOF
# 4. Start OpenClaw
docker compose up -d
Verify
docker compose ps
curl http://localhost:3000
Open http://localhost:3000 in your browser.
Common Issues
"Permission denied" on Docker: Run sudo usermod -aG docker $USER then log out and back in.
Systemd auto-start: Docker's restart policy handles container restarts, but make sure Docker itself starts on boot: sudo systemctl enable docker
Frequently Asked Questions
Is Local (Linux) good for beginners?
Yes — Local (Linux) is a solid choice for deploying OpenClaw. No monthly cost
How long does Local (Linux) setup take?
Most users get OpenClaw running on Local (Linux) in about 15 minutes. The process involves deploying a VPS, installing Docker, and starting the OpenClaw container.
Is Local (Linux) the cheapest option for OpenClaw?
Local (Linux) is priced at Free. For a full comparison of all hosting options, check our setup guide at setupopenclaw.ai/setup.