How to Install OpenClaw: Step-by-Step Setup Guide (10 Minutes)

Complete OpenClaw setup guide with Apidog integration. Install Node.js, connect WhatsApp, configure LLM, and automate API testing. Step-by-step for Mac, Windows, Linux.

Ashley Innocent

Ashley Innocent

5 March 2026

How to Install OpenClaw: Step-by-Step Setup Guide (10 Minutes)

TL;DR

Setting up OpenClaw takes 10-15 minutes. Install Node.js, run the OpenClaw CLI wizard, connect WhatsApp (or Telegram/Discord), configure your LLM provider, and send your first message. This guide covers every step with troubleshooting tips for Mac, Windows, and Linux, plus how to integrate with Apidog for API development workflows.

Prerequisites

Before you start, make sure you have:

button

System Requirements

Component Minimum Recommended
RAM 2GB 4GB+
Storage 500MB 1GB+
OS macOS 10.15+, Windows 10+, Linux Latest versions
Internet Required for cloud LLMs Stable connection

Step 1: Install Node.js

OpenClaw runs on Node.js. Check if you already have it:

node --version

If you see v18.0.0 or higher, skip to Step 2. Otherwise, install Node.js:

macOS

Option A: Official Installer

  1. Visit nodejs.org
  2. Download the LTS version
  3. Run the installer
  4. Verify: node --version

Option B: Homebrew

brew install node

Windows

  1. Visit nodejs.org
  2. Download the Windows installer (.msi)
  3. Run the installer (accept defaults)
  4. Restart your terminal
  5. Verify: node --version

Linux (Ubuntu/Debian)

curl -fsSL https://deb.nodesource.com/setup_20.x | sudo -E bash -
sudo apt-get install -y nodejs

Verify installation:

node --version
npm --version

Step 2: Install OpenClaw CLI

Open your terminal and run:

npm install -g openclaw

This installs the OpenClaw command-line tool globally. The process takes 1-2 minutes.

Troubleshooting:

Error: Permission denied (Mac/Linux)

sudo npm install -g openclaw

Error: npm not found (Windows)

Verify installation:

openclaw --version

You should see the version number (e.g., 2.1.0).

Step 3: Run the Onboarding Wizard

Start the setup wizard:

openclaw init

The wizard guides you through configuration. Answer each prompt:

3.1: Choose Your LLM Provider

? Which LLM provider do you want to use?
  > Anthropic (Claude)
    OpenAI (GPT-4)
    Local Model (Ollama)
    Custom API

Recommendation: Claude Sonnet 4.6 offers the best balance of speed, quality, and cost.

3.2: Enter Your API Key

? Enter your Anthropic API key:

Get your API key:

Paste the key and press Enter. The wizard validates it automatically.

3.3: Select Messaging Platform

? Which messaging platform do you want to connect?
  > WhatsApp (recommended)
    Telegram
    Discord
    Slack
    iMessage (macOS only)

WhatsApp is the most popular choice. It works on all platforms and requires no bot setup.

3.4: Configure Storage

? Where should OpenClaw store data?
  > ~/.openclaw (default)
    Custom path

Accept the default unless you have a specific reason to change it.

3.5: Enable Tools

? Which tools should OpenClaw have access to?
  [x] read - Read files
  [x] write - Write files
  [x] exec - Execute commands
  [x] web_search - Search the internet
  [x] web_fetch - Fetch web pages
  [x] memory - Store memories
  [x] schedule - Schedule tasks

Security Note: Only enable tools you trust. Start with read, write, web_search, and memory. Add exec later if needed.

Step 4: Connect WhatsApp

After the wizard completes, OpenClaw displays a QR code in your terminal.

4.1: Scan the QR Code

  1. Open WhatsApp on your phone
  2. Tap the three dots (Android) or Settings (iPhone)
  3. Select “Linked Devices”
  4. Tap “Link a Device”
  5. Scan the QR code in your terminal

4.2: Verify Connection

Once scanned, you’ll see:

✓ WhatsApp connected successfully
✓ OpenClaw is ready to use

OpenClaw creates a new chat in your WhatsApp. Send a message to test it.

Troubleshooting WhatsApp Connection

QR code doesn’t appear:

QR code expires:

Connection fails after scanning:

Step 5: Alternative Platforms

Telegram Setup

  1. Run: openclaw connect telegram
  2. Visit t.me/BotFather
  3. Send /newbot and follow instructions
  4. Copy the bot token
  5. Paste it into OpenClaw
  6. Start chatting with your bot

Discord Setup

  1. Run: openclaw connect discord
  2. Visit discord.com/developers
  3. Create a new application
  4. Go to “Bot” section and create a bot
  5. Copy the bot token
  6. Paste it into OpenClaw
  7. Invite the bot to your server

