Peekaboo
Peekaboo is a macOS CLI & optional MCP server that enables AI agents to capture screenshots of applications, or the entire system, with optional visual question answering through local or remote AI models.
Documentation
Peekaboo ๐ซฃ โ Mac automation that sees the screen and does the clicks.
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.

Install
The released CLI and app require macOS 15 or later.
CLI with Homebrew
brew install steipete/tap/peekabooMCP package with npm
The npm package requires Node.js 22 or later and includes the CLI plus its MCP launcher.
npx -y @steipete/peekaboo --versionSee MCP setup to connect it to Codex, Claude Code, Cursor, or another MCP client.
Mac app
Download the signed DMG from the latest GitHub release. 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.
Quick start
Check the permissions available to Peekaboo, then take a screenshot:
peekaboo permissions status
peekaboo see --no-elements --mode screen --path /tmp/peekaboo-screen.pngScreen capture requires Screen Recording permission. Accessibility permission enables UI inspection and control; the permissions guide covers setup and the additional permission used for synthetic input.
Inspect a running app to get a structured UI map with opaque element IDs:
peekaboo see --app Finder --jsonThat is the core loop: observe the current screen, choose an element from the result, and act on it.
What's new in 4.3.0
Peekaboo 4.3.0 adds exact-window pixel-focus typing, explicit foreground modifier-clicks, and stronger signed Bridge receipts for background automation. Window inventory explains whether combined Accessibility capture, screenshot-only recovery, or refreshed evidence is available, while isolated browser sessions keep targets and permissions bound to their caller. Secure credential input and shared app/CLI credential storage avoid process-list leaks and Keychain prompts. Faster caller-local startup, concurrent automatic capture, and modern protocol negotiation with signed OpenClaw hosts make everyday automation more predictable.
Automate an app
List Safari's windows, copy the intended `window_id` (`12345` below), then keep the entire interaction pinned to
that exact window:
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 12345Targeted 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 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:
peekaboo agent "Open Safari, go to github.com, and search for Peekaboo" --allow-foregroundAgent runs need a configured model provider. See agent setup for providers and sessions, or MCP setup to expose Peekaboo's tools to another client.
Command map
| Goal | Commands | Guide |
|---|---|---|
| Observe the desktop | `see`, `screen list`, `window list` | Capture and inspection |
| Interact with UI | `click`, `type`, `press`, `scroll`, `drag`, `set-value`, `action` | Automation |
| Control macOS | `app`, `window`, `menu`, `menubar`, `dock`, `dialog`, `space` | Command reference |
| Run workflows | `agent`, `capture` | Agent ยท Capture |
| Integrate with clients | `mcp`, `browser`, `tools` | MCP |
Run `peekaboo help ` for live CLI help. The complete command index 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 for profiles, environment variables, and custom providers. The provider reference covers hosted, compatible, and local model backends.
Shell completions for zsh, bash, and fish come from `peekaboo completions`; see the completion guide for persistent setup.
Learn more
- Project direction
- Platform support
- Architecture
- Building from source
- Testing
- Agent chat loop
- Command reference
Community
- PeekabooWin โ Windows-first rewrite of the Peekaboo automation loop (JavaScript + PowerShell) by @FelixKruger
- PeekabooX โ Linux-first rewrite of the Peekaboo automation loop (Rust + Python) by @nordbyte
Development
Source builds require macOS 15 or later, Swift 6.2 or later, Node.js 22 or later, and the repository's submodules.
pnpm install --frozen-lockfile
pnpm run build:cli
pnpm run lint:docs
pnpm run test:safeMore build, signing, and test details live in docs/building.md.
License
MIT. See LICENSE.
Frequently asked questions
What is Peekaboo?
Peekaboo is Peekaboo is a macOS CLI & optional MCP server that enables AI agents to capture screenshots of applications, or the entire system, with optional visual question answering through local or remote AI models.
How do I install Peekaboo?
Open the GitHub repository and follow its README. Most MCP servers are added to your client's MCP config, then called by your agent.
Is Peekaboo open source?
Yes โ it is hosted on GitHub at https://github.com/openclaw/Peekaboo and has 5,107 stars.
Related MCP tools
๐พ Open Computer Use โ Open-Source Alternative to Codex Computer Use
3D & AR SDK for Android (Jetpack Compose + Filament), iOS (SwiftUI + RealityKit), and Web. AI-first: llms.txt, MCP server, Copilot/Cursor rules. The only Compose-native 3D library.
This is MCP server for Claude that gives it terminal control, file system search and diff file editing capabilities
MCP Server for Computer Use in Windows
The go-to web for your AI coding agent โ local-first search, fetch, crawl & research over MCP. No API keys, no cloud, $0/query. Public beta.
An AI Gateway, registry, and proxy that sits in front of any MCP, A2A, or REST/gRPC APIs, exposing a unified endpoint with centralized discovery, guardrails and management. Optimizes Agent & Tool calling, and supports plugins.
Run your own MCP server? See who uses it and what to fix.
Measure it with TrackMCP