Xpersona
M

macOS Computer-Use Skill

CLAWHUB · Unverified

Top-level macOS computer-use skill with a bundled standalone runtime that bootstraps itself without any local Claude installation, private native modules, or...

62
Rank
84
Safety
1.5k
Downloads

About

What it does, and when to use it.

Capability contract not published. No trust telemetry is available yet. 1.5K downloads reported by the source. Last updated 10/10/2026.

Avoid when

  • Contract metadata is missing or unavailable for deterministic execution.

Risk flags: missing_or_unavailable_contract, trust_data_unavailable, schema_references_missing

Install and run

Setup complexity: low.

clawhub skill install s177xf3genmsr92b653psf6fas83zzd8:computer-use-macos
  1. Install using `clawhub skill install s177xf3genmsr92b653psf6fas83zzd8:computer-use-macos` in an isolated environment before connecting it to live workloads.
  2. No published capability contract is available yet, so validate auth and request/response behavior manually.
  3. Review the upstream CLAWHUB listing at https://clawhub.ai/wimi321/computer-use-macos before using production credentials.

Contract: missing

curl -s "https://www.xpersona.co/api/v1/agents/clawhub-wimi321-computer-use-macos/snapshot"

Run-check

$0.02 USD

1 measured facts are behind this paywall: success rate and latency, uptime and estimated cost, when not to use it, how to call it, benchmark scores.

Agents pay $0.02 in USDC. A card payment is $0.50, the smallest a card allows.

Documentation

CLAWHUB

149,383 characters of source documentation, loaded on request.

Extracted files

5 files captured from the source.

SKILL.md

---
name: computer-use-macos
version: 0.2.2
description: Top-level macOS computer-use skill with a bundled standalone runtime that bootstraps itself without any local Claude installation, private native modules, or extracted app assets.
tags:
  - skill
  - macos
  - computer-use
  - automation
  - mcp
---

# macOS Computer-Use Skill

Use this skill when the task needs a portable macOS computer-use skill bundled with its own standalone runtime and MCP server.

## What this skill does

- uses the bundled `macos-computer-use-skill` project under the installed skill directory
- builds the standalone MCP server
- lets the server auto-bootstrap its Python runtime on first launch
- avoids any dependency on local Claude binaries, `.node` modules, or extracted app assets
- stays explicitly macOS-only because the underlying desktop-control backend is macOS-specific

## Default bundled project path

After installation, assume the standalone project lives at:

```bash
~/.codex/skills/computer-use-macos/project
```

If the user installed the skill under a custom `CODEX_HOME`, use that equivalent path instead.

## Build

Always build from the bundled project:

```bash
cd ~/.codex/skills/computer-use-macos/project
npm install
npm run build
```

## Run

```bash
cd ~/.codex/skills/computer-use-macos/project
node dist/cli.js
```

The first real run will automatically create `.runtime/venv` and install the public Python dependencies.

## Validation notes

- On real macOS hosts, prefer validating typing through the MCP `type` tool path, not only low-level helper calls.
- Version `0.2.2` routes ordinary macOS text input through clipboard paste when available, avoiding IME/input-source corruption seen with per-key typing under Chinese input methods.

## Guardrails

- Treat this host as trusted-local only.
- Do not tell the user to search their local Claude install for binaries or hidden assets.
- Be explicit that this runtime is standalone and uses public dependencies only.
- Mention that the current runtime reports `screenshotFiltering: none`, so action gating is handled at the MCP layer.

project/README.md

<div align="center">
  <img src="./assets/hero.svg" alt="macos-computer-use-skill hero" width="100%" />
  <h1>macOS Computer-Use Skill</h1>
  <p><strong>A top-level portable skill for macOS with a bundled standalone runtime and MCP server.</strong></p>
  <p>
    <a href="https://github.com/wimi321/macos-computer-use-skill">GitHub</a>
    ·
    <a href="https://clawhub.ai/wimi321/computer-use-macos">ClawHub</a>
    ·
    <a href="./README.zh-CN.md">简体中文</a>
    ·
    <a href="./README.ja.md">日本語</a>
  </p>