Slack Setup

  1. Run: openclaw connect slack
  2. Visit api.slack.com/apps
  3. Create a new app
  4. Enable Socket Mode
  5. Copy the app token
  6. Paste it into OpenClaw
  7. Install the app to your workspace

Step 6: Start OpenClaw

Run the OpenClaw agent:

openclaw start

You’ll see:

🦞 OpenClaw is running
📱 Connected to WhatsApp
🤖 Using Claude Sonnet 4.6
💾 Data stored in ~/.openclaw

Keep this terminal window open. OpenClaw runs in the foreground.

Run in Background (Optional):

openclaw start --daemon

This runs OpenClaw as a background process. Check status with:

openclaw status

Stop it with:

openclaw stop

Step 7: Send Your First Message

Open WhatsApp and find the OpenClaw chat. Send a message:

You: “Hello”

OpenClaw: “Hi! I’m OpenClaw, your AI assistant. I can help you with files, web searches, scheduling tasks, and more. What would you like to do?”

You: “What’s the weather in San Francisco?”

OpenClaw: [Searches the web and returns current weather]

You: “Create a file called test.txt with ‘Hello World’ in it”

OpenClaw: “Done. Created test.txt in your current directory.”

Verify the file exists:

cat test.txt

You should see: Hello World

Step 8: Integrate with Apidog (For API Developers)

If you’re an API developer, integrate OpenClaw with Apidog to automate your API workflow.

8.1: Install Apidog CLI

npm install -g apidog-cli

8.2: Configure Apidog Integration

# Set your Apidog API key
openclaw config set integrations.apidog.apiKey "YOUR_APIDOG_API_KEY"

# Set your project ID
openclaw config set integrations.apidog.projectId "YOUR_PROJECT_ID"

# Enable Apidog integration
openclaw config set integrations.apidog.enabled true

Get your Apidog API key from Apidog Settings.

8.3: Test Apidog Integration

Send a message to OpenClaw:

You: “Run Apidog tests for my API”

OpenClaw: "Running Apidog test suite…

✓ Authentication tests: 12/12 passed ✓ User endpoints: 8/8 passed ✓ Payment API: 15/15 passed

All tests passed!

8.4: Set Up API Monitoring

You: “Monitor my production API using Apidog. Check every 5 minutes.”

OpenClaw: "Monitoring enabled. I’ll check your API every 5 minutes using Apidog monitors and alert you if anything fails.

Monitored endpoints:

8.5: Automate Documentation Updates

You: “When I update API endpoints in Apidog, notify me and update our docs”

OpenClaw: "Automation configured. I’ll watch for Apidog project changes and:

  1. Notify you when endpoints are added/modified
  2. Update documentation automatically
  3. Generate changelog entries

Configuration Tips

Customize Your Experience

Edit the config file:

openclaw config edit

This opens ~/.openclaw/config.json in your default editor.

Useful Settings

Change the LLM model:

{
  "llm": {
    "provider": "anthropic",
    "model": "claude-sonnet-4-6",
    "temperature": 0.7
  }
}

Adjust memory settings:

{
  "memory": {
    "maxMessages": 100,
    "persistAcrossSessions": true
  }
}

Set default working directory:

{
  "workspace": {
    "defaultPath": "/Users/yourname/projects"
  }
}

Configure Apidog integration:

{
  "integrations": {
    "apidog": {
      "enabled": true,
      "apiKey": "your_api_key",
      "projectId": "your_project_id",
      "autoTest": true,
      "autoMonitor": true,
      "autoDoc": true
    }
  }
}

Save the file and restart OpenClaw:

openclaw restart

Common Setup Issues

Issue 1: “Command not found: openclaw”

Cause: npm global bin directory not in PATH

Fix (Mac/Linux):

echo 'export PATH="$PATH:$(npm config get prefix)/bin"' >> ~/.zshrc
source ~/.zshrc

Fix (Windows):

  1. Search for “Environment Variables”
  2. Edit PATH
  3. Add: C:\Users\YourName\AppData\Roaming\npm
  4. Restart terminal

Issue 2: “API key invalid”

Cause: Incorrect or expired API key

Fix:

  1. Get a new key from your LLM provider
  2. Run: openclaw config set llm.apiKey YOUR_NEW_KEY
  3. Restart OpenClaw

Issue 3: “Port 3000 already in use”

Cause: Another application is using port 3000

Fix:

openclaw start --port 3001

Or kill the process using port 3000:

Mac/Linux:

lsof -ti:3000 | xargs kill -9

Windows:

netstat -ano | findstr :3000
taskkill /PID <PID> /F

Issue 4: “WhatsApp disconnected”

Cause: Phone went offline or unlinked the device

Fix:

  1. Run: openclaw connect whatsapp
  2. Scan the new QR code
  3. Keep your phone connected to the internet

