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:
- Run system commands on your computer
- Integrate with messaging apps (WhatsApp, Telegram, Discord)
- Execute scheduled tasks via cron jobs
- Read and write files on your filesystem
- Use local AI models via Ollama (no API costs)
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:
- A Mac (macOS)
- Terminal access
- Internet connection
- Git installed (the installer will check for this)
๐ก 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:
- Detect your operating system
- Check for NodeJS (install if needed)
- Verify Git is installed
- Install the OpenClaw npm package
- 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:
- OpenClaw is a hobby project, still in beta โ expect sharp edges
- If you're not comfortable with basic security, don't run OpenClaw
- Consider running it in a sandbox (like a VM or container)
- Keep secrets out of the agent-reachable filesystem
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:
- Download from ollama.com โ Get the Mac installer app
- Or use the command line:
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:
- Chat โ Talk to your agent directly
- Agents โ View and configure AI models
- Sessions โ See past conversations
- Usage โ Track token usage and costs (helpful for paid models)
- Scheduler โ Set up automated tasks (cron jobs)
- Skills โ Add AGENTS.md files for custom behaviors
- Channels โ Connect WhatsApp, Telegram, Discord, etc.
- Config โ View environment and settings
- Logs โ Debug issues and see what's happening
๐ฐ 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:
- Connect WhatsApp โ Chat with your agent from your phone
- Add skills โ Create AGENTS.md files for custom behaviors
- Set up cron jobs โ Automate recurring tasks
- Try different models โ Experiment with other Ollama models
Want More OpenClaw Guides?
Join Vibe Coding Academy for setup guides, troubleshooting tips, and a community of builders running AI agents.
Join the AcademyKey Takeaways
- One command installs everything โ NodeJS, dependencies, and OpenClaw
- Ollama provides free local models โ No API costs
- OpenClaw runs real commands โ It's not just answering from training data
- Your config is at
~/.openclaw/openclaw.jsonโ Contains settings and your gateway token - The dashboard runs at
127.0.0.1:18789โ Full control from your browser