Skip to main content
🦞
🐳

Docker Installation

One command deployment anywhere

Quick Start

Run OpenClaw with a single command:

$docker run -d -p 3000:3000 -e ANTHROPIC_API_KEY=your_key openclaw/openclaw:latest

Recommended: Docker Compose

For persistent data and easier configuration, use Docker Compose:

docker-compose.yml
version: '3.8'
services:
  openclaw:
    image: openclaw/openclaw:latest
    container_name: openclaw
    restart: unless-stopped
    ports:
      - "3000:3000"
    volumes:
      - ./data:/app/data
      - ./config:/app/config
    environment:
      - ANTHROPIC_API_KEY=your_api_key_here
      # Or use OpenAI:
      # - OPENAI_API_KEY=your_api_key_here

Then run:

$docker-compose up -d

Configuration

You can configure OpenClaw via environment variables:

VariableDescription
ANTHROPIC_API_KEYYour Anthropic API key
OPENAI_API_KEYYour OpenAI API key
OLLAMA_HOSTOllama server URL (for local AI)
PORTWeb interface port (default: 3000)

Updating

To update to the latest version:

$docker-compose pull
$docker-compose up -d

Need Help?

Check the troubleshooting guide or join our Discord community.

Cookie Preferences

We use essential cookies and analytics to operate and improve the site. Advertising cookies are loaded only after you consent. Privacy Policy