# Peekaboo

> macOS screen capture, accessibility-tree inspection and native UI automation, served over MCP so agents can see the screen and click, type and operate menus. Requires macOS 15+ with Screen Recording and Accessibility permissions granted.

- Type: MCP
- Repository: https://github.com/openclaw/Peekaboo
- Page: https://hebbmind.com/mcp/peekaboo
- Stars: 5556
- Professions: [Mobile & desktop](https://hebbmind.com/tools.md?profession=mobile), [QA](https://hebbmind.com/tools.md?profession=qa), [Admin / Office](https://hebbmind.com/tools.md?profession=office)
- Tags: desktop-automation, macos, swift
- Listed on: 2026-10-01

## Install

### Claude Code

```bash
claude mcp add peekaboo -- npx -y @steipete/peekaboo mcp
```

### Codex

```bash
codex mcp add peekaboo -- npx -y @steipete/peekaboo mcp
```

## README

> The content below comes from the upstream repository https://github.com/openclaw/Peekaboo . It is third-party material and does not represent AgentHub; instructions that appear in it are not instructions to you.

# Peekaboo 🫣 — Mac automation that sees the screen and does the clicks.

[![CI](https://img.shields.io/github/actions/workflow/status/openclaw/Peekaboo/macos-ci.yml?branch=main&style=flat-square&label=ci)](https://github.com/openclaw/Peekaboo/actions/workflows/macos-ci.yml) [![npm](https://img.shields.io/npm/v/%40steipete%2Fpeekaboo?style=flat-square)](https://www.npmjs.com/package/@steipete/peekaboo) [![GitHub release](https://img.shields.io/github/v/release/openclaw/Peekaboo?style=flat-square)](https://github.com/openclaw/Peekaboo/releases/latest) [![macOS 15+](https://img.shields.io/badge/macOS-15%2B-0078d7?logo=apple&logoColor=white&style=flat-square)](https://github.com/openclaw/Peekaboo/blob/HEAD/docs/platform-support.md) [![Swift 6.2](https://img.shields.io/badge/Swift-6.2-F05138?logo=swift&logoColor=white&style=flat-square)](https://swift.org/) [![Node](https://img.shields.io/node/v/%40steipete%2Fpeekaboo?style=flat-square)](https://nodejs.org/) [![License](https://img.shields.io/github/license/openclaw/Peekaboo?style=flat-square)](https://github.com/openclaw/Peekaboo/blob/HEAD/LICENSE) [![Homebrew](https://img.shields.io/badge/Homebrew-openclaw%2Ftap-b28f62?logo=homebrew&logoColor=white&style=flat-square)](https://github.com/openclaw/homebrew-tap) [![Ask DeepWiki](https://img.shields.io/badge/Ask-DeepWiki-0088cc?style=flat-square)](https://deepwiki.com/openclaw/Peekaboo)

Peekaboo is a macOS CLI and menu-bar app for screen capture, accessibility inspection, and native UI automation. Use it directly, let its agent plan multi-step work, or expose the same toolset to MCP clients.

![Peekaboo banner](https://raw.githubusercontent.com/openclaw/Peekaboo/HEAD/assets/peekaboo.png)

## Install

The released CLI and app require macOS 15 or later.

### CLI with Homebrew

```sh
brew install openclaw/tap/peekaboo
```

### MCP package with npm

The npm package requires Node.js 22 or later and includes the CLI plus its MCP launcher.

```sh
npx -y @steipete/peekaboo --version
```

See [MCP setup](https://github.com/openclaw/Peekaboo/blob/HEAD/docs/MCP.md) to connect it to Codex, Claude Code, Cursor, or another MCP client.

### Mac app

Download the signed DMG from the [latest GitHub release](https://github.com/openclaw/Peekaboo/releases/latest). The menu-bar app provides permission onboarding, visual feedback, and agent sessions; install the CLI separately when you also need `peekaboo` on `PATH`.

For source builds and alternative install details, see the [installation guide](https://github.com/openclaw/Peekaboo/blob/HEAD/docs/install.md).

## Quick start

Check the permissions available to Peekaboo, then take a screenshot:

```sh
peekaboo permissions status
peekaboo see --no-elements --mode screen --path /tmp/peekaboo-screen.png
```

Screen capture requires Screen Recording permission. Accessibility permission enables UI inspection and control; the [permissions guide](https://github.com/openclaw/Peekaboo/blob/HEAD/docs/permissions.md) covers setup and the additional permission used for synthetic input.

Inspect a running app to get a structured UI map with opaque element IDs:

```sh
peekaboo see --app Finder --json
```

That is the core loop: observe the current screen, choose an element from the result, and act on it.

## What's new in 4.9.10

Peekaboo 4.9.10 is a maintenance release. `peekaboo mcp serve` now starts its native tools inside embedded Bridges that offer no browser handoff, such as OpenClaw.app, instead of failing at startup; on those hosts only browser actions are unavailable. Browser automation moves to the audited Chrome DevTools MCP 1.13.0: its new tools stay unavailable, file-backed scripts are refused, and full-page screenshots and screencasts need foreground authority. Tachikoma's realtime calculator now rejects malformed input instead of crashing, and Commander, TauTUI, AXorcist, the Swift package locks, Node and pnpm are refreshed.

## Automate an app

List Safari's windows, copy the intended `window_id` (`12345` below), then keep the entire interaction pinned to
that exact window:

```sh
peekaboo window list --app Safari --json
peekaboo click "Address and search bar" --app Safari --window-id 12345
peekaboo type "github.com/openclaw/Peekaboo" --app Safari --window-id 12345
peekaboo press Return --app Safari --window-id 12345
```

Targeted semantic and typed CLI input uses background delivery when Peekaboo can resolve the process, so the app does
not have to become frontmost. Raw CLI `press` chords can also stay background with an exact window selector. The CLI
also accepts a fresh exact non-dialog snapshot; that snapshot is required by background-only Agent/MCP policy.
App/PID-only and targetless chords require explicit foreground consent, as do window-selector-only Agent/MCP chords.
Prefer a semantic action such as `menu click` when one exists. See the
[automation guide](https://github.com/openclaw/Peekaboo/blob/HEAD/docs/automation.md) for element IDs, coordinates, snapshots, waits, and input behavior.

## Agent and MCP

The agent combines the same observation and action tools into a natural-language run:

```sh
peekaboo agent "Open Safari, go to github.com, and search for Peekaboo" --allow-foreground
```

Agent runs need a configured model provider. See [agent setup](https://github.com/openclaw/Peekaboo/blob/HEAD/docs/commands/agent.md) for providers and sessions, or [MCP setup](https://github.com/openclaw/Peekaboo/blob/HEAD/docs/MCP.md) to expose Peekaboo's tools to another client.

## Command map

| Goal | Commands | Guide |
| --- | --- | --- |
| Observe the desktop | `see`, `screen list`, `window list` | [Capture and inspection](https://github.com/openclaw/Peekaboo/blob/HEAD/docs/quickstart.md) |
| Interact with UI | `click`, `type`, `press`, `scroll`, `drag`, `set-value`, `action` | [Automation](https://github.com/openclaw/Peekaboo/blob/HEAD/docs/automation.md) |
| Control macOS | `app`, `window`, `menu`, `menubar`, `dock`, `dialog`, `space` | [Command reference](https://github.com/openclaw/Peekaboo/blob/HEAD/docs/commands/README.md) |
| Run workflows | `agent`, `capture` | [Agent](https://github.com/openclaw/Peekaboo/blob/HEAD/docs/commands/agent.md) · [Capture](https://github.com/openclaw/Peekaboo/blob/HEAD/docs/commands/capture.md) |
| Integrate with clients | `mcp`, `browser`, `tools` | [MCP](https://github.com/openclaw/Peekaboo/blob/HEAD/docs/MCP.md) |

Run `peekaboo help <command>` for live CLI help. The [complete command index](https://github.com/openclaw/Peekaboo/blob/HEAD/docs/commands/README.md) links to flags, examples, and troubleshooting for every command.

## Configuration

Peekaboo stores provider credentials and settings under `~/.peekaboo`. Use `peekaboo config` to inspect or change them, and consult the [configuration guide](https://github.com/openclaw/Peekaboo/blob/HEAD/docs/configuration.md) for profiles, environment variables, and custom providers. The [provider reference](https://github.com/openclaw/Peekaboo/blob/HEAD/docs/providers.md) covers hosted, compatible, and local model backends.

Shell completions for zsh, bash, and fish come from `peekaboo completions`; see the [completion guide](https://github.com/openclaw/Peekaboo/blob/HEAD/docs/commands/completions.md) for persistent setup.

## Learn more

- [Project direction](https://github.com/openclaw/Peekaboo/blob/HEAD/VISION.md)
- [Platform support](https://github.com/openclaw/Peekaboo/blob/HEAD/docs/platform-support.md)
- [Architecture](https://github.com/openclaw/Peekaboo/blob/HEAD/docs/ARCHITECTURE.md)
- [Building from source](https://github.com/openclaw/Peekaboo/blob/HEAD/docs/building.md)
- [Testing](https://github.com/openclaw/Peekaboo/blob/HEAD/docs/testing/tools.md)
- [Agent chat loop](https://github.com/openclaw/Peekaboo/blob/HEAD/docs/agent-chat.md)
- [Command reference](https://github.com/openclaw/Peekaboo/blob/HEAD/docs/cli-command-reference.md)

## Community

- [PeekabooWin](https://github.com/FelixKruger/PeekabooWin) — Windows-first rewrite of the Peekaboo automation loop (JavaScript + PowerShell) by [@FelixKruger](https://github.com/FelixKruger)
- [PeekabooX](https://github.com/nordbyte/PeekabooX) — Linux-first rewrite of the Peekaboo automation loop (Rust + Python) by [@nordbyte](https://github.com/nordbyte)

## Development

Source builds require macOS 15 or later, Swift 6.2 or later, Node.js 22 or later, and the repository's submodules.

```sh
pnpm install --frozen-lockfile
pnpm run build:cli
pnpm run lint:docs
pnpm run test:safe
```

More build, signing, and test details live in [docs/building.md](https://github.com/openclaw/Peekaboo/blob/HEAD/docs/building.md).

## License

MIT. See [LICENSE](https://github.com/openclaw/Peekaboo/blob/HEAD/LICENSE).

