Get Started with OpenClaw

From zero to AI assistant — choose your path and follow along.

Getting started with OpenClaw takes approximately 5-15 minutes depending on your experience level. The setup process has three steps: install OpenClaw via npm (npm install -g openclaw), run the init wizard (openclaw init) to configure your AI model API key, and start the gateway (openclaw gateway start). No coding is required — the wizard handles configuration through interactive prompts.

OpenClaw supports three installation methods: npm (recommended for most users), Docker (for containerized deployments), and building from source (for contributors). After installation, you can optionally connect messaging platforms — WhatsApp, Telegram, Discord, and Slack each take about 5 additional minutes to set up. The minimum system requirements are Node.js 18+, 2GB RAM, and 1GB disk space.

1

Install OpenClaw

Beginner Developer Power User

The fastest way to get started is with npm. Open your terminal and run:

bash
npm install -g openclaw
openclaw init
💡
Don't have Node.js? Install it first from nodejs.org (LTS version recommended), or on macOS: brew install node

The openclaw init wizard will walk you through setting up your API key and preferences.

Choose your preferred method:

bash
npm install -g openclaw
openclaw init
openclaw gateway start
bash
docker pull openclaw/openclaw:latest
docker volume create openclaw-config
docker run -it \
  -v openclaw-config:/home/openclaw/.openclaw \
  -p 3000:3000 \
  openclaw/openclaw:latest init
bash
git clone https://github.com/openclaw/openclaw.git
cd openclaw
npm install
npm run build
npm link

You know the drill. Quickest path:

bash
npm i -g openclaw && openclaw init && openclaw gateway start

Or use Docker with compose for a production-like setup. See hosting options for VPS and cloud deploys.

2

Configure Your AI

Beginner Developer Power User

You'll need an API key from an AI provider. We recommend Anthropic (Claude) for the best experience:

  1. Go to console.anthropic.com
  2. Sign up and create an API key
  3. Run openclaw config and paste your key when prompted
ℹ️
Cost: Most conversations cost fractions of a cent. A typical month of light usage is under $5. See pricing for details.

Configure via CLI or edit ~/.openclaw/config.yaml directly:

yaml
# ~/.openclaw/config.yaml
ai:
  provider: anthropic
  model: claude-sonnet-4-20250514
  apiKey: ${ANTHROPIC_API_KEY}

gateway:
  host: 127.0.0.1
  port: 3000

Supports OpenAI, Anthropic, OpenRouter, and local models via Ollama. See docs for all provider options.

Set up environment variables and configure multiple providers for model routing:

yaml
ai:
  providers:
    anthropic:
      apiKey: ${ANTHROPIC_API_KEY}
    openai:
      apiKey: ${OPENAI_API_KEY}
  routing:
    simple: claude-3-haiku
    complex: claude-3-opus
    code: gpt-4-turbo

Check the advanced guides for model routing strategies and cost optimization.

3

Your First Conversation

Beginner Developer Power User

Time for the magic moment! Start a chat:

bash
openclaw chat

Try saying:

  • What can you help me with?
  • Summarize quantum computing in 3 bullets
  • Write a haiku about coffee
🎉
Congratulations! You just talked to your own AI assistant. It runs on your machine, on your terms.

Quick verification:

bash
# One-shot test
openclaw chat "Hello! List 3 ways you can help developers."

# Interactive mode
openclaw chat

# Check status & logs
openclaw status
openclaw logs --tail 20

The gateway exposes a local API at http://localhost:3000 — useful for integrating with your own tools.

Verify, then jump straight into connecting channels:

bash
openclaw chat "System check: confirm all providers are accessible"
openclaw status --verbose
4

Connect a Messaging App

Beginner Developer Power User

Now bring your AI into an app you already use:

For personal use, WhatsApp or Telegram is easiest. Just run:

bash
openclaw connect whatsapp

Scan the QR code with your phone, and you're connected!

Connect programmatically or via the CLI. Full channel reference at channels page.

bash
# Telegram (bot token from @BotFather)
openclaw connect telegram

# Discord (bot token from developer portal)
openclaw connect discord

# Slack (app manifest install)
openclaw connect slack

See the integrations page for webhooks, APIs, and custom channel development.

Connect multiple channels simultaneously and configure per-channel behavior:

yaml
channels:
  whatsapp:
    enabled: true
    personality: casual
  slack:
    enabled: true
    personality: professional
  discord:
    enabled: true
    personality: fun

Quick Reference

openclaw gateway start Start the gateway
openclaw gateway stop Stop the gateway
openclaw chat Interactive chat
openclaw status Check status
openclaw skill list Browse skills
openclaw help Full command list