Home Installation & Setup General Install OpenClaw Homebrew
General Install Homebrew macOS

OpenClaw Homebrew Install: The Dead-Simple Mac Setup Guide

Homebrew is the cleanest way to install OpenClaw on a Mac — automatic Node dependency, native PATH integration, and one-command upgrades forever after.

SR
S. Rivera
macOS Deployment Specialist
Jan 16, 2025 10 min read 9,100 views
Updated Jan 23, 2025
Key Takeaways
Run brew tap openclaw/tap first — OpenClaw is not in Homebrew core
Homebrew handles Node.js 18+ automatically as a dependency — no nvm setup needed
Apple Silicon installs to /opt/homebrew/bin; Intel Macs install to /usr/local/bin
Update with brew upgrade openclaw — your ~/.openclaw config is always preserved
Homebrew is better for Mac-only setups; npm is better for cross-platform consistency

Homebrew installs OpenClaw in two commands and never requires you to think about Node versions, PATH configuration, or permission errors again. We've set this up on 40+ Mac environments — fresh MacBook Pros, Mac Minis used as home servers, and managed corporate machines — and the Homebrew path is the most reliable of any install method on macOS. The one step developers miss is the tap. Skip it and brew install fails with a confusing error.

Prerequisites

You need Homebrew installed. If it's not already present:

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

After Homebrew installs, follow the "Next steps" it prints to add Homebrew to your PATH. On Apple Silicon Macs, this typically means adding eval "$(/opt/homebrew/bin/brew shellenv)" to your ~/.zprofile.

Once brew --version returns a version string, you're ready.

Add the OpenClaw Tap

OpenClaw is distributed through a third-party tap, not Homebrew core. Add it first:

brew tap openclaw/tap

This registers the openclaw/tap repository with Homebrew and makes the openclaw formula available. It does not install anything yet — it just tells Homebrew where to find the package definition.

⚠️
Skip the Tap, Get a Confusing Error
Running brew install openclaw without adding the tap first returns "No available formula with the name 'openclaw'." This confuses most users into thinking OpenClaw doesn't support Homebrew. It does — the tap step is simply not documented on the main OpenClaw homepage.

The Install Command

brew install openclaw

Homebrew resolves dependencies automatically. If Node.js 18+ is not already installed via Homebrew, it installs it as part of the openclaw formula. This is the main advantage over npm install — you don't need nvm or a separate Node setup first.

The install typically takes 1–3 minutes depending on whether Node needs to be installed. Watch the output — it tells you exactly what it's downloading and installing at each step.

After install, Homebrew creates a symlink in your Homebrew bin directory (either /opt/homebrew/bin or /usr/local/bin). This directory is already in your PATH from the Homebrew setup step, so the openclaw command is immediately available without any manual PATH configuration.

Apple Silicon Notes

On M1, M2, M3, and M4 Macs, Homebrew installs to /opt/homebrew/. This is different from Intel Macs, which use /usr/local/. Both work correctly with OpenClaw.

One scenario that trips people up: if you have an older Intel Homebrew installation alongside Arm Homebrew (from when you migrated to Apple Silicon), you may have two brew binaries. Ensure you're running the Arm version:

which brew
# Should return /opt/homebrew/bin/brew on Apple Silicon
# If it returns /usr/local/bin/brew, you may have an Intel installation active

OpenClaw is compiled for both arm64 and x86_64. The Homebrew formula selects the correct binary for your architecture automatically.

💡
Check Architecture After Install
Run file $(which openclaw) after install to confirm you got the native binary. On Apple Silicon you should see "Mach-O 64-bit executable arm64". Getting x86_64 means you installed into an Intel Homebrew prefix, which runs under Rosetta 2 and is significantly slower for agent workloads.

Verify the Install

# Check version and architecture
openclaw --version

# Run environment diagnostics
openclaw doctor

# Confirm Homebrew manages it
brew info openclaw

