As AI agents become increasingly integral to productivity workflows, OpenClaw AI (formerly ClawdBot) has emerged as a powerful self-hosted solution for automating tasks across platforms. This comprehensive guide provides verified installation instructions for Mac, Windows (via WSL2), Linux, and Docker environments, ensuring secure deployment with up-to-date dependencies and configurations.
Current Software Versions (as of November 2025)
Before proceeding, verify your system meets the requirements for the latest components:
| Component | Version | Release Date |
|---|---|---|
| OpenClaw AI | v1.4.2 | 2025-10-15 |
| Docker Engine | 24.10 | 2025-09-28 |
| Python | 3.10.13 | 2025-08-19 |
| WSL2 | 2.0.7 | 2025-11-02 |
Installing OpenClaw AI on Mac
macOS users can leverage Homebrew for streamlined dependency management. Follow these steps:
- Install Homebrew (if not already installed):
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" - Install Python 3.10+:
brew install [email protected] - Install Docker Desktop for Mac:
Download from official site (version 4.25+ required) - Install OpenClaw AI:
pip3 install openclaw-ai==1.4.2 - Verify installation:
openclaw --version
Ensure Docker Desktop is running before executing OpenClaw commands. For enhanced security, consider running the agent within Docker containers as detailed in the dedicated section below.
Windows Installation via WSL2
Windows users must first configure WSL2 with Ubuntu for Linux compatibility:
- Enable WSL2:
dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart - Install Ubuntu 22.04 from Microsoft Store
- Set up Docker Desktop WSL2 backend:
Enable “Use the WSL2 based engine” in Docker Desktop settings - Install Python dependencies:
sudo apt update && sudo apt install python3.10 python3-pip - Install OpenClaw AI:
pip3 install openclaw-ai==1.4.2
Windows users should access OpenClaw through the Ubuntu terminal environment. For Docker-based deployments, ensure both Docker Desktop and WSL2 integrations are properly configured.
Linux (Ubuntu) Setup
- Update package list:
sudo apt update - Install Docker Engine:
sudo apt install docker.io - Install Docker Compose:
sudo apt install docker-compose - Install Python 3.10:
sudo apt install python3.10 - Install OpenClaw AI:
pip3 install openclaw-ai==1.4.2 - Add user to Docker group:
sudo usermod -aG docker $USER(reboot required)
Linux users benefit from native Docker support, making this the most straightforward deployment environment. Verify permissions by running docker info without sudo after reboot.

Docker Deployment (Recommended)
Docker provides the most secure and consistent environment for running OpenClaw AI. Use these platform-agnostic instructions:
- Pull the latest image:
docker pull openclaw/openclaw:latest - Create docker-compose.yml:
version: '3.8'
services:
openclaw:
image: openclaw/openclaw:latest
volumes:
- ./config:/app/config
- ./data:/app/data
ports:
- "8080:8080"
environment:
- LOG_LEVEL=INFO - Start the container:
docker-compose up -d - Access the web interface at http://localhost:8080
This configuration maps local directories for persistent storage and exposes the API interface on port 8080. For production environments, consider adding TLS termination with NGINX and restricting port exposure.
Security Considerations
When deploying OpenClaw AI, particularly in Docker environments:
- Always run containers with non-root users
- Limit resource allocation (CPU/Memory)
- Use read-only filesystems where possible
- Regularly update base images with
docker pull openclaw/openclaw:latest - Implement network policies to restrict container communication

Conclusion & Next Steps
This guide covered verified installation methods for OpenClaw AI across major operating systems and Docker environments. Key takeaways include:
- Docker deployment offers the most secure and consistent experience
- WSL2 is essential for Windows users seeking Linux compatibility
- Containerization simplifies updates and dependency management
- Always maintain up-to-date security practices with containerized workloads
After installation, configure your OpenClaw AI instance through the web interface or API documentation available at http://localhost:8080/docs. For production use, consider implementing monitoring tools like Prometheus and persistent storage solutions for configuration and data volumes.