Issue 5: High CPU usage

Cause: OpenClaw is processing a long-running task

Fix:

Platform-Specific Notes

macOS

Windows

Linux

sudo apt-get install build-essential
openclaw install-service

Running OpenClaw 24/7

Option 1: Raspberry Pi

Many users run OpenClaw on a Raspberry Pi 4 or 5:

  1. Install Raspberry Pi OS
  2. Follow the standard setup steps
  3. Enable auto-start:
openclaw install-service

Cost: $50-100 for hardware, $0/month for hosting

Option 2: Cloud Server

Run OpenClaw on a VPS (DigitalOcean, Linode, AWS):

  1. Create a small instance ($5-10/month)
  2. SSH into the server
  3. Install Node.js and OpenClaw
  4. Run as a background service

Cost: $5-10/month

Option 3: Always-On Computer

If you have a computer that’s always on (home server, old laptop):

  1. Install OpenClaw
  2. Set it to start on boot
  3. Keep the machine running

Cost: $0/month (electricity only)

Next Steps

Now that OpenClaw is running, explore what it can do:

  1. Install skills - Add pre-built workflows for common tasks
  2. Configure tools - Enable or disable capabilities
  3. Set up automation - Create scheduled tasks with Heartbeat
  4. Join the community - Get help and share your setup
  5. Integrate with Apidog - Automate your API development workflow with Apidog

Try these commands:

Quick Start: OpenClaw + Apidog Workflow

If you’re an API developer, here’s a quick workflow to get started:

1. Set Up API Monitoring

You: "Monitor my API endpoints using Apidog. Alert me if any fail."

OpenClaw: "Monitoring configured. Checking every 5 minutes."

2. Automate Testing After Deployments

You: "After each deployment, run Apidog tests and send me results"

OpenClaw: "Automation configured. I'll run tests after deployments."

3. Keep Documentation Updated

You: "When API endpoints change in Apidog, update our documentation"

OpenClaw: "Documentation automation enabled."

4. Track API Performance

You: "Send me weekly API performance reports from Apidog"

OpenClaw: "Scheduled. You'll receive reports every Monday at 9 AM."

FAQ

Q: Do I need to keep my terminal open?A: Yes, unless you run OpenClaw as a daemon (openclaw start --daemon).

Q: Can I use multiple messaging platforms?A: Yes, connect as many as you want: openclaw connect telegram, openclaw connect discord, etc.

Q: How do I update OpenClaw?A: Run npm update -g openclaw and restart.

Q: Can I use a local LLM instead of API keys?A: Yes, install Ollama and configure OpenClaw to use it. No API costs.

Q: Is my data encrypted?A: OpenClaw stores data locally in plain text. Encrypt your disk for full protection.

Q: Can I run OpenClaw on Android/iOS?A: Not directly. Run it on a computer or server and connect via messaging apps.

Q: How much do API calls cost?A: Depends on usage. Typical users spend $5-20/month. Monitor costs in your LLM provider dashboard.

Q: Can I share OpenClaw with my team?A: Yes, but each person needs their own instance. Enterprise features are in development.

Q: Does Apidog integration cost extra?A: No, Apidog integration is free. You need an Apidog account (free tier available).

Q: Can OpenClaw work without Apidog?A: Yes, Apidog integration is optional. OpenClaw works standalone for general automation.

Conclusion

You now have OpenClaw running and connected to your messaging platform. The setup takes 10-15 minutes, but the productivity gains last forever.

Start with simple tasks—file operations, web searches, reminders—and gradually explore advanced features like skills, automation, and custom tools.

For API developers, integrating with Apidog unlocks powerful workflows: automated testing, endpoint monitoring, documentation updates, and performance tracking—all through simple text messages.

If you run into issues, check the troubleshooting section or ask the OpenClaw community on Discord.

button

Explore more

So verwenden Sie Deepseek R1 lokal mit Cursor

So verwenden Sie Deepseek R1 lokal mit Cursor

Erfahre, wie du DeepSeek R1 lokal mit Cursor IDE einrichtest & konfigurierst – privates, kostengünstiges KI-Coding.

4 June 2025

Wie man Gemma 3n auf Android ausführt?

Wie man Gemma 3n auf Android ausführt?

Erfahre, wie du Gemma 3n auf Android installierst und ausführst, mit Google AI Edge Gallery.

3 June 2025

So verwenden Sie den Google Search Console MCP-Server

So verwenden Sie den Google Search Console MCP-Server

Google Search Console & Apidog: SEO-Analyse & KI-API-Entwicklung. Installation, Konfiguration & Nutzung für Web-Performance & API-Einblicke.

30 May 2025

Praktizieren Sie API Design-First in Apidog

Entdecken Sie eine einfachere Möglichkeit, APIs zu erstellen und zu nutzen