Complete Guide to OpenClaw Installation and Configuration
OpenClaw is a personal AI assistant platform designed to run on your own devices. It integrates seamlessly with your favorite chat channels (such as WhatsApp, Telegram, Slack, Discord, etc.), providing a unified and “always-on” AI experience. This guide will walk you through the complete installation and configuration process.
Prerequisites
Before installing OpenClaw, please ensure your system meets the following requirements:
- Node.js: Node 24 is highly recommended. Node 22.16+ is also supported.
- Operating System: macOS, Linux, or Windows (WSL2 is strongly recommended for stability).
- Model API Keys: You need API keys from providers like Anthropic, OpenAI, or Google.
- Network: A stable internet connection for downloading packages and communicating with AI models.
Installation Methods
OpenClaw offers multiple installation methods. Choose the one that best fits your technical preference.
1. Recommended: Installation Script (Fastest)
The installation script automatically detects your OS, installs Node if necessary, and guides you through the initialization.
macOS / Linux / WSL2
openclaw
| |
openclaw-cn
| |
Windows (PowerShell)
openclaw
| |
openclaw-cn (Ensure Git is installed):
| |
2. Manual Installation via npm or pnpm
If you prefer managing your Node environment manually, you can install the OpenClaw CLI globally.
Using npm
| |
Using pnpm
| |
3. Source Installation (For Developers)
If you want to contribute or run from the local codebase:
openclaw
| |
openclaw-cn (using Gitee and npmmirror):
| |
Initialization and Configuration (Onboarding)
After installation, the most important step is running the onboarding wizard. It will configure your workspace, gateway, and initial AI models.
| |
The wizard will prompt you to:
- Select Model Provider: Choose between Anthropic, OpenAI, Google, etc.
- Enter API Key: Provide the API key for your chosen provider.
- Install Daemon: Install OpenClaw as a system service (recommended) to keep it running in the background.
Verifying Installation
To ensure everything is running correctly, use the following commands:
| |