OpenClaw is an open-source AI agent that runs on your own hardware. You install it on a Mac Mini, Linux box, VPS, or Windows machine (via WSL). You talk to it through Telegram, WhatsApp, or Discord. It browses the web, writes code, reads your emails, manages files, spins up sub-agents, and works on your business 24/7. Even while you sleep.

I run 13 agents on a single Mac Mini M4. They handle my podcast, social media, newsletter, sponsorship outreach, analytics, and research. All through OpenClaw. This guide covers every step to get your first agent running, no matter what hardware you have.

The official website: openclaw.ai

The fastest interactive installer: installopenclawnow.com

New to AI agents entirely? Start with our OpenClaw beginner guide first.

Prerequisites: What You Need Before Installing OpenClaw

OpenClaw requires three things. The install itself takes about 5 minutes once these are ready.

1. Node.js (Version 18 or Higher)

OpenClaw is built on Node.js. You need v18 or later. Check if you already have it:

node --version

If you see v18.x.x or higher, you're good. If not, install it:

2. An LLM API Key

OpenClaw connects to AI models through your own API key. You need at least one:

For a detailed walkthrough on getting your Anthropic API key configured, read our OpenClaw API key setup guide.

Cost reality: Most solo founders spend $20-80/month on API credits. Heavy multi-agent setups (like mine) run $100-200/month. That's still cheaper than any VA or SaaS stack doing the same work.

3. A Machine That Stays On

OpenClaw runs as a background daemon. It needs a machine that stays powered on:

System Requirements

ComponentMinimumRecommended
RAM4GB16GB+
Storage10GB free50GB+ (for memory files, transcripts, media)
CPUAny modern CPUApple Silicon or recent x86
OSmacOS 13+, Ubuntu 20+, Windows 10+ (WSL2)macOS 14+ or Ubuntu 22+
NetworkStable internet connectionWired ethernet for always-on setups

Install OpenClaw on macOS (Step by Step)

macOS is the most popular platform for OpenClaw. Most of the community runs on Mac Minis. Here's the complete process.