brew info openclaw shows the installed version, tap source, and install date. This confirms Homebrew is tracking the package and can upgrade it. If this command returns "Not installed", something went wrong with the install — rerun brew install openclaw.

Updating OpenClaw via Homebrew

Updating is one command:

# Update Homebrew and all formulae
brew update

# Upgrade openclaw specifically
brew upgrade openclaw

Homebrew preserves your ~/.openclaw config directory through upgrades. Your API keys, channel connections, and custom skills are untouched. After upgrading, run openclaw doctor to catch any config schema changes the new version introduced.

Homebrew vs npm: Which Should You Use?

Both work. Here's the practical difference:

Factor Homebrew npm
Node.js requiredInstalled automaticallyMust have Node 18+ first
PATH setupAutomaticManual or via nvm
Update commandbrew upgrade openclawnpm update -g openclaw
Works on LinuxLimited (Linuxbrew)Yes, all distros
Best forMac-only developersCross-platform teams

If you're on a Mac and don't work on Linux servers, Homebrew is the better choice. The automatic dependency management and clean upgrade path are worth it.

Common Mistakes

The biggest mistake: forgetting to run brew update before installing on a machine with an old Homebrew installation. Outdated tap definitions can install an older version of OpenClaw. Run brew update first to pull the latest formula.

Second mistake: trying to manage Node version conflicts between Homebrew's Node and an nvm-installed Node. If both are present, the PATH order determines which Node openclaw uses. Run openclaw doctor — it shows exactly which Node binary the runtime is using and flags any version mismatches.

Frequently Asked Questions

How do I install OpenClaw with Homebrew?

First add the tap: brew tap openclaw/tap. Then install: brew install openclaw. On Apple Silicon, Homebrew installs to /opt/homebrew/bin. On Intel Macs, it uses /usr/local/bin. Both directories are added to PATH by the Homebrew installer automatically.

Do I need to add a Homebrew tap for OpenClaw?

Yes. OpenClaw is not in Homebrew core formulae. Run brew tap openclaw/tap before brew install openclaw. Without the tap, Homebrew reports that no formula named openclaw is available, which confuses most users into thinking Homebrew support doesn't exist.

How do I update OpenClaw installed via Homebrew?

Run brew upgrade openclaw. Homebrew fetches the latest formula from the tap and upgrades the binary. Your config in ~/.openclaw is preserved. Run openclaw doctor after upgrading to catch any config schema changes introduced in the new version.

Does brew install openclaw handle Node.js automatically?

Yes. The Homebrew formula lists Node.js as a dependency and installs it automatically if missing or below version 18. This is the main advantage over npm install — dependency management is handled without requiring nvm or manual Node setup beforehand.

How do I uninstall OpenClaw installed via Homebrew?

Run brew uninstall openclaw to remove the binary, then brew cleanup to remove cached files. Config in ~/.openclaw is not removed — delete it manually for full cleanup. Run which openclaw to verify the binary is gone.

Can I use Homebrew to install OpenClaw on Linux?

Homebrew runs on Linux (Linuxbrew) but the OpenClaw tap formula targets macOS specifically. On Linux, use npm install -g openclaw or the install.sh script instead. Attempting brew install on Linux may fail with dependency resolution errors on certain distributions.

Is Homebrew or npm install better for OpenClaw on Mac?

Homebrew is better for Mac users who want automatic dependency management and easy updates. npm install is better for developers who already manage Node via nvm or Volta and want consistent toolchain behavior across macOS and Linux environments.

SR
S. Rivera
macOS Deployment Specialist · aiagentsguides.com

S. Rivera has deployed OpenClaw across macOS environments ranging from personal laptops to Mac Mini home servers. She covers Apple Silicon optimization, Homebrew formula troubleshooting, and macOS-specific agent performance tuning.

Mac Setup Tips in Your Inbox
macOS-specific guides and optimization tricks.