Skip to main content

OpenClaw Installation Guide

OpenClaw is an open-source, self-hosted personal AI assistant. This guide will walk you through the installation process.

Prerequisites

  • Node.js: Version 22 or higher.
  • pnpm: Recommended for builds (optional).
  • WSL2: Highly recommended for Windows users (Ubuntu).
  • Hardware: At least 4GB RAM and an LLM with a 64k+ context window is recommended.

Installation Methods

Linux/macOS:

curl -fsSL https://openclaw.ai/install.sh | bash

Windows (PowerShell):

iwr -useb https://openclaw.ai/install.ps1 | iex

2. Global Installation via npm/pnpm

npm install -g openclaw@latest
# or
pnpm add -g openclaw@latest

3. Docker Deployment

If you prefer a containerized deployment, you can use Docker:

  1. Clone the repository: git clone https://github.com/openclaw/openclaw
  2. Enter the directory and start: docker-compose up -d

Initialization

After installation, run the following command for initial setup:

openclaw onboard

This will launch a wizard to guide you through configuring models, API keys, gateway settings, etc.