OPENCLAW

How to Install OpenClaw on macOS, Windows & Linux

By Eric Coste · 2026-03-26 · 8 min read
OpenClaw (formerly Clawdbot, then Moltbot) is an open-source AI agent platform that connects to WhatsApp, Telegram, Discord, Slack, and 20+ messaging channels. It runs a local gateway on your machine with multi-agent routing, voice support, and browser automation. Here's how to install it from scratch on any platform.

Prerequisites

You need Node.js 22+ (18+ minimum), an AI provider API key (Anthropic, OpenAI, or Google), and optionally a Telegram account for your bot channel. macOS is the best-supported platform. Windows requires WSL2. Linux works on Ubuntu, Debian, Fedora, and Arch.

Install on macOS

Open Terminal and run npm install -g openclaw@latest followed by openclaw onboard --install-daemon. The onboarding wizard walks you through provider selection, API key entry, model choice, and gateway daemon installation. The daemon runs as a macOS LaunchAgent that auto-starts on boot.

Install on Windows (WSL2)

OpenClaw doesn't run natively on Windows. Install WSL2 first with wsl --install from PowerShell. After restart, open Ubuntu, install Node.js, then run the same npm install and onboard commands. Important: set idleTimeout=0 in your .wslconfig file to prevent WSL from shutting down during idle and killing your gateway.

Install on Linux / VPS

Install Node.js, then run the npm install and onboard commands. On headless servers, the gateway runs as a systemd user service. Enable linger with sudo loginctl enable-linger $USER so it runs even when you're logged out.

Set Up Your Telegram Bot

During onboarding, OpenClaw asks you to connect a channel. Message @BotFather on Telegram, send /newbot, name your bot, and copy the token. Paste it when OpenClaw asks. After onboarding, open your bot in Telegram, hit Start, and send 'hello'. If it responds, you're live.

Post-Install Configuration

After installation, run openclaw doctor --fix to auto-repair common config issues. Then set up fallback models to prevent rate limits — this is the single most important post-install step.

Frequently Asked Questions

Does OpenClaw work on Windows without WSL?

No. WSL2 is required for Windows. Native Windows support is not available.

Is OpenClaw free?

OpenClaw itself is free and open-source (MIT license). You pay only for the LLM API calls routed through it.

How much does OpenClaw cost to run?

The software is free. API costs depend on your usage and provider. A typical user spends $5-30/month on API calls.

Skip the guesswork. Get DevLaunch.

Interactive setup wizard + AI debugger for MiroFish, OpenClaw, and Claude Code.

GET DEVLAUNCH — $27 →