Documentation Index
Fetch the complete documentation index at: https://docs.openclaw.ai/llms.txt
Use this file to discover all available pages before exploring further.
macOS developer setup
Build and run the OpenClaw macOS application from source.Prerequisites
Before building the app, ensure you have the following installed:- Xcode 26.2+: Required for Swift development.
- Node.js 24 & pnpm: Recommended for the gateway, CLI, and packaging scripts. Node 22 LTS, currently
22.14+, remains supported for compatibility.
1. Install Dependencies
Install the project-wide dependencies:2. Build and Package the App
To build the macOS app and package it intodist/OpenClaw.app, run:
-).
For dev run modes, signing flags, and Team ID troubleshooting, see the macOS app README:
https://github.com/openclaw/openclaw/blob/main/apps/macos/README.md
Note: Ad-hoc signed apps may trigger security prompts. If the app crashes immediately with “Abort trap 6”, see the Troubleshooting section.
3. Install the CLI
The macOS app expects a globalopenclaw CLI install to manage background tasks.
To install it (recommended):
- Open the OpenClaw app.
- Go to the General settings tab.
- Click “Install CLI”.
pnpm add -g openclaw@<version> and bun add -g openclaw@<version> also work.
For the Gateway runtime, Node remains the recommended path.
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.