How to Set Up OpenClaw on Mac

A complete step-by-step guide to installing OpenClaw on macOS, connecting your messaging platforms, choosing your LLM, and running your own AI assistant as a background service.

MacBook Pro showing a terminal with installation progress, coffee mug beside it in soft morning light

OpenClaw (formerly Clawdbot, then Moltbot) is an open-source AI assistant that runs on your own machine. It connects to your messaging apps, executes tasks, browses the web, manages files, and integrates with macOS features like Apple Notes, Reminders, Calendar, and iMessage. With 228,000+ stars on GitHub, it's the most popular self-hosted AI assistant available.

This guide walks you through setting up OpenClaw on a Mac from scratch. No prior experience required.

What You'll Set Up

  • OpenClaw Gateway running as a background service on your Mac
  • Messaging channels like WhatsApp, Telegram, or iMessage connected
  • Your choice of LLM (Claude, GPT, or local Ollama)
  • macOS companion app with menu bar control and voice support
  • Essential skills from ClawHub for productivity

Prerequisites

Before installing OpenClaw, make sure your Mac meets these requirements:

If you don't have Homebrew yet, install it first:

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

Then install Node.js 22:

Terminal brew install node@22

Verify your Node version:

Terminal node --version
# Should output v22.x.x or higher

Installation Methods

OpenClaw offers several installation methods. Pick the one that fits your comfort level.

Method 1: One-Line Installer (Recommended)

The fastest way to get started. This downloads the CLI, installs it globally, and launches the onboarding wizard:

Terminal curl -fsSL https://openclaw.ai/install.sh | bash

The installer script handles Node.js installation if you don't have it, and immediately starts the onboarding wizard when finished.

Method 2: npm Install

If you already have Node.js 22+ installed:

Terminal npm install -g openclaw@latest
openclaw onboard --install-daemon

The --install-daemon flag creates a launchd service so OpenClaw starts automatically and survives reboots.

Method 3: From Source

For developers who want to contribute or customize:

Terminal git clone https://github.com/openclaw/openclaw.git
cd openclaw
pnpm install
pnpm ui:build
pnpm build
pnpm link --global
openclaw onboard --install-daemon
Tip: If you encounter a sharp/libvips error during installation, run: SHARP_IGNORE_GLOBAL_LIBVIPS=1 npm install -g openclaw@latest. This forces prebuilt binaries instead of compiling against your system's libvips.

The Onboarding Wizard

After installation, the openclaw onboard wizard walks you through four setup steps:

1Gateway configuration — Sets up the local server that powers your assistant. The default port is 18789.

2Workspace setup — Creates your workspace directory at ~/.openclaw/workspace where OpenClaw stores files, logs, and configuration.

3Channel connections — Optionally connects your messaging platforms (WhatsApp, Telegram, Discord, etc.). You can skip this and add channels later.

4Skills installation — Optionally installs starter skills from ClawHub.

The wizard saves everything to ~/.openclaw/openclaw.json. You can edit this file directly anytime to change settings.

Person at a home office desk looking at their phone showing an AI chat conversation, with MacBook running in the background

Connecting Messaging Platforms

OpenClaw supports a wide range of messaging channels. Here are the most popular options for Mac users:

Platform Library Setup Difficulty
Telegram grammY Easiest (recommended first)
WhatsApp Baileys Easy (QR code scan)
iMessage BlueBubbles Moderate (Mac-only)
Discord discord.js Easy (bot token)
Slack Bolt Moderate (OAuth setup)
Signal signal-cli Moderate
Matrix Matrix SDK Moderate

Telegram is the recommended starting point because it has the simplest setup process. Create a bot via @BotFather on Telegram, copy the token, and paste it during onboarding.

For iMessage on Mac, OpenClaw uses BlueBubbles to bridge messages. This is a Mac-exclusive feature — no other platform gets native iMessage integration.

Security note: By default, OpenClaw uses "pairing" mode for DMs. New contacts must receive a pairing code before they can interact with your assistant. You can change this in your config, but the default is safer.

Choosing and Configuring Your LLM

OpenClaw works with any LLM, but the choice matters. Here's how the main options compare for Mac users:

Claude (Recommended)

The official OpenClaw documentation recommends Anthropic Claude — specifically Opus 4.6 for its long-context strength and prompt-injection resistance. To configure:

~/.openclaw/openclaw.json {
"agent": {
"model": "anthropic/claude-opus-4-6"
}
}

You'll need an Anthropic API key. Costs typically run $0.50 to $2 per 100 tasks depending on complexity.

GPT (OpenAI)

If you prefer OpenAI models:

~/.openclaw/openclaw.json {
"agent": {
"model": "openai/gpt-4o"
}
}

Ollama (Local, Free)

For fully local operation with no API costs, install Ollama and run a model like Llama 3 or Mistral:

Terminal brew install ollama
ollama pull llama3.3
ollama serve

Then configure OpenClaw to use it:

~/.openclaw/openclaw.json {
"agent": {
"model": "ollama/llama3.3"
}
}
Tip: For local models, a Mac with 24 GB or more unified memory lets you run 13B-34B parameter models comfortably. The M4 chip provides excellent inference performance. If you want the best of both worlds, OpenClaw supports model failover — use a cloud model as primary and fall back to a local one when offline.
OpenClaw running on a MacBook Pro, showing terminal commands executing file management tasks alongside Finder
OpenClaw executing tasks on macOS — Image: Cult of Mac

macOS Companion App

OpenClaw includes a native macOS menu bar app that provides quick access to your assistant without opening Terminal.

