← 返回
开发者工具 中文

clawdbot-macos-build

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 菜单栏应用。适用于安装菜单栏状态、权限管理及摄像头/录屏等硬件访问组件。自动处理依赖安装、UI构建、Swift编译、代码签名及应用打包。
manish-basargekar manish-basargekar 来源
开发者工具 clawhub v1.0.0 1 版本 99889.8 Key: 无需
★ 1
Stars
📥 2,699
下载
💾 64
安装
1
版本
#latest

概述

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

  • macOS (10.14+)
  • Xcode 15+ with Command Line Tools
  • Node.js >= 22
  • pnpm package manager
  • 30+ GB free disk space (Swift build artifacts)
  • Internet connection (large dependencies)

Quick Build

# Clone repo
cd /tmp && rm -rf clawdbot-build && git clone https://github.com/clawdbot/clawdbot.git clawdbot-build

# Install + build
cd /tmp/clawdbot-build
pnpm install
pnpm ui:build

# Accept Xcode license (one-time)
sudo xcodebuild -license accept

# Build macOS app with ad-hoc signing
ALLOW_ADHOC_SIGNING=1 bash scripts/package-mac-app.sh

# Install to /Applications
cp -r dist/Clawdbot.app /Applications/Clawdbot.app

# Launch
open /Applications/Clawdbot.app

Build Steps Explained

1. Clone Repository

Clones the latest Clawdbot source from GitHub. This includes the macOS app source in apps/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 to dist/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:

  • Fetches Swift package dependencies (SwiftUI libraries, etc.)
  • Compiles the macOS app for your architecture (arm64 for M1+, x86_64 for Intel)
  • Bundles resources (model catalog, localizations, etc.)
  • Code-signs the app

Signing options:

  • Ad-hoc signing (fastest): ALLOW_ADHOC_SIGNING=1 — good for local testing, app won't notarize for distribution
  • Developer ID signing (production): Set SIGN_IDENTITY="Developer ID Application: " if you have a signing certificate

This 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

  • Ensure Xcode is fully updated: xcode-select --install or update via App Store
  • Check disk space: df -h (need ~30GB free)
  • Close other apps to free RAM

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

  • Menu bar status — See Gateway health and receive notifications
  • Permission management — Owns TTC prompts for Notifications, Accessibility, Screen Recording, Microphone, etc.
  • Local/Remote modes:
  • Local: Gateway runs on your Mac; app manages launchd service
  • Remote: App connects to Gateway on another machine (VPS, home server) via SSH/Tailscale; keeps your Mac accessible even while sleeping
  • Mac hardware access: Camera, screen recording, Canvas, voice wake-word
  • Deep linking: Trigger agent requests via clawdbot:// URL scheme

See the official docs: https://docs.clawd.bot/platforms/macos

Building for Distribution

For production distribution, you'll need:

  • Apple Developer ID certificate (paid)
  • Notarization credentials
  • See: https://docs.clawd.bot/platforms/mac/release

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

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-03-28 14:22 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

dev-programming

Mcporter

steipete
使用 mcporter CLI 直接列出、配置、认证及调用 MCP 服务器/工具(支持 HTTP 或 stdio),涵盖临时服务器、配置编辑及 CLI/类型生成功能。
★ 195 📥 67,418
dev-programming

YouTube

byungkyu
使用托管OAuth集成YouTube Data API,支持搜索视频、管理播放列表、获取频道数据及评论互动,适用于用户需要时使用此技能。
★ 142 📥 41,398
dev-programming

CodeConductor.ai

larsonreever
AI驱动平台,提供快速全栈开发、智能体、工作流自动化及低代码AI集成的可扩展产品创建。
★ 72 📥 181,442