- Published on
How to Install OpenClaw (formerly ClawdBot/Moltbot) on macOS
- Authors

- Name
- Stryxon
How to Install OpenClaw (formerly ClawdBot/Moltbot) on macOS
OpenClaw (formerly known as ClawdBot or Moltbot) is a powerful automation bot that helps streamline your workflow on macOS. This guide will walk you through the complete installation process, from prerequisites to verification.
Don't want to mess with the terminal?
Hire us to set up a secure OpenClaw instance for you.
Prerequisites
Before installing ClawdBot, ensure your system meets the following requirements:
- macOS 11 (Big Sur) or later
- Python 3.8 or higher
- Homebrew package manager
- At least 2GB of free disk space
- Administrator access to your Mac
Step 1: Install Homebrew (If Not Already Installed)
Homebrew is the package manager we'll use to install dependencies. If you don't have it installed, open Terminal and run:
Bash/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
After installation, verify Homebrew is working:
Bashbrew --version
Step 2: Install Python 3
While macOS comes with Python, we recommend installing the latest version via Homebrew:
Bashbrew install python3
Verify the installation:
Bashpython3 --version
You should see Python 3.8 or higher.
Step 3: Install Required Dependencies
ClawdBot requires several system dependencies. Install them using Homebrew:
Bashbrew install git curl wget openssl
Step 4: Clone the ClawdBot Repository
Navigate to your desired installation directory and clone the repository:
Bashcd ~/Documents git clone https://github.com/clawdbot/moltbot.git cd moltbot
Note: Replace the repository URL with the actual ClawdBot/Moltbot repository if different.
Step 5: Create a Virtual Environment
It's best practice to use a virtual environment for Python projects:
Bashpython3 -m venv venv source venv/bin/activate
Your terminal prompt should now show (venv) indicating the virtual environment is active.
Step 6: Install ClawdBot
With the virtual environment activated, install ClawdBot and its dependencies:
Bashpip install --upgrade pip pip install -r requirements.txt
If ClawdBot is available on PyPI, you can alternatively install it directly:
Bashpip install clawdbot
Step 7: Configure ClawdBot
Create a configuration file in your home directory:
Bashmkdir -p ~/.clawdbot cp config.example.yml ~/.clawdbot/config.yml
Edit the configuration file with your preferred text editor:
Bashnano ~/.clawdbot/config.yml
Update the following settings:
- API keys (if required)
- Bot preferences
- Automation triggers
- Notification settings
Step 8: Verify Installation
Test that ClawdBot is properly installed:
Bashclawdbot --version
Run a test command to ensure everything works:
Bashclawdbot test
Step 9: Set Up Auto-Start (Optional)
To have ClawdBot start automatically when you log in, create a launch agent:
Bashmkdir -p ~/Library/LaunchAgents nano ~/Library/LaunchAgents/com.clawdbot.plist
Add the following content (adjust paths as needed):
XML<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> <plist version="1.0"> <dict> <key>Label</key> <string>com.clawdbot</string> <key>ProgramArguments</key> <array> <string>/Users/YOUR_USERNAME/Documents/moltbot/venv/bin/clawdbot</string> <string>start</string> </array> <key>RunAtLoad</key> <true/> <key>KeepAlive</key> <true/> </dict> </plist>
Load the launch agent:
Bashlaunchctl load ~/Library/LaunchAgents/com.clawdbot.plist
Troubleshooting
Issue: Python Command Not Found
If python3 is not recognized, add it to your PATH:
Bashecho 'export PATH="/usr/local/opt/python/libexec/bin:$PATH"' >> ~/.zshrc source ~/.zshrc
Issue: Permission Denied Errors
Some operations might require elevated permissions:
Bashsudo chown -R $(whoami) ~/Documents/moltbot
Issue: SSL Certificate Errors
If you encounter SSL errors, update your certificates:
Bashpip install --upgrade certifi /Applications/Python\ 3.*/Install\ Certificates.command
Issue: Dependencies Conflict
If you have dependency conflicts, try creating a fresh virtual environment:
Bashdeactivate rm -rf venv python3 -m venv venv source venv/bin/activate pip install -r requirements.txt
Updating ClawdBot
To update ClawdBot to the latest version:
Bashcd ~/Documents/moltbot git pull origin main source venv/bin/activate pip install --upgrade -r requirements.txt
Uninstalling ClawdBot
If you need to uninstall ClawdBot:
- Deactivate and remove the virtual environment:
Bashdeactivate rm -rf ~/Documents/moltbot
- Remove configuration files:
Bashrm -rf ~/.clawdbot
- Remove the launch agent (if configured):
Bashlaunchctl unload ~/Library/LaunchAgents/com.clawdbot.plist rm ~/Library/LaunchAgents/com.clawdbot.plist
Conclusion
You now have ClawdBot (Moltbot) successfully installed and configured on your macOS system. Explore the official documentation to learn about advanced features and automation capabilities.
For support and community discussions, join the ClawdBot Discord server or check out the GitHub Issues page.
Happy automating!