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 higherMethod 1: Install Script (Recommended)
curl -fsSL https://openclaw.ai/install.sh | bashThis script will:
- Download the latest OpenClaw binary for macOS
- Add it to your PATH
- Create the config directory at
~/.openclaw/
Method 2: npm Global Install
npm install -g openclaw@latestVerify the installation:
openclaw --versionInitial Setup
Run the onboarding wizard:
openclaw onboard --install-daemonThe 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 dashboardThe 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 statusThe launch agent plist is located at:
~/Library/LaunchAgents/ai.openclaw.gateway.plistConfiguration
The configuration file is located at:
~/.openclaw/openclaw.jsonTroubleshooting
"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/binNext Steps
- Quick Start — Complete setup guide
- Windows Installation — Windows native setup
- Docker Installation — Container-based setup
- AI Model Integrations — Connect your AI model