Back to Home
OpenClaw Setup Guide

OpenClaw Setup Guide

Complete walkthrough for setting up AI automation on any platform

What is OpenClaw?

OpenClaw is a powerful automation gateway that connects WhatsApp, Telegram, Discord, and iMessage to AI agents. It's like having a personal AI assistant that can respond to messages, automate tasks, and integrate with your existing tools.

Multi-Platform

WhatsApp, Telegram, Discord, iMessage - all in one place

Secure & Private

Self-hosted, encrypted, with pairing-based access control

AI-Powered

Powered by Claude, with support for multiple AI providers

Developer-Friendly

CLI-first with extensive configuration options

🎯The Best Part

Once OpenClaw is running and you're chatting with it on Telegram (or your chosen platform), you can simply ASK it to do things and it will help you set them up.

Want it to check your Gmail? Just ask.

Want it to create calendar events? Just ask.

Want it to send you weather updates? Just ask.

It will walk you through installing the necessary skills and configuring everything. You don't need to memorize commands or read documentation — just talk to it like you would a helpful assistant.

What You'll Need

FIRST: Get a Claude Subscription (REQUIRED)

Before you do anything else, you need an active Claude subscription. This is what powers OpenClaw's AI brain. Without this, nothing will work.

  • 1.Go to claude.ai and sign up for a Pro subscription
  • 2.Get the $100+ plan (not the $20 plan — it runs out too fast for automation)
  • 3.During OpenClaw setup, you'll choose "Anthropic" as your provider and "Use existing subscription"
  • 4.No API key needed! OpenClaw will use your Claude Pro login automatically

