macOS Setup
Overview
Section titled “Overview”macOS is fully supported and provides the best experience for iMessage integration.
Requirements
Section titled “Requirements”- macOS 10.15 (Catalina) or later
- Python 3.10+
- Homebrew (recommended)
Installation
Section titled “Installation”-
Install Homebrew (if not already installed)
Terminal window /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" -
Install Python
Terminal window brew install python@3.11 -
Clone Clawdbot
Terminal window git clone https://github.com/polvoazul/clawdbot.gitcd clawdbot -
Create virtual environment
Terminal window python3 -m venv venvsource venv/bin/activate -
Install dependencies
Terminal window pip install -r requirements.txt -
Configure
Terminal window cp .env.example .env# Edit .env with your settings
Running as a Service
Section titled “Running as a Service”Using launchd
Section titled “Using launchd”Create ~/Library/LaunchAgents/com.clawdbot.plist:
<?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>/path/to/clawdbot/venv/bin/python</string> <string>-m</string> <string>clawdbot</string> </array> <key>WorkingDirectory</key> <string>/path/to/clawdbot</string> <key>RunAtLoad</key> <true/> <key>KeepAlive</key> <true/> <key>StandardOutPath</key> <string>/tmp/clawdbot.log</string> <key>StandardErrorPath</key> <string>/tmp/clawdbot.error.log</string></dict></plist>Load the service:
launchctl load ~/Library/LaunchAgents/com.clawdbot.plistManaging the Service
Section titled “Managing the Service”# Startlaunchctl start com.clawdbot
# Stoplaunchctl stop com.clawdbot
# Unloadlaunchctl unload ~/Library/LaunchAgents/com.clawdbot.plistiMessage Integration
Section titled “iMessage Integration”macOS enables native iMessage support:
- Grant Terminal Full Disk Access
- Grant Accessibility permissions
- Enable in
.env:Terminal window IMESSAGE_ENABLED=true
See iMessage Setup for details.
Troubleshooting
Section titled “Troubleshooting”“Permission denied” accessing Messages
- System Preferences → Security & Privacy → Full Disk Access
- Add Terminal or your IDE
Python command not found
# Add to ~/.zshrcexport PATH="/usr/local/opt/python@3.11/bin:$PATH"