← All Guides
Beginner 15 min

>Install OpenClaw on Mac

Install via Homebrew, configure API keys, and launch your first bot in 15 minutes.

1

Install Homebrew (if you haven't)

Open Terminal (Cmd+Space → Terminal) and run:

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

Verify brew is installed:

brew --version
2

Install OpenClaw

Add the tap and install OpenClaw:

brew tap openclaw/tap
brew install openclaw

Check the version (should be 2026.3.x):

openclaw --version
3

Configure API Keys

Run the setup wizard. It will ask for your OpenRouter or other provider API key:

openclaw setup

Or configure manually via environment variables:

export OPENROUTER_API_KEY="sk-or-v1-your-key-here"\nexport OPENCLAW_MODEL="anthropic/claude-sonnet-4-6"

Tip: add these lines to ~/.zshrc so you don't have to enter them every time.

4

Launch Your First Bot

Create a project directory and launch a bot:

mkdir ~/my-first-claw && cd ~/my-first-claw
openclaw new morning-briefing

Start the bot:

openclaw run
5

Verify Everything Works

Check status and logs:

openclaw status
openclaw logs --tail 20

✓ Done! Your first OpenClaw bot is running on Mac.