Step 1: Install Homebrew (If You Don't Have It)

Homebrew is the package manager for macOS. Open Terminal and run:

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

Follow the prompts. After installation, close and reopen Terminal.

Step 2: Install Node.js

brew install node

Verify it installed correctly:

node --version
npm --version

Both should return version numbers. Node should be 18+.

Step 3: Install OpenClaw

npm install -g openclaw@latest

This installs OpenClaw globally on your machine. The -g flag makes the openclaw command available everywhere.

Step 4: Run the Onboarding Wizard

openclaw onboard --install-daemon

This interactive wizard walks you through:

The --install-daemon flag is important. It registers OpenClaw as a macOS LaunchAgent, which means it auto-starts when your machine boots. No manual intervention needed.

Step 5: Send Your First Message

Open Telegram (or whatever channel you connected). Send a message to your bot. If it responds, you're live.

Pro tip: Your first message should be simple. "What can you do?" or "What tools do you have access to?" This confirms the connection works and shows you what capabilities are active.

Install OpenClaw on Linux (Ubuntu/Debian)

Linux is the go-to for VPS setups. Works great on Ubuntu, Debian, and most distributions.

Step 1: Update Your System

sudo apt update && sudo apt upgrade -y

Step 2: Install Node.js

# Install Node.js 22.x (LTS)
curl -fsSL https://deb.nodesource.com/setup_22.x | sudo -E bash -
sudo apt install -y nodejs

# Verify
node --version
npm --version

Step 3: Install Build Essentials

Some OpenClaw skills and dependencies need compilation tools:

sudo apt install -y build-essential git curl

Step 4: Install OpenClaw

npm install -g openclaw@latest

Step 5: Run Onboarding

openclaw onboard --install-daemon

On Linux, the daemon installs as a systemd service. It auto-starts on boot and auto-restarts if it crashes.

Step 6: Check the Service Status

systemctl --user status openclaw

You should see "active (running)." If not, check the logs:

journalctl --user -u openclaw -f

For the full VPS-specific walkthrough (server provisioning, SSH keys, security hardening, firewall), read our VPS installation guide.

Install OpenClaw on Windows (Using WSL)

OpenClaw doesn't run natively on Windows. You need WSL (Windows Subsystem for Linux), which gives you a real Linux environment inside Windows.

Step 1: Install WSL2

Open PowerShell as Administrator and run:

wsl --install

This installs WSL2 with Ubuntu by default. Restart your computer when prompted.

Step 2: Open Your Ubuntu Terminal

Search for "Ubuntu" in the Start menu. Open it. Set up your username and password when prompted.

Step 3: Follow the Linux Steps

From here, follow the exact same steps as the Linux installation above. Update, install Node.js, install OpenClaw, run onboarding.

sudo apt update && sudo apt upgrade -y
curl -fsSL https://deb.nodesource.com/setup_22.x | sudo -E bash -
sudo apt install -y nodejs build-essential git curl
npm install -g openclaw@latest
openclaw onboard --install-daemon

WSL tip: Make sure WSL2 is set to start automatically with Windows. Run wsl --set-default-version 2 in PowerShell. For always-on operation, consider a dedicated Linux machine or VPS instead.

Setting Up API Keys: Anthropic, OpenAI, and Google

The onboarding wizard asks for your API key. Here's how to get one from each provider.

Anthropic (Claude) - Recommended

Claude Opus gives the best results for agent work. Period. It's what I use for everything.

  1. Go to console.anthropic.com
  2. Create an account or sign in
  3. Navigate to API Keys
  4. Click "Create Key"
  5. Copy the key (starts with sk-ant-)
  6. Add credits ($20 minimum to start)

Full walkthrough: OpenClaw API key setup for Anthropic

OpenAI (GPT)

  1. Go to platform.openai.com/api-keys
  2. Create an account or sign in
  3. Click "Create new secret key"
  4. Copy the key (starts with sk-)
  5. Add credits under Billing

Google (Gemini)

  1. Go to aistudio.google.com/apikey
  2. Click "Create API key"
  3. Select or create a Google Cloud project
  4. Copy the key

My setup: Claude Opus as the primary model for all agents. I add OpenAI as a fallback for when Anthropic rate limits hit. Google Gemini for specific vision tasks. You can configure multiple providers and the agent switches automatically.

Adding API Keys After Installation

If you need to add or change API keys later:

# Open the configuration
openclaw config edit

# Or set directly
openclaw config set anthropic.apiKey sk-ant-your-key-here
openclaw config set openai.apiKey sk-your-key-here

Connect Your First Messaging Channel

Telegram is the most popular choice. Here's the full setup.

Create a Telegram Bot

  1. Open Telegram and search for @BotFather
  2. Send /newbot
  3. Choose a name for your bot (e.g., "Marc AI")
  4. Choose a username (must end in "bot", e.g., "marc_agent_bot")
  5. BotFather gives you a token. Copy it.
  6. Paste it into the OpenClaw onboarding wizard or config

Send a message to your new bot. The agent responds. You're live.

For WhatsApp, Discord, and other channels: Telegram setup guide | WhatsApp setup guide | Discord setup guide

How to Verify OpenClaw Is Working Correctly

After installation, run these checks to make sure everything is healthy.

Check 1: OpenClaw Doctor

openclaw doctor

This command scans your entire setup and reports issues. It checks:

Fix any warnings or errors it reports. Green across the board means you're healthy.

Check 2: Gateway Status

openclaw gateway status

Should show "running." If it says "stopped," start it:

openclaw gateway start

Check 3: Send a Test Message

Open your connected messaging channel and send: "What time is it?" or "List your available tools."

If the agent responds with the correct time and a tool list, everything is working. API key is valid, the gateway is running, and the channel is connected.

Check 4: Verify the Daemon

# macOS
launchctl list | grep openclaw

# Linux
systemctl --user status openclaw

This confirms OpenClaw will survive reboots and run 24/7.

Option A: Mac Mini Setup (Best for Power Users)

A dedicated machine sitting on your desk, running 24/7. This is how Matthew Berman and most advanced OpenClaw users run their setup. You own the hardware, you own the data. Nothing leaves your network.

You'll set up a Mac Mini M4 (16GB RAM minimum), install OpenClaw, connect it to Telegram, and configure your agent's personality and first automations. The whole process takes about 30 minutes.

Cost: ~$500-800 one-time for the Mac Mini + Claude API credits (~$20-150/mo depending on usage)

What the Mac Mini Setup Covers

Best for: people who want full control, care about privacy, or plan to run heavy workloads with multiple agents. Once it's set up, it just sits there and works. No monthly server bill.

Read the full guide: OpenClaw Mac Mini Setup: Build a 24/7 AI Agent Server

Option B: VPS Cloud Server (Cheapest Always-On Option)

Same OpenClaw, same power, but running on a cloud server instead of hardware in your house. Spin up a $6/mo Ubuntu server on Hetzner or DigitalOcean, SSH in, install OpenClaw, and connect via Telegram. Always on by default. No sleep settings to worry about.

Cost: ~$6-20/mo for the server + Claude API credits

What the VPS Setup Covers

Best for: people who don't want to buy hardware, want to start cheap, or need their agent accessible from anywhere without configuring their home network.

Trade-off: you're renting someone else's computer, so your data lives on their servers.

Read the full guide: How to Install OpenClaw on a VPS: Complete Cloud Setup Guide

Option C: One-Click Install (Easiest Way to Get Started)

Platforms like DigitalOcean and Railway offer one-click OpenClaw installs. Zero technical knowledge needed. Click a button, it spins up on their server, you connect via Telegram. Done.

Cost: ~$6-20/mo for the server + Claude API credits

You can also use SimpleClaw for a managed experience.

Important: Migrating servers means losing your agent's context. Pick something you can scale from the start.

OpenClaw for Different Use Cases

How you configure OpenClaw depends on what you're trying to do. Here are the three most common setups.

Personal Assistant

The simplest use case. One agent, one messaging channel, basic tasks.

Setup time: 15 minutes. Monthly cost: $20-40 in API credits.

Start with a basic SOUL.md ("You are my personal assistant. Be concise, proactive, and organized.") and expand from there. The agent learns your preferences through its memory files over time.

Developer Tool

Code review, CI/CD monitoring, issue management, documentation, testing.

Setup time: 30-60 minutes. Monthly cost: $40-100 in API credits.

Read more: OpenClaw webhook automation guide

Business Automation (What I Run)

Multiple agents, each handling a different function. This is the full setup.

Setup time: A few days to get everything dialed in. Monthly cost: $100-200 in API credits.

Read the full breakdown: How I run 13 AI agents on one Mac Mini and the content machine pipeline.

OpenClaw Security: Essential Safety Rules Before You Start

These matter. Don't skip them because you're excited.

VPS and Cloud Provider Safety Checklist

Before handing any cloud provider your API keys, verify:

If a provider can't show you "nmap clean" + no root mounts in 5 minutes, don't hand them your API keys.

Deep dive on security: OpenClaw troubleshooting and security guide

How to Handle OpenClaw Rate Limits and Model Selection

Rate limits are the #1 frustration for new OpenClaw users. Here's how to handle them.

Why Rate Limits Happen

Every LLM provider caps how many requests you can make per minute. Anthropic's limits depend on your usage tier. New accounts start with lower limits. As you spend more, limits increase automatically.

How to Minimize Rate Limit Issues

Model Recommendations by Use Case

TaskRecommended ModelWhy
Main agent (daily use)Claude OpusBest reasoning, tool use, and instruction following
Sub-agent tasksClaude Opus or SonnetOpus for complex work, Sonnet for simpler tasks
Code generationClaude OpusMost accurate code output
Quick lookupsClaude Sonnet or local OllamaCheaper, faster for simple queries
Image analysisGemini Pro or Claude OpusBoth excellent at vision tasks

Troubleshooting Common OpenClaw Installation Issues

These are the most common problems people hit during installation and how to fix them.

"command not found: openclaw"

The npm global bin directory isn't in your PATH.

# Find where npm puts global packages
npm config get prefix

# Add to your shell profile (~/.zshrc on macOS, ~/.bashrc on Linux)
export PATH="$(npm config get prefix)/bin:$PATH"

# Reload
source ~/.zshrc  # or ~/.bashrc

"EACCES: permission denied" During npm Install

Never use sudo npm install -g. Fix npm permissions instead:

mkdir -p ~/.npm-global
npm config set prefix '~/.npm-global'
echo 'export PATH=~/.npm-global/bin:$PATH' >> ~/.zshrc
source ~/.zshrc
npm install -g openclaw@latest

API Key Not Working

Telegram Bot Not Responding

Gateway Won't Start

# Check for port conflicts
lsof -i :3000

# Check the logs
openclaw gateway logs

# Try restarting
openclaw gateway restart

"Node version too old"

# Check your version
node --version

# Update on macOS
brew upgrade node

# Update on Linux
curl -fsSL https://deb.nodesource.com/setup_22.x | sudo -E bash -
sudo apt install -y nodejs

Agent Responding Slowly

Slow responses usually mean one of three things:

  1. Network latency: Check your internet connection. Wired is better than Wi-Fi for always-on setups.
  2. Rate limiting: The provider is throttling you. Add fallback models.
  3. Large context: Your agent's memory files are too big. Clean up old daily memory files.

For more issues, check the complete troubleshooting guide.

What to Build After Installing OpenClaw

Your agent is running. Now what?

Week 1: Personal Assistant Basics

Week 2: Automation

Week 3+: Multi-Agent

Inside OpenClaw Lab, we share the exact agent configurations, SOUL.md templates, cron schedules, and multi-agent architectures that run a real business 24/7. Weekly lives, expert AMAs, and a community of 260+ founders building systems that actually work.

Frequently Asked Questions

How do I install OpenClaw on a Mac Mini?

Install Node.js (v18+) on your Mac Mini, then run 'npm install -g openclaw@latest' in the terminal. After that, run 'openclaw onboard --install-daemon' to complete the setup wizard. The whole process takes about 5 minutes.

Can I install OpenClaw on a VPS or cloud server?

Yes, OpenClaw runs on any Linux VPS. You need Node.js v18+, an LLM API key, and SSH access. A $5/month VPS is enough for most setups. The installation steps are the same as local: install Node.js, then install OpenClaw via npm.

Is there a one-click installer for OpenClaw?

Yes, installopenclawnow.com offers a one-click cloud installer that handles the entire OpenClaw setup for you. It provisions a server, installs dependencies, and configures your agent without requiring terminal knowledge.

What are the system requirements for OpenClaw?

OpenClaw requires Node.js v18 or higher and an API key from an LLM provider like Anthropic or OpenAI. It runs on macOS, Linux, and Windows. For always-on operation, a Mac Mini, Raspberry Pi, or VPS is recommended.

How do I connect OpenClaw to Telegram?

Create a Telegram bot through BotFather, copy the bot token, and add it during the OpenClaw onboarding wizard. You can also configure it manually in the OpenClaw gateway config file. Messages you send to your bot will be processed by your OpenClaw agent.

I share the exact playbooks, skill files, and workflows behind this system inside OpenClaw Lab. Weekly lives and AMAs with experts.

Join OpenClaw Lab →