</div>

## Install From ClawHub

Published on ClawHub as [`computer-use-macos`](https://clawhub.ai/wimi321/computer-use-macos).

```bash
clawhub install computer-use-macos
```

If you want the source repo as well, keep reading for the full GitHub setup.

## Positioning

This repository is best understood as:

- a top-level `skill`
- a bundled standalone macOS runtime
- a computer-use MCP server for agent ecosystems

It is not just for Codex. The skill packaging is intentionally portable, so the same project can be adapted for ecosystems that consume skill-style distributions.

## Why This Project Exists

The original Claude Code computer-use stack was excellent, but the user requirement here was stricter:

- no piggybacking on a local Claude install
- no private `.node` binaries
- no "works if you already extracted internal assets"
- install the skill, launch the server, and use it

This repository now delivers exactly that on macOS.

## What You Get

- top-level macOS computer-use skill
- standalone MCP server for screenshots, mouse, keyboard, app launch, display switching context, and clipboard
- public dependency chain only: `Node.js + Python + pyautogui + mss + Pillow + pyobjc`
- first-run runtime bootstrap: the server creates its own virtualenv and installs dependencies automatically
- bundled skill install that copies the full project into `~/.codex/skills/computer-use-macos/project`
- extracted TypeScript tool layer from the original computer-use workflow, re-wired to a fully independent backend

## Current Status

This repository has been validated locally on a real macOS machine with:

- runtime bootstrap
- permission checks
- display enumeration
- screenshot capture
- frontmost app detection
- app-under-point lookup
- window-to-display resolution
- clipboard read/write
- MCP `type` tool GUI typing smoke tests
- MCP server startup

## What Was Fixed In 0.2.2

During real-device testing, we hit a macOS-specific bug: under a Chinese IME/input source, ordinary ASCII text could be corrupted when the tool typed one key at a time.

Version `0.2.2` fixes that by preferring clipboard-routed typing on macOS for normal multi-character text when clipboard write is available. That keeps the standalone skill usable even when the current input source is not plain U.S. keyboard mode.

## Architecture

```mermaid
flowchart LR
    A[Codex / MCP Client] --> B[macos-computer-use-skill]
    B --> C[Extracted TypeScript MCP tools]
    B --> D[Standalone Pyt

_meta.json

{
  "ownerId": "kn7a01bsk4eqnxk0ehtxqwqaq183yxpt",
  "slug": "computer-use-macos",
  "version": "0.2.2",
  "publishedAt": 1774978869711
}

project/README.ja.md

<div align="center">
  <img src="./assets/hero.svg" alt="macos-computer-use-skill hero" width="100%" />
  <h1>macOS Computer-Use Skill</h1>
  <p><strong>macOS 向けのトップレベル portable skill。standalone runtime と MCP server を同梱しています。</strong></p>
  <p>
    <a href="https://github.com/wimi321/macos-computer-use-skill">GitHub</a>
    ·
    <a href="https://clawhub.ai/wimi321/computer-use-macos">ClawHub</a>
    ·
    <a href="./README.md">English</a>
    ·
    <a href="./README.zh-CN.md">简体中文</a>
  </p>
</div>

## ClawHub からインストール

この skill は ClawHub に [`computer-use-macos`](https://clawhub.ai/wimi321/computer-use-macos) として公開済みです。

```bash
clawhub install computer-use-macos
```

ソース一式も欲しい場合は、このまま GitHub セットアップを参照してください。

## このプロジェクトの位置づけ

このリポジトリは同時に:

- トップレベルの `skill`
- 独立した macOS runtime
- agent エコシステム向けの computer-use MCP server

として設計されています。Codex 専用ではなく、skill という配布形態そのものをポータブルにしています。

## このプロジェクトの目的

目標は明確です。

- ローカル Claude に依存しない
- private な `.node` バイナリに依存しない
- どこかのインストール済み Claude から内部資産を拾わない
- skill を入れたら、そのまま computer use が動く

このリポジトリはその前提で再構成されています。

## できること

- トップレベル macOS computer-use skill
- スクリーンショット、マウス、キーボード、アプリ起動、ウィンドウ/ディスプレイ情報、クリップボードを扱う standalone MCP server
- 公開依存のみ: `Node.js + Python + pyautogui + mss + Pillow + pyobjc`
- 初回起動時に `.runtime/venv` を自動作成し、Python 依存を自動インストール
- `~/.codex/skills/computer-use-macos/project` に本体まで配置される skill install
- 抽出した TypeScript computer-use ツール層を維持しつつ、実行バックエンドを完全独立化

## ローカル検証済み

実機の macOS で以下を確認しました。

- runtime bootstrap
- 権限チェック
- ディスプレイ列挙
- スクリーンショット取得
- 最前面アプリ検出
- ポインタ下アプリ検出
- ウィンドウとディスプレイの対応付け
- クリップボード読み書き
- MCP `type` ツール経由の GUI 入力 smoke test
- MCP server 起動

## 0.2.2 で修正したこと

実機テスト中に重要な不具合を確認しました。中国語 IME / 入力ソースが有効な状態では、通常の ASCII テキストでもキーを 1 文字ずつ送る方式だと内容が壊れることがありました。

`0.2.2` では、macOS 上でクリップボード書き込み権限がある場合、通常の複数字入力も優先的にクリップボード貼り付け経路へルーティングします。これにより、英字入力が IME 状態に引きずられて壊れるケースを避けられます。

## アーキテクチャ

```mermaid
flowchart LR
    A[Codex / MCP Client] --> B[macos-computer-use-skill]
    B --> C[抽出した TypeScript MCP ツール層]
    B --> D[Standalone Python bridge]
    D --> E[pyautogui]
    D --> F[mss + Pillow]
    D --> G[pyobjc Cocoa + Quartz]
    E --> H[マウス / キーボード]
    F --> I[スクリーンショット]
    G --> J[アプリ / ディスプレイ / クリップボード / ウィンドウ]
```

## インストール

### 1. クローンして Node 依存を入れる

```bash
git clone https://github.com/wimi321/macos-computer-use-skill.git
cd macos-computer-use-skill
npm install
npm run build
```

### 2. サーバーを起動

```bash
node dist/cli.js
```

初回起動時に自動で以下を実行します。

- `.runtime/venv` の作成
- 必要なら `pip` の bootstrap
- `runtime/requirements.txt` に基づく Python 依存の導入

Claude Desktop も private native module も不要です。

## MCP 設定

```json
{
  "mcpServers": {
    "computer-use": {
      "command": "node",
      "args": [
        "/absolute/path/to/macos-computer-use-skill/dist/cli.js"
      ],
      "env": {
        "CLAUDE_COMPUTER_USE_DEBUG": "0",
        "CLAUDE_COMPUTER_USE_COORDINATE_MODE": "pixels"
      }
    }
  }
}
```

参考: [`examples/mcp-config.json`](./examples/mcp-config.json)

## Skill インストール

同梱 skill: [`sk

project/README.zh-CN.md

<div align="center">
  <img src="./assets/hero.svg" alt="macos-computer-use-skill hero" width="100%" />
  <h1>macOS Computer-Use Skill</h1>
  <p><strong>一个面向 macOS 的顶级可移植 skill,内置独立 runtime 与 MCP server。</strong></p>
  <p>
    <a href="https://github.com/wimi321/macos-computer-use-skill">GitHub</a>
    ·
    <a href="https://clawhub.ai/wimi321/computer-use-macos">ClawHub</a>
    ·
    <a href="./README.md">English</a>
    ·
    <a href="./README.ja.md">日本語</a>
  </p>
</div>

## ClawHub 安装

这个 skill 已发布到 ClawHub,slug 是 [`computer-use-macos`](https://clawhub.ai/wimi321/computer-use-macos)。

```bash
clawhub install computer-use-macos
```

如果你还想拿到完整源码仓库,下面继续看 GitHub 方式。

## 项目定位

这个仓库本质上同时是:

- 一个顶级 `skill`
- 一套独立的 macOS runtime
- 一个给 agent 生态使用的 computer-use MCP server

它不只是给 Codex 用,skill 这种交付方式本身就是为了跨 agent 生态可移植。

## 这个项目解决什么问题

目标只有一个:

- 不依赖本机 Claude
- 不依赖私有 `.node` 二进制
- 不依赖“先从某个安装目录里捞内部资产”
- skill 装上之后就能把 computer-use 跑起来

这版仓库已经按这个目标重构完成。

## 你现在拿到的能力

- 顶级 macOS computer-use skill
- 独立 MCP server:截图、鼠标、键盘、应用启动、窗口/显示器信息、剪贴板
- 只使用公开依赖:`Node.js + Python + pyautogui + mss + Pillow + pyobjc`
- 首次运行自动自举:自动创建 `.runtime/venv` 并安装 Python 依赖
- 安装 skill 时会把完整项目一起复制到 `~/.codex/skills/computer-use-macos/project`
- 保留并复用提取出来的 TypeScript computer-use 工具链,但底层执行器已换成真正独立的 runtime

## 已完成的本地验证

已经在一台真实 macOS 机器上实际验证:

- runtime 自举成功
- 权限检测成功
- 显示器枚举成功
- 截图成功
- 前台应用识别成功
- 鼠标位置对应应用识别成功
- 窗口到显示器的归属解析成功
- 剪贴板读写成功
- 走 MCP `type` 工具链路的 GUI 输入 smoke test 成功
- MCP server 成功启动

## 0.2.2 修复了什么

这次真机测试里抓到了一个关键问题:在中文输入法环境下,普通英文文本如果按“逐键输入”执行,内容会被输入法状态污染,连纯 ASCII 都可能打错。

`0.2.2` 已修复这一点:在 macOS 上,只要具备剪贴板写权限,普通多字符文本会优先走剪贴板粘贴路径,而不是一键一键敲。这样 skill 安装后在真实中文工作环境里会稳定得多。

## 架构

```mermaid
flowchart LR
    A[Codex / MCP Client] --> B[macos-computer-use-skill]
    B --> C[提取出的 TypeScript MCP 工具层]
    B --> D[独立 Python bridge]
    D --> E[pyautogui]
    D --> F[mss + Pillow]
    D --> G[pyobjc Cocoa + Quartz]
    E --> H[鼠标 / 键盘]
    F --> I[截图]
    G --> J[应用 / 显示器 / 剪贴板 / 窗口]
```

## 安装

### 1. 克隆并安装 Node 依赖

```bash
git clone https://github.com/wimi321/macos-computer-use-skill.git
cd macos-computer-use-skill
npm install
npm run build
```

### 2. 启动 server

```bash
node dist/cli.js
```

首次启动时项目会自动:

- 创建 `.runtime/venv`
- 必要时自动补 `pip`
- 根据 `runtime/requirements.txt` 安装 Python 运行时依赖

不需要 Claude Desktop。也不需要任何私有 native 模块。

## MCP 配置

示例:

```json
{
  "mcpServers": {
    "computer-use": {
      "command": "node",
      "args": [
        "/absolute/path/to/macos-computer-use-skill/dist/cli.js"
      ],
      "env": {
        "CLAUDE_COMPUTER_USE_DEBUG": "0",
        "CLAUDE_COMPUTER_USE_COORDINATE_MODE": "pixels"
      }
    }
  }
}
```

参考 [`examples/mcp-config.json`](./examples/mcp-config.json)。

## Skill 安装

仓库自带顶级 skill:[`skill/computer-use-macos`](./skill/computer-use-macos)

你现在可以通过 ClawHub 直接安装,也可以从这个仓库本地安装。

### 方式 A:从 ClawHub 安装

```bash
clawhub install computer-use-macos
```

### 方式 B:从仓库安装

安装:

```bash
bash skill/computer-use-macos/scripts/install.sh
```

安装脚本会一起复制:

- ski

Sponsored

Ads related to macOS Computer-Use Skill and adjacent AI workflows.