Deploy OpenClaw on Local Computer
Deploy OpenClaw on your Windows/Mac/Linux computer for personal use and learning
This page only covers getting it running locally. An empty-shell agent, an exposed gateway and a runaway bill are the three most common first-week failures.
- Result pack → First Week Pack · archive(hardening + spend cap + research skill)
- Free route → Install Skills · Feishu · WeChat
- Stuck? → Local troubleshooting · FAQ
Prerequisites
- A computer (Windows/Mac/Linux)
- At least 4GB available memory (8GB recommended)
- Stable internet connection
- Node.js 22+ (if using npm installation)
Steps
Install Docker Desktop
Docker is a packaging tool that lets OpenClaw run on any system.
Commands
Download and install Docker Desktop: https://www.docker.com/products/docker-desktop curl -fsSL https://get.docker.com | sh Tips
- • Restart computer after installation
- • Ensure Docker Desktop is running (whale icon in system tray)
- • Windows users strongly recommended to use WSL2
macOS Extra Setup
macOS users need to install Xcode Command Line Tools first.
Commands
xcode-select --install Tips
- • If already installed, it will show 'already installed'
- • This enables AppleScript capabilities (needed for iMessage, Apple Notes skills)
Prepare Config Folder
Create a folder to store OpenClaw's configuration and data.
Commands
mkdir -p ~/openclaw && cd ~/openclaw mkdir C:\openclaw && cd C:\openclaw Tips
- • This folder will store your config and chat history
- • Recommended to place in user home directory for easy management
Pull OpenClaw Image
Download OpenClaw image from Docker Hub.
Commands
docker pull openclaw/openclaw:latest Tips
- • Image size is about 1-2GB, first download takes a few minutes
- • Ensure stable network, configure Docker mirror accelerator if slow
Run OpenClaw Container
Start OpenClaw service with Docker and mount data directories.
Commands
docker run -d --name openclaw -p 18789:18789 -p 3000:3000 -v ~/openclaw/.openclaw:/root/.openclaw -v ~/openclaw/workspace:/workspace openclaw/openclaw:latest docker run -d --name openclaw -p 18789:18789 -p 3000:3000 -v C:\openclaw\.openclaw:/root/.openclaw -v C:\openclaw\workspace:/workspace openclaw/openclaw:latest Tips
- • Important: Must mount both directories, or config and chat history will be lost on restart
- • ~/.openclaw stores runtime state, workspace stores YAML config files
- • 18789 is Gateway WebSocket port, 3000 is Web UI port
Wait for Service to Start
OpenClaw needs initialization on first start, please wait patiently.
Commands
docker logs -f openclaw Tips
- • Seeing 'Gateway started' or similar log means startup successful
- • Press Ctrl+C to exit log view (won't stop the service)
- • First startup may take 1-2 minutes
Access Web Interface
Open browser to access OpenClaw admin interface.
Commands
Open your browser and visit http://localhost:3000 Tips
- • First access requires setting admin password
- • If can't access, wait 30 seconds and retry
- • If port is occupied, modify port in run command
Initial Configuration (Onboard)
Complete initial setup including model selection, API key config, and channel setup.
Commands
In the Admin UI, click Settings → Model Configuration → Add Model Tips
- • Google Gemini is recommended for beginners (has free quota)
- • Claude, GPT-4, DeepSeek are also available
- • See FAQ below for how to get API Key
Install Daemon (Optional)
Keep OpenClaw running in background even when terminal is closed.
Commands
Docker containers already run in the background — no extra configuration needed Tips
- • Docker's --restart always ensures auto-start: docker update --restart always openclaw
- • Mac users: run 'caffeinate -i' to prevent sleep disconnect
- • Linux servers: recommend using systemd for management
Common Issues
Port is occupied?
Docker fails to start?
Config lost after container restart?
Mac disconnects after sleep?
How to view runtime logs?
How to update to latest version?
Issues running directly on Windows?
Sales closed
The experiment ended on 28 Aug 2026. Sales and purchase requests are closed. This page preserves the overview and preview for reference.