Vibe Coding Academy Logo Vibe Coding Academy

Install OpenClaw on Mac

Set up your own AI agent on your Mac with the one-liner command. Configure Ollama for local models and start running system commands in minutes.

Published February 26, 2026 ยท 10 min read

#OpenClaw #Mac #Ollama

Want to run your own AI agent on your Mac? OpenClaw is an open-source autonomous AI agent that functions as a personal assistant โ€” and it integrates with messaging apps like WhatsApp, Telegram, and Discord.

In this guide, I'll walk you through installing OpenClaw on your Mac and configuring it with Ollama to run local AI models for free.

What is OpenClaw?

OpenClaw is an open-source autonomous AI agent that can:

Think of it as your own AI employee that lives on your machine and can do real work.

Prerequisites

Before we start, make sure you have:

๐Ÿ’ก Why Use the One-Liner?

The one-liner command automatically installs NodeJS and all prerequisites for you. It's the recommended installation method.

Step 1: Install OpenClaw Using the One-Liner

Open your Terminal app and run this command:

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

The installer will:

  1. Detect your operating system
  2. Check for NodeJS (install if needed)
  3. Verify Git is installed
  4. Install the OpenClaw npm package
  5. Start the onboarding process

Step 2: Complete the Onboarding Process

After installation, OpenClaw will start the onboarding process automatically.

1Read the Security Warning

โš ๏ธ Security Warning

OpenClaw is a powerful tool that can run commands on your computer. The onboarding will remind you:

Use your arrow keys to select Yes and press Enter to continue.

2Select Quick Start Mode

Choose Quick Start for the fastest setup. This handles most configuration automatically.

3Skip Model Selection (For Now)

Since we want to use Ollama for local models, select Skip for now when asked about models. We'll configure Ollama in the next steps.

If you don't see Ollama in the list, just enter any placeholder name (like /demo) to complete onboarding โ€” we'll replace it later.

4Skip Channels (Optional)

You can skip channel configuration for now. We'll use the native web chat first. You can always add WhatsApp, Telegram, or Discord later.

5Skip Skills and Hooks

Select Skip for now for skills and hooks. These can be configured anytime later.

โœ… Onboarding Complete

Once complete, OpenClaw will install and start the gateway service. The web dashboard will open automatically at 127.0.0.1:18789.

Important: Your Gateway Token

Note the token shown at the end of onboarding. You'll need it to access the web dashboard:

http://127.0.0.1:18789/token/YOUR_TOKEN_HERE

The token is also stored in your config file:

cat ~/.openclaw/openclaw.json

Step 3: Install Ollama

Now let's install Ollama so we can run local AI models for free.

First, stop the OpenClaw gateway:

openclaw gateway stop

Then install Ollama. You can either:

curl -fsSL https://ollama.ai/install.sh | sh

Wait for the installation to complete. You might see a message about GPU detection โ€” Ollama works on both Apple Silicon and Intel Macs.

Verify Ollama is running by visiting http://localhost:11434 in your browser. You should see "Ollama is running".

Step 4: Configure OpenClaw with Ollama

Now let's connect OpenClaw to Ollama and download a model.

Run the Ollama launch command for OpenClaw:

ollama launch openclaw

You'll see a list of recommended models. I suggest MiniMax M2.5 cloud โ€” it's a solid choice for general use.

Select your model and press Enter. When asked to download, select Yes.

๐Ÿ” Ollama Account Required

You'll need to log in with an Ollama account. You can sign up with Google or GitHub โ€” it's free. After logging in, click Connect to link your device.

Once connected, the model will download and OpenClaw will start with it configured.

Step 5: Test Your Setup

Open your browser and go to the OpenClaw dashboard:

http://127.0.0.1:18789

Go to the Agents section to verify your model is configured (e.g., ollama/minimax-m2.5:cloud).

Now try the chat! Ask OpenClaw something that requires system access:

What are the specs of this Mac?

OpenClaw will run system commands to gather information about your CPU, RAM, storage, and macOS version โ€” then report back with the results.

Another Test: Find Files

Try something more advanced:

Find the folder in my Documents directory where I have saved a Python script and tell me what it does.

OpenClaw will use the find command to locate your file, then read its contents and explain what the program does. It's not just giving answers from its training โ€” it's actually running commands on your system.

โœ… It's Working!

If OpenClaw returned your system specs or found your files, congratulations โ€” you have a working AI agent on your Mac!

Exploring the Dashboard

The OpenClaw web dashboard gives you full control over your AI agent:

๐Ÿ’ฐ No API Costs with Ollama

Since you're using a local model via Ollama, your token usage costs nothing. The Usage section will show your activity, but you won't be charged anything.

Gateway Commands Reference

Here are the essential commands for managing your OpenClaw gateway:

# Check gateway status
openclaw gateway status

# Start the gateway
openclaw gateway start

# Stop the gateway
openclaw gateway stop

# Restart the gateway
openclaw gateway restart

Troubleshooting

Token Not Working?

If you get an error about your token, go to the Overview section in the dashboard, enter your gateway token, and reload the page.

No Model Response?

If you see no answer in the chat, check the Agents section to confirm your model is set correctly. If you skipped model setup with a dummy name, you'll need to reconfigure it with Ollama.

Ollama Not Detected?

Make sure Ollama is running. Check with:

curl http://localhost:11434

You should see "Ollama is running".

Next Steps

Now that OpenClaw is running, you can:

Want More OpenClaw Guides?

Join Vibe Coding Academy for setup guides, troubleshooting tips, and a community of builders running AI agents.

Join the Academy

Key Takeaways

Abdul Khan
Written by
Abdul Khan