How to Set Up OpenClaw
Complete Installation Guide
A detailed step-by-step walkthrough of installing, configuring, and securing OpenClaw on your hardware. From zero to running in 30 minutes.

Before You Start
Not comfortable with the command line? No problem — we offer professional OpenClaw setup services where our team handles everything for you.
Choose Your Hardware
The first decision is what hardware to run OpenClaw on. Your choice depends on your budget, whether you need always-on availability, and whether you plan to run local AI models.
Mac Mini M4
16GB RAM, M4 chip
Best for local AI models & performance
~$599 USD
Cloud VPS
4-8GB RAM, 2+ vCPUs
Best for always-on & remote access
~$24/mo USD
Raspberry Pi 5 (8GB)
8GB RAM, ARM CPU
Best budget dedicated device
~$80 USD
Existing Desktop/Laptop
4GB+ RAM, any modern CPU
Best for trying it out
Free (use what you have)
Tip: If you're just testing OpenClaw, use your existing machine. For production use, a dedicated Mac Mini M4 or VPS is recommended.
Install Prerequisites
OpenClaw requires Node.js version 22.12.0 or later. This specific version is critical for security patches. Here's how to install it on each platform:
# Install nvm if you don't have it
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.1/install.sh | bash
# Install Node.js 22
nvm install 22
nvm use 22
# Verify version (must be 22.12.0+)
node --version# First, ensure WSL2 is installed
wsl --install
# Then inside WSL2 terminal:
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.1/install.sh | bash
nvm install 22
node --versionImportant: PowerShell is NOT supported. Windows users must use WSL2 (Windows Subsystem for Linux).
Install OpenClaw
OpenClaw can be installed with a single command. The installer will guide you through the initial configuration.
npx openclaw@latestThe installer will present several options. For your first setup, we recommend:
QuickStart sets up OpenClaw with safe defaults. It's the recommended option for beginners and configures basic security automatically.
Configure Your AI Provider
OpenClaw needs an AI model to power its intelligence. You can use cloud APIs or run models locally with Ollama.
Claude API (Anthropic)
Best overall performance. Excellent at following instructions and taking actions safely.
Get API key from console.anthropic.com
OpenAI GPT
Strong general performance. Good for coding and creative tasks.
Get API key from platform.openai.com
Google Gemini
Good performance with generous free tier.
Get API key from ai.google.dev
Ollama (Local)
100% offline. No API costs. Requires 8GB+ RAM.
Install from ollama.com, then pull a model
# OpenClaw config is typically at ~/.openclaw/config.yaml
# The installer sets this up, but you can edit it:
provider: claude
api_key: sk-ant-your-key-here
# Or for local Ollama:
# provider: ollama
# model: llama3.2Connect Your Messaging Platform
One of OpenClaw's best features is that you control it from whatever messaging app you already use. Here's how to set up the most popular options:
- Enable WhatsApp connector in OpenClaw config
- Scan the QR code shown in your terminal with WhatsApp
- Send a test message to verify the connection
Telegram
- Create a new bot via @BotFather on Telegram
- Copy the bot token to your OpenClaw config
- Start a chat with your bot and send a test message
Slack
- Create a new Slack App in your workspace
- Configure the OAuth scopes and bot tokens
- Add the credentials to your OpenClaw config
Harden Security
Critical: OpenClaw is experimental software. Do NOT skip security hardening. The ClawHavoc campaign exposed 341 malicious skills — take security seriously.
Essential security steps for any OpenClaw installation:
Enable Token Authentication
Generate a 48-character hex token for all non-loopback connections
Run in Isolated Environment
Use a dedicated user account or Docker container. Never run as root.
Configure Firewall Rules
Only expose required ports. Block all unnecessary inbound traffic.
Encrypt All Connections
Use SSH tunneling or Tailscale for remote access. Never expose plain HTTP.
Vet ClawHub Skills
Always review source code and community reviews before installing any skill.
# Generate a secure random token
openssl rand -hex 24
# Add to your OpenClaw config:
# auth_token: your-generated-token-hereInstall ClawHub Skills
ClawHub hosts over 3,000 community-built skills. Here are the most popular and useful skills to install first:
Security reminder: Always vet skills before installing. Check the source code, review count, and author reputation on ClawHub. Never install skills from unknown or unverified sources.
Set Up Remote Access
To access OpenClaw from outside your local network, you need to configure secure remote access. Here are the recommended methods (from simplest to most advanced):
Method 1: SSH Tunneling (Simplest & Most Secure)
# On your local machine, create an SSH tunnel:
ssh -L 18789:localhost:18789 user@your-server-ip
# Then access OpenClaw at:
# http://localhost:18789Method 2: Tailscale VPN (Recommended for Teams)
Install Tailscale on both your server and client device. OpenClaw will be accessible via your Tailscale IP — no port forwarding or firewall changes needed.
Method 3: Nginx Reverse Proxy (Advanced)
For production deployments, use Nginx as a reverse proxy with SSL termination via Let's Encrypt. This provides HTTPS access with proper certificate management.
Congratulations! OpenClaw is Running
Your AI personal assistant is now installed and configured. Here are some next steps to get the most out of OpenClaw:
Explore ClawHub
Browse 3,000+ skills to extend OpenClaw's capabilities
Set Up Routines
Create morning briefings, email summaries, and scheduled tasks
Connect More Tools
Add n8n workflows, CRM integrations, and custom APIs
More OpenClaw Resources
Complete OpenClaw Guide
Everything you need to know about OpenClaw — history, features, security, and business use cases.
Read GuideProfessional Setup Service
Let our team handle the installation, security hardening, and configuration. Packages from $490.
View PackagesAI Automation
Combine OpenClaw with n8n and custom AI workflows for enterprise-grade automation.
Learn More