Set Up Your Mac
Get everything installed in under 15 minutes.
On Windows? Switch to the Windows guide →
First: Open Terminal
Terminal is how you'll run all these commands. Don't worry — you're just copying and pasting.
1. Press Cmd + Space to open Spotlight Search.
2. Type Terminal.
3. Press Enter.
Install Homebrew
Homebrew is the package manager that installs everything else. Paste this in Terminal and press Enter.
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
Verify it worked:
brew --version
Install Node.js
Node.js allows your computer to run the code that powers your agents.
brew install node
Verify it worked (should show v18 or higher):
node --version
Install Python 3
Python is used for many AI tools and automations.
brew install python
Verify it worked:
python3 --version
Install Git
Git tracks changes in code and lets you download templates.
brew install git
Verify it worked:
git --version
Install OpenClaw
OpenClaw is the engine that runs your personal AI agent.
npm install -g openclaw
Verify it worked:
openclaw --version
Install VS Code
Visual Studio Code is the editor you'll use to view your agent's files.
open https://code.visualstudio.com/
- Download from code.visualstudio.com.
- Drag the unzipped app to your Applications folder.
- Open VS Code.
- Press Cmd + Shift + P to open the Command Palette.
- Type shell command and select Install 'code' command in PATH.
Verify it worked:
code --version
Show Hidden Files
OpenClaw stores your agent in a ~/.openclaw folder. Folders starting with a dot are hidden by default.
open ~/.openclaw
- Open Finder and go to your home folder (Cmd + Shift + H).
- Press Cmd + Shift + . (period) to reveal hidden files.
- Look for the .openclaw folder.
What this does: reveals the folder where OpenClaw stores your workspace and settings.
Open VS Code from a Folder
Navigate to ~/.openclaw/workspace/ in Finder and right-click to Open with VS Code. Or, run this in Terminal:
code ~/.openclaw/workspace
Verify it worked:
ls ~/.openclaw/workspace
Inside, you'll see your agent files, SOUL.md, and memory files.
Troubleshooting
"command not found: brew" ▼
echo 'eval "$(/opt/homebrew/bin/brew shellenv)"' >> ~/.zprofileeval "$(/opt/homebrew/bin/brew shellenv)"
"permission denied" (npm) ▼
sudo with npm. Use a Node Version Manager (nvm) instead to manage permissions cleanly.
"node version too old" ▼
brew upgrade node in your Terminal.