macOS Developer Setup
This guide covers the necessary steps to build and run the Clawdbot macOS application from source.Prerequisites
Before building the app, ensure you have the following installed:- Xcode 26.2+: Required for Swift development.
- Node.js & pnpm: Required for the gateway and CLI components.
- Bun: Required to package the embedded gateway relay.
1. Initialize Submodules
Clawdbot depends on several submodules (likePeekaboo). You must initialize these recursively:
2. Install Dependencies
Install the project-wide dependencies:3. Build and Package the App
To build the macOS app and package it intodist/Clawdbot.app, run:
-).
Note: Ad-hoc signed apps may trigger security prompts. If the app crashes immediately with “Abort trap 6”, see the Troubleshooting section.
4. Install the CLI Helper
The macOS app requires a symlink namedclawdbot in /usr/local/bin or /opt/homebrew/bin to manage background tasks.
To install it:
- Open the Clawdbot app.
- Go to the General settings tab.
- Click “Install CLI helper” (requires administrator privileges).
Troubleshooting
Build Fails: Toolchain or SDK Mismatch
The macOS app build expects the latest macOS SDK and Swift 6.2 toolchain. System dependencies (required):- Latest macOS version available in Software Update (required by Xcode 26.2 SDKs)
- Xcode 26.2 (Swift 6.2 toolchain)
App Crashes on Permission Grant
If the app crashes when you try to allow Speech Recognition or Microphone access, it may be due to a corrupted TCC cache or signature mismatch. Fix:- Reset the TCC permissions:
- If that fails, change the
BUNDLE_IDtemporarily inscripts/package-mac-app.shto force a “clean slate” from macOS.