Get started with OpenClaw

Your personal AI agent, up and running in under 10 minutes.

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

OpenClaw runs on your computer via Node.js. Let's get it installed.

bash
npm install -g openclaw
openclaw init
💡
Need Node.js? Download it free from nodejs.org — the LTS version is perfect.

After running openclaw init, a setup wizard will guide you through the rest.

Install via npm, Docker, or build from source. All options are fully supported.

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

Fast path — install and start in one command:

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

See advanced config docs to wire up env vars and custom profiles.

2

Connect an AI model

Beginner Developer Power User

OpenClaw needs an AI brain. We recommend Anthropic Claude — it's fast, smart, and affordable.

  1. Go to console.anthropic.com and sign up (free)
  2. Create an API key and copy it
  3. Paste it when openclaw init asks for your API key
ℹ️
💸 Cost tip: Claude Haiku costs about $0.25 per 1M tokens — typical personal use costs under $2/month.

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 10+ AI providers including OpenAI, Gemini, Groq, and local Ollama models.

Route different task types to different models for cost/quality optimisation:

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

See model routing docs for advanced patterns.

3

Say hello

Beginner Developer Power User

Let's make sure everything works. Open a terminal and type:

bash
openclaw chat

Try sending it some messages:

  • What's on my agenda today?
  • Summarise this article: [paste URL]
  • Remind me to call mum at 5pm
🎉
🎉 It's working! You now have a personal AI agent running on your machine.

Test in one-shot and interactive modes:

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 REST API runs at http://localhost:3000 — see API docs for integration options.

Run a system check and verify all providers respond:

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

Connect a messaging channel

Beginner Developer Power User

Now let's bring OpenClaw to your phone. Pick your favourite app:

We recommend starting with WhatsApp — it's the quickest to set up.

bash
openclaw connect whatsapp

Scan the QR code that appears in your terminal and you're connected.

Each channel needs a bot token. See our channel setup guides for step-by-step instructions.

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

Run openclaw status to verify all channels are connected and healthy.

Configure multiple channels with per-channel personality settings in config.yaml:

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

Quick reference

openclaw chat Start an interactive chat session
openclaw status Check system and channel health
openclaw gateway start Start the background gateway service
openclaw skills list View installed skills
openclaw connect <channel> Connect a messaging channel
openclaw logs --tail 20 Stream the last 20 log lines