Everything Else You Need:

  • Node.js 22 or higher - Don't worry, we'll show you how to install this in the next step
  • A terminal app - Mac/Linux: already have it. Windows: use WSL2 (we'll explain below)

For advanced users: If you prefer to use an Anthropic API key instead of a subscription, you can get one from console.anthropic.com. However, this costs more for regular use and requires more technical setup. Most people should stick with the subscription.

Step 1: Open Your Terminal

🖥️ How to open your terminal:

  • Mac: Press Cmd + Space, type "Terminal", press Enter
  • Windows: Install WSL2 first (see below), then open "Ubuntu" from Start menu
  • Linux: Press Ctrl + Alt + T

⚠️ Windows Users - Important!

OpenClaw doesn't work well on native Windows. You need to install WSL2 (Windows Subsystem for Linux) first:

  1. 1. Open PowerShell as Administrator
  2. 2. Run: wsl --install
  3. 3. Restart your computer
  4. 4. Open "Ubuntu" from your Start menu
  5. 5. Continue with the steps below inside Ubuntu

Step 2: Install Node.js

Copy and paste this command into your terminal, then press Enter:

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

(Mac users with Homebrew can use: brew install node@22)

Step 3: Install OpenClaw

Now install OpenClaw globally on your system:

npm install -g openclaw

Step 4: Run the Setup Wizard

This single command starts the interactive setup wizard AND launches the OpenClaw gateway:

openclaw onboard

What happens during onboarding:

  • 1.You'll choose "Anthropic" as your AI provider
  • 2.Select "Use existing subscription" (your Claude Pro account)
  • 3.The wizard will configure your workspace and settings
  • 4.OpenClaw starts running in the background

💡 From Here, Let OpenClaw Help You!

Once the wizard finishes and you connect a messaging platform (next step), you can just chat with OpenClaw like a helpful assistant. Want to set up Telegram? Install skills? Configure automations? Just ask it!

Example setup prompt to send after connecting:

"Hey! I just installed you. Can you help me:
- Set up my first automation
- Install some useful skills
- Show me what you can do

Explain things step-by-step, I'm new to this!"

Step 2: Run the Setup Wizard

The friendly setup wizard will walk you through everything and can install OpenClaw to run in the background (so it's always ready when you need it).

openclaw onboard --install-daemon

The wizard helps you set up:

  • Your AI connection: Link your Claude account or API key
  • Basic settings: Technical stuff you don't need to worry about
  • Messaging apps: Connect Telegram, Discord, WhatsApp, etc.
  • Security: Control who can talk to your AI assistant
  • Your workspace: Where your AI stores its memory and skills

Step 3: Connect Your AI Brain

OpenClaw needs to connect to Claude to work its magic. Here's the easiest way:

✨ Option A: Claude Subscription (RECOMMENDED)

Best for most people: This is cheaper and easier than API access. Just like you'd pay for Netflix, you pay Claude for unlimited use.

  • Get a $100+ plan at claude.ai (the $20 plan runs out too fast for automation)
  • Way more cost-effective than paying per message
  • No technical setup — just login and go

Once you have a Claude subscription, OpenClaw will use your credentials automatically. The onboarding wizard will guide you through the login.

Option B: API Key (Advanced Users)

If you're comfortable with API billing and want more control, you can use an Anthropic API key:

  1. 1.Go to console.anthropic.com and create an API key
  2. 2.The wizard will prompt you to enter it, or set it manually:
# Store your API key securely
export ANTHROPIC_API_KEY="sk-ant-..."

# Or configure it via the wizard during onboarding

⚠️ Note: API usage is billed per message and can get expensive quickly if you're using OpenClaw frequently. Most people find a Claude subscription more economical.

Step 4: Make Sure OpenClaw is Running

If you used the setup wizard, OpenClaw is probably already running in the background. Let's check:

openclaw gateway status

If it's not running, you can start it:

openclaw gateway --port 18789 --verbose

✓ Web Dashboard: Once it's running, you can view the control panel at http://127.0.0.1:18789

Step 5: Connect a Messaging Channel

Choose whichever platform you prefer. We've listed them from easiest to most complex:

⭐ Telegram (RECOMMENDED - Easiest!)

Why Telegram is best for beginners:

  • Simplest setup — just create a bot through BotFather
  • OpenClaw appears as a separate contact, not your own messages
  • You get proper notifications when your assistant replies
  • Perfect for personal use
  1. 1.Message @BotFather on Telegram
  2. 2.Send /newbot and follow the prompts to name your bot
  3. 3.Copy the API token BotFather gives you
  4. 4.Add it to your OpenClaw config (the wizard will help with this)

Discord (Good for Teams)

Discord requires creating a bot application, which is a bit more involved but great if you want to use OpenClaw in a server with friends or teammates.

  1. 1.Go to Discord Developer Portal
  2. 2.Click "New Application" and give it a name
  3. 3.Go to the "Bot" tab and click "Add Bot"
  4. 4.Copy the bot token and save it securely
  5. 5.Use the OAuth2 URL generator to create an invite link for your server

WhatsApp (Advanced)

⚠️ Heads up: WhatsApp has some quirks:

  • Messages come from YOUR own number, not a separate bot
  • You won't get notifications unless you check the chat (it's you texting yourself)
  • Works better if you give OpenClaw its own phone number
  • Setup is more complicated than Telegram or Discord

If you still want to use WhatsApp, here's how:

openclaw channels login

This will display a QR code. Open WhatsApp on your phone → Settings Linked DevicesLink a Device and scan the code.

Step 6: Approve Pairing Requests

By default, OpenClaw requires pairing approval for new DM conversations. This prevents unauthorized access.

When you send your first message, OpenClaw will respond with a pairing code. Approve it from the command line:

# List pending pairing requests
openclaw pairing list whatsapp

# Approve a specific code
openclaw pairing approve whatsapp <code>

⚠️ Security Tip: Never approve pairing codes from unknown numbers. This is your first line of defense against unauthorized access.

Step 7: Start Chatting!

You're all set! Just message your OpenClaw assistant on the platform you connected (Telegram, Discord, or WhatsApp). Talk to it like you would a helpful friend.

First time? Try the setup prompt from earlier, or just say hi and ask what it can do!

Things You Can Ask It To Do:

  • 📧Email summaries: "Summarize my unread emails"
  • 📅Calendar management: "What's on my calendar tomorrow?"
  • 🔍Web research: "Search for the latest AI news"
  • 📝Note taking: "Remember that I need to call John tomorrow"
  • 🎯Task automation: "Help me set up a daily morning briefing"

💡 Pro tip: Your AI assistant can help configure itself! If you want to change settings, add new features, or set up automations, just ask it. It has access to all the commands and can walk you through everything.

What Are Skills?

Think of skills as superpowers you can give to your AI assistant. Out of the box, OpenClaw can chat with you, but skills let it DO things — like check your email, create calendar events, search the web, or control smart home devices.

🧩Like Phone Apps

Your phone can't check email until you install Gmail. Your AI can't check email until you install the Gmail skill. Skills add new capabilities on demand.

🔌Plug & Play

Most skills install with a single command. Your AI assistant can even walk you through the setup process and help you configure everything.

Popular Skill Examples:

📧
Gmail Skill: "Summarize my unread emails" or "Send an email to John"
🌤️
Weather Skill: "What's the weather like tomorrow?" or "Will it rain this week?"
📅
Calendar Skill: "What's on my schedule today?" or "Add a meeting for 2pm Friday"
🐙
GitHub Skill: "Show my open pull requests" or "Create an issue in my repo"
🏠
Smart Home Skills: "Turn off the living room lights" or "Set thermostat to 72°"
🔍
Web Search Skill: "Find the latest AI news" or "Search for pizza places near me"

💡 Installing is easy: Just tell your assistant "Install the weather skill" or "Help me set up Gmail integration" and it will guide you through everything. You don't need to know any commands!

Recommended Skills to Get Started

Here are some popular skills that most people find useful. Your assistant can help you install and configure any of these!

📧gog (Google Workspace)

Access Gmail, Calendar, Drive, and Sheets. Check emails, schedule events, search documents, and manage spreadsheets — all from chat.

🌤️weather

Get weather forecasts for your location or anywhere in the world. Perfect for daily briefings or planning your day.

🐙github

Manage repositories, check issues, review pull requests, and get notifications about your projects.

remind-me

Set natural language reminders like "remind me in 2 hours" or "remind me tomorrow at 9am to call John."

💡 Installing skills is easy: Just tell your assistant "Install the gog skill" or "Help me set up Google Calendar integration" and it will guide you through the process.

Advanced Configuration

Your configuration lives at ~/.openclaw/openclaw.json

Common Configurations:

{
  "channels": {
    "whatsapp": {
      // Whitelist specific phone numbers
      "allowFrom": ["+1234567890"],
      // Require mentions in groups
      "groups": { "*": { "requireMention": true } }
    }
  },
  "messages": {
    "groupChat": {
      // Custom mention patterns
      "mentionPatterns": ["@openclaw", "@assistant"]
    }
  }
}

Useful Commands:

# Check system health
openclaw health

# View detailed status
openclaw status --all

# Security audit
openclaw security audit --deep

# Update OpenClaw
npm update -g openclaw@latest

Troubleshooting

Gateway won't start

Check if another process is using port 18789:

lsof -i :18789

WhatsApp QR won't scan

Make sure you're using WhatsApp's "Link a Device" feature, not the regular QR scanner. Also ensure your phone has a stable internet connection.

Agent not responding

Verify authentication is configured:

openclaw health

If it shows "no auth configured", run the onboarding wizard again.

Permission errors

Check your pairing status and approve if needed. By default, new DMs require approval.

Additional Resources

Want this set up for your business?

Reach out and we can help you get set up with AI agents