← 返回 Skills 市场
manish-basargekar

clawdbot-macos-build

作者 manish-basargekar · GitHub ↗ · v1.0.0
cross-platform ⚠ suspicious
2140
总下载
1
收藏
9
当前安装
1
版本数
在 OpenClaw 中安装
/install 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.
使用说明 (SKILL.md)

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: \x3Cname>" 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:

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
安全使用建议
This skill appears to implement a normal macOS build, but exercise caution because it clones and executes code from a remote repository and performs privileged installs. Before running: - Verify the repository and maintainer: confirm the GitHub URL is official and prefer a pinned release tag or commit hash rather than cloning HEAD. - Inspect scripts/package-mac-app.sh and any build scripts in the cloned repo before executing; they can run arbitrary commands on your machine. - Consider building inside an isolated environment (Disposable macOS VM or dedicated account) to limit exposure. - Expect to grant system permissions to the final app and possibly use sudo to install to /Applications; do not run unknown scripts as root without review. - If you need production-signed builds, use your own Developer ID certs and never paste private keys or secrets into untrusted scripts; prefer ad-hoc signing for local testing. - Because the skill metadata lacks a declared source/homepage and omits required binaries, seek confirmation from the package owner or official docs before proceeding.
功能分析
Type: OpenClaw Skill Name: clawdbot-macos-build Version: 1.0.0 The skill is classified as benign. All commands and instructions in SKILL.md are directly aligned with its stated purpose: building and installing the Clawdbot macOS menu bar app from source. While it involves high-privilege actions like using `sudo` (for Xcode license acceptance) and cloning/executing scripts from an external GitHub repository (`https://github.com/clawdbot/clawdbot.git`), these are necessary steps for a macOS application build process. There is no evidence of prompt injection, data exfiltration, persistence mechanisms, or other malicious intent within the provided skill files.
能力评估
Purpose & Capability
The SKILL.md describes a legitimate macOS build flow (git clone, pnpm install, Swift build, codesign, install to /Applications). However the registry metadata lists no required binaries or source/homepage even though the instructions require Xcode, Node.js, pnpm and reference a GitHub repository — that metadata omission is inconsistent.
Instruction Scope
The instructions tell the user/agent to clone https://github.com/clawdbot/clawdbot.git and run build/package scripts (pnpm install, scripts/package-mac-app.sh) without recommending verification (commit hash, signatures). Running those scripts will execute arbitrary code from a remote repo and can require sudo and produce system changes (install to /Applications, launchd management, TCC permission prompts). The SKILL.md does not instruct verifying the packaging script prior to execution.
Install Mechanism
This is an instruction-only skill (no install spec), which avoids writing code into the agent. But the build performs network downloads (git clone, pnpm install, Swift package fetch) and executes repository scripts — a normal part of building but a higher-risk action because it executes third-party code obtained at runtime.
Credentials
The skill does not request environment variables or credentials. The instructions optionally reference a developer signing identity for production builds, which is reasonable and optional. No unrelated secrets are requested by the skill itself.
Persistence & Privilege
The workflow installs an app into /Applications, may manage launchd services, and requires granting system permissions (Accessibility, Screen Recording, Camera, etc.) to the built app. These are expected for a macOS companion app, but they are privileged actions and the skill does not surface or require explicit safeguards (for example verifying the build script) before performing them.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install clawdbot-macos-build
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /clawdbot-macos-build 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Initial release of the skill to build the Clawdbot macOS companion app from source. - Automates the full build process: dependency install, UI build, Swift compilation, code signing, and packaging. - Supports both ad-hoc and Developer ID signing for local or production builds. - Includes detailed build instructions, troubleshooting steps, and prerequisite requirements. - Enables macOS app features: menu bar status, hardware access, notifications, and deep linking. - Provides guidance for installing, launching, and configuring the app after build.
元数据
Slug clawdbot-macos-build
版本 1.0.0
许可证
累计安装 9
当前安装数 9
历史版本数 1
常见问题

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. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 2140 次。

如何安装 clawdbot-macos-build?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install clawdbot-macos-build」即可一键安装,无需额外配置。

clawdbot-macos-build 是免费的吗?

是的,clawdbot-macos-build 完全免费(开源免费),可自由下载、安装和使用。

clawdbot-macos-build 支持哪些平台?

clawdbot-macos-build 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 clawdbot-macos-build?

由 manish-basargekar(@manish-basargekar)开发并维护,当前版本 v1.0.0。

💬 留言讨论