Install on macOS

Install OpenClaw on macOS (Mac, Mac Mini, MacBook). Step-by-step guide for openclaw mac installation using the install script or npm.

Prerequisites

  • macOS 12 (Monterey) or newer
  • Node.js 22+ — Install via nodejs.org or Homebrew

Verify Node.js is installed:

node --version
# Expected: v22.x.x or higher
curl -fsSL https://openclaw.ai/install.sh | bash

This script will:

  1. Download the latest OpenClaw binary for macOS
  2. Add it to your PATH
  3. Create the config directory at ~/.openclaw/

Method 2: npm Global Install

npm install -g openclaw@latest

Verify the installation:

openclaw --version

Initial Setup

Run the onboarding wizard:

openclaw onboard --install-daemon

The wizard guides you through:

  • Selecting your AI provider (OpenAI, Claude, Ollama, etc.)
  • Entering your API key
  • Choosing a channel (WhatsApp, Telegram, etc.)
  • Installing the launch agent (background daemon)

Verify

# Check Gateway status
openclaw gateway status

# Open the dashboard
openclaw dashboard

The dashboard opens at http://127.0.0.1:18789/.

macOS Launch Agent

OpenClaw installs as a macOS launch agent for automatic startup:

# Start the daemon
openclaw service start

# Stop the daemon
openclaw service stop

# Check status
openclaw service status

The launch agent plist is located at:

~/Library/LaunchAgents/ai.openclaw.gateway.plist

Configuration

The configuration file is located at:

~/.openclaw/openclaw.json

Troubleshooting

"Unidentified developer" warning

If macOS blocks the binary:

xattr -d com.apple.quarantine $(which openclaw)

Node.js not found

If you installed Node.js via Homebrew, ensure your PATH includes:

export PATH="/opt/homebrew/bin:$PATH"

Permission denied

Fix permissions on the install directory:

sudo chown -R $(whoami) /usr/local/bin

Next Steps