clawdbot-macos-build
by @manish-basargekar
Build the Clawdbot macOS menu bar app from source. Use when you need to install the Clawdbot.app companion (for menu bar status, permissions, and Mac hardware access like camera/screen recording). Handles dependency installation, UI build, Swift compilation, code signing, and app packaging automatically.
clawhub install clawdbot-macos-buildπ About This Skill
name: clawdbot-macos-build description: Build the Clawdbot macOS menu bar app from source. Use when you need to install the Clawdbot.app companion (for menu bar status, permissions, and Mac hardware access like camera/screen recording). Handles dependency installation, UI build, Swift compilation, code signing, and app packaging automatically.
Clawdbot macOS App Build
The macOS companion app provides menu-bar status, native notifications, and access to Mac hardware (camera, screen recording, system commands). This skill builds it from source.
Prerequisites
Quick Build
# Clone repo
cd /tmp && rm -rf clawdbot-build && git clone https://github.com/clawdbot/clawdbot.git clawdbot-buildInstall + build
cd /tmp/clawdbot-build
pnpm install
pnpm ui:buildAccept Xcode license (one-time)
sudo xcodebuild -license acceptBuild macOS app with ad-hoc signing
ALLOW_ADHOC_SIGNING=1 bash scripts/package-mac-app.shInstall to /Applications
cp -r dist/Clawdbot.app /Applications/Clawdbot.appLaunch
open /Applications/Clawdbot.app
Build Steps Explained
1. Clone Repository
Clones the latest Clawdbot source from GitHub. This includes the macOS app source inapps/macos/.2. Install Dependencies (pnpm install)
Installs Node.js dependencies for the entire workspace (~1 minute). Warnings about missing binaries in some extensions are harmless.3. Build UI (pnpm ui:build)
Compiles the Control UI (Vite β TypeScript/React). Output goes todist/control-ui/. Takes ~30 seconds.4. Accept Xcode License
Required once per Xcode update. If you get "license not agreed" errors during Swift build, run:sudo xcodebuild -license accept
5. Package macOS App (scripts/package-mac-app.sh)
Runs the full Swift build pipeline:Signing options:
ALLOW_ADHOC_SIGNING=1 β good for local testing, app won't notarize for distributionSIGN_IDENTITY="Developer ID Application: " if you have a signing certificateThis step takes 10-20 minutes depending on your Mac.
6. Install to /Applications
Copies the built app to the system Applications folder so it runs like any other macOS app.7. Launch
Opens the app. On first run, you'll see permission prompts (Notifications, Accessibility, Screen Recording, etc.) β approve them for full functionality.Troubleshooting
"Invalid tools version"
Swift build requires 6.2+. Update Xcode:softwareupdate -i -a
"License not agreed"
sudo xcodebuild -license accept
"No signing identity found"
Use ad-hoc signing for local builds:ALLOW_ADHOC_SIGNING=1 bash scripts/package-mac-app.sh
Swift compilation hangs or is very slow
xcode-select --install or update via App Storedf -h (need ~30GB free)App won't launch after build
Check that it's properly signed:codesign -v /Applications/Clawdbot.app
If signing failed, rebuild with ALLOW_ADHOC_SIGNING=1.
What the App Does
clawdbot:// URL schemeSee the official docs: https://docs.clawd.bot/platforms/macos
Building for Distribution
For production distribution, you'll need:
For personal use, ad-hoc signing is fine.
Next Steps
After the app launches:
1. Complete the permission checklist (TCC prompts)
2. Choose Local or Remote mode
3. If Local: ensure the Gateway is running (clawdbot gateway status)
4. Open Clawdbot.app menu bar icon to configure
Then from the terminal, you can manage the Gateway:
clawdbot gateway status
clawdbot gateway restart
βοΈ Configuration
π Tips & Best Practices
"Invalid tools version"
Swift build requires 6.2+. Update Xcode:softwareupdate -i -a
"License not agreed"
sudo xcodebuild -license accept
"No signing identity found"
Use ad-hoc signing for local builds:ALLOW_ADHOC_SIGNING=1 bash scripts/package-mac-app.sh
Swift compilation hangs or is very slow
xcode-select --install or update via App Storedf -h (need ~30GB free)App won't launch after build
Check that it's properly signed:codesign -v /Applications/Clawdbot.app
If signing failed, rebuild with ALLOW_ADHOC_SIGNING=1.