To install it:

  1. Download the companion app from openclaw.ai
  2. Mount the DMG and drag OpenClaw.app to /Applications
  3. Launch the app and approve the macOS security warning
  4. Complete the permissions checklist when prompted

The companion app provides:

The app manages these macOS permissions via TCC prompts:

Tip: The companion app is a client — it doesn't run OpenClaw by itself. Your Gateway must be running (either via launchd or manually in Terminal) for the app to connect. For hands-free setup and commands, EmberType lets you dictate directly into Terminal and any other app on your Mac.

Running as a Background Service

If you used --install-daemon during onboarding, OpenClaw is already running as a launchd service. It starts automatically on login and restarts if it crashes.

The launchd plist is stored in ~/Library/LaunchAgents/. Useful commands:

Terminal # Check status
openclaw status

# Restart the gateway
openclaw gateway restart

# View logs
openclaw gateway logs

# Manual start (if not using daemon)
openclaw gateway --port 18789 --verbose

Verify everything is healthy:

Terminal openclaw doctor

The openclaw doctor command checks your configuration, flags security issues with DM policies, and verifies that all services are running. Add --fix to auto-repair common issues:

Terminal openclaw doctor --fix

Mac Mini as an Always-On Server

A Mac Mini makes an excellent dedicated OpenClaw server. It draws only 5-15 watts, runs silently, and gives OpenClaw 24/7 availability.

Recommended hardware: Mac Mini M4 with 16-32 GB unified memory. The M4 chip delivers fast single-threaded Node.js performance and enough GPU for local model inference with Ollama. Expect around $1-2/month in electricity costs.

To configure a Mac Mini as an always-on server, prevent sleep and enable auto-restart after power failure:

Terminal # Prevent sleep entirely
sudo pmset -a sleep 0 displaysleep 0 disksleep 0

# Auto-restart after power failure
sudo pmset -a autorestart 1

You can also set these in System Settings > Energy:

With the launchd daemon installed, OpenClaw starts automatically after every reboot. Connect to your Mac Mini remotely via SSH or the OpenClaw companion app's remote mode (which works over SSH or Tailscale).

OpenClaw fast reply drafting automation flow showing message receipt, template matching, draft generation, and review steps
OpenClaw messaging automation — Image: Hostinger Tutorials

Essential First Skills to Install

ClawHub is the public skill registry for OpenClaw. Skills extend what your assistant can do. Install them with:

Terminal openclaw skills install <skill-name>
openclaw skills enable <skill-name>
Security warning: In February 2026, security researchers found 341 malicious skills in a coordinated campaign called "ClawHavoc." Always install the Skill Vetter skill first — it scans other skills for suspicious behavior before you enable them.

Recommended starter skills for Mac users:

Troubleshooting Common Issues

sharp/libvips Build Error

If npm fails with a sharp or libvips compilation error:

Terminal SHARP_IGNORE_GLOBAL_LIBVIPS=1 npm install -g openclaw@latest

This is common when Homebrew's libvips conflicts with the version sharp expects. The environment variable forces prebuilt binaries.

Node Version Too Old

OpenClaw requires Node.js 22+. Check your version:

Terminal node --version

If it's below 22, update via Homebrew:

Terminal brew install node@22
# Add to your PATH if needed:
export PATH="/opt/homebrew/opt/node@22/bin:$PATH"

openclaw Command Not Found

If your terminal can't find the openclaw command after installation, add npm's global bin directory to your PATH:

Terminal export PATH="$(npm prefix -g)/bin:$PATH"

Add that line to your ~/.zshrc to make it permanent.

Gateway Won't Start

Run the doctor command to diagnose:

Terminal openclaw doctor --fix

Common causes include port 18789 already in use, missing configuration files, or permission issues with the launchd plist.

macOS Companion App Can't Connect

Make sure your Gateway is running (openclaw status). The companion app in Local mode expects the Gateway on localhost. If you're using Remote mode, verify your SSH or Tailscale connection.


Frequently Asked Questions

What are the requirements to run OpenClaw on Mac?
You need macOS 14 (Sonoma) or later, Node.js 22 or higher, and an Apple Silicon or Intel Mac. Homebrew is recommended for installing dependencies. The macOS companion app requires macOS 14+.
Can I run OpenClaw completely locally on Mac?
Yes. Pair OpenClaw with Ollama to run a local LLM like Llama 3 or Mistral entirely on your Mac. No cloud API keys needed. However, cloud models like Claude Opus 4.6 provide better reasoning and long-context performance for complex tasks.
How do I fix the sharp/libvips error?
Run SHARP_IGNORE_GLOBAL_LIBVIPS=1 npm install -g openclaw@latest. This forces prebuilt binaries instead of compiling against your system's libvips, which is the most common cause of this error on macOS with Homebrew.
Is OpenClaw free?
OpenClaw itself is free and open-source. If you use cloud LLM providers like Anthropic or OpenAI, you'll pay their API costs (typically $0.50-$2 per 100 tasks). Using a local model via Ollama has no ongoing costs.
Can I use voice commands with OpenClaw?
Yes. The macOS companion app supports Voice Wake (always-on listening), Talk Mode (continuous conversation), and Push-to-Talk. For the best voice-to-text experience when dictating commands or messages to OpenClaw, tools like EmberType provide accurate offline dictation that works in any app on your Mac.

Dictate to Your Mac, Hands-Free

Use EmberType alongside OpenClaw to dictate commands, messages, and notes — 100% offline.

Download EmberType Free

macOS 14+ required. Apple Silicon only. $39 after 7-day trial.