How to Install OpenClaw
Step-by-step guide to installing OpenClaw on macOS, Windows, and Linux. Learn how to set up the CLI, configure the gateway, and deploy your first AI agent.
OpenClaw is an open-source AI agent framework with over 100,000 GitHub stars. This guide walks you through installing OpenClaw on your local machine, configuring the gateway, and getting your first AI agent running.
Step 1: Install the OpenClaw CLI
The fastest way to install OpenClaw is using the official installer script. Open your terminal and run:
curl -fsSL https://openclaw.ai/install.sh | bashFor Windows (PowerShell):
iwr -useb https://openclaw.ai/install.ps1 | iexAlternatively, install via npm or pnpm:
npm install -g openclaw
# or
pnpm add -g openclawStep 2: Run the Onboarding Wizard
The onboarding wizard guides you through initial configuration. It sets up your gateway, authentication, and daemon:
openclaw onboard --install-daemonThe wizard will configure:
Gateway Mode
Choose between local (your machine) or remote gateway deployment.
Authentication
Set up OpenAI subscription via OAuth, or configure your own API keys.
Chat Providers
Select which channels to enable: WhatsApp, Telegram, Discord, or Mattermost.
Daemon Installation
Install as a background service (launchd on macOS, systemd on Linux).
Step 3: Start the Gateway
If you installed the daemon, check its status. Otherwise, start the gateway manually:
# Check daemon status
openclaw gateway status
# Or start manually in foreground
openclaw gateway --port 18789 --verboseOnce running, access the dashboard at http://127.0.0.1:18789/ to monitor your agents.
Step 4: Verify Installation
Run these commands to verify everything is working correctly:
# Check overall status
openclaw status
# Health check
openclaw health
# Security audit
openclaw security audit --deepTroubleshooting Common Issues
Node.js version error
▼
Permission denied errors
▼
Gateway won't start
▼
Skip the setup entirely
Deploy OpenClaw to your own server in 1 click. No CLI, no configuration, no DevOps required.
Deploy with clawd.new →