peekaboo
What it does
It guides an AI agent through capturing and controlling macOS apps with the Peekaboo tool, from inspecting the screen to acting on one specific control. It is for people who want an agent to operate a Mac app for them.
When to use it
- ✓When you want an agent to click or type in a Mac app for you.
- ✓When you need a screenshot of a Mac app window to check its state.
- ✓When an automation on your Mac needs to be verified after it runs.
Skill link
https://github.com/openclaw/openclaw/blob/main/skills/peekaboo/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agent’s skills folder.
Example of what to ask your AI
“Open the Notes app on my Mac, find the note titled Groceries, and tell me what it says.”
5 new skills a week. 1 minute to read.
How it works
The skill checks the installed Peekaboo version, then looks at the target app, acts on the intended control, and verifies the result. It works under the macOS permissions of the app or bridge that performs the action.
Technical content (original SKILL.md)
Original text by the author, straight from GitHub.
Peekaboo
Use Peekaboo to inspect macOS UI, act on the intended target, and verify the result.
The examples below use v4 syntax. Check peekaboo --version and the installed
command's --help; for older versions, follow that version's help.
OpenClaw Bridge
The OpenClaw macOS app hosts Peekaboo Bridge when Computer Control is enabled, its provider is Peekaboo, and Peekaboo Bridge is enabled. Keep the existing OpenClaw socket selection when running through that host:
export PEEKABOO_BRIDGE_SOCKET="${PEEKABOO_BRIDGE_SOCKET:-$HOME/Library/Application Support/OpenClaw/bridge.sock}"
peekaboo bridge status --json
Confirm that the selected host and socket are the intended ones. Preserve an
explicit PEEKABOO_BRIDGE_SOCKET or --bridge-socket selection. If the required
host is unavailable, report that outcome; do not clear the selection or switch
Computer Control providers to make a command succeed.
Permissions belong to the process or Bridge host performing the operation.
Do not pass --no-remote unless the caller has the required permissions.
Find the installed command
Use leaf help for flags and targeting requirements instead of copying a flag between commands. Use root help to discover the available commands:
peekaboo --help
peekaboo app list --help
peekaboo see --help
peekaboo press --help
peekaboo drag --help
V4 removed these old command roots:
| Old command | V4 command |
|---|---|
list apps |
app list |
image |
see --no-elements for pixels without element detection |
hotkey |
press with chords such as cmd+shift+t |
swipe |
drag --from … --to … |
For other operations, including clicking, typing, scrolling, and managing windows
or menus, use peekaboo <command> --help. Put command options after the leaf
command; --json requests structured output.
Inspect, act, verify
Start with application inventory and a fresh view of the target:
peekaboo app list --json
peekaboo see --app Safari --window-title "Example" --annotate \
--path /tmp/peekaboo-example.png --json
Read the returned elements before acting. Keep actions tied to the intended app, window, and fresh snapshot; do not reuse example element IDs. After an action, inspect the UI again and check the requested result. Refresh the observation when the window changes or a target becomes stale.
For a screenshot without element detection:
peekaboo see --mode screen --screen-index 0 --no-elements --retina \
--path /tmp/peekaboo-screen.png --json
Raw keyboard chords require explicit foreground interaction or a fresh
exact-window receipt accepted by press. Dragging always moves the shared cursor
and requires --foreground. When foreground interaction is authorized:
peekaboo press cmd+shift+t --app Safari --foreground --json
peekaboo drag --from 100,500 --to 100,200 --duration 800ms --foreground --json
Use the actual target and coordinates from the current observation. Prefer
explicit duration units such as 800ms; consult each command's help for its
options and prerequisites.
Troubleshooting
- For a removed-command error, use the replacement named by the installed CLI.
- For host or permission failures, inspect
peekaboo bridge status --jsonandpeekaboo permissions status --jsonfor the selected host. - For targeting failures, read the leaf help and obtain fresh UI state with
see. - On macOS 15+, the private window picker prompt is separate from the base Screen Recording grant and can appear even when Bridge permissions are correct.
FAQ
Does it need special permissions?
Yes. The app or bridge doing the work needs the macOS permissions that control access to the screen and other apps.
What if the wrong app is targeted?
The skill confirms the selected host and target first, and it does not switch providers just to force a result.
Does it work on Windows?
No. Peekaboo is for macOS.
Details
Original description by the author
Capture and automate macOS UI with the Peekaboo CLI.
repo: openclaw/openclaw
Popularity
- GitHub stars
- 394k
- Ranking position
- #75
- License
- MIT
- Updated
- 11/2/2026
Comments
- …
More skills from this repository
discord-user-post
394kLets your agent post a message you have approved to Discord as you, through the Discord desktop app, after confirming the exact channel.
discrawl
394kLets your agent search and summarize a saved local archive of Discord messages, check how fresh it is, and read direct messages.
gitcrawl
394kLets your agent search a saved archive of GitHub issues and pull requests, group duplicates, and check their current status on GitHub.
graincrawl
394kLets your agent search your saved Granola meeting notes and transcripts, check how fresh they are, and count them over a period.
Similar skills
executing-plans
311kHelps your agent carry out a written implementation plan step by step in the current session, testing each step before moving on.
finishing-a-development-branch
311kHelps your agent wrap up finished code by running the tests, then offering clear options to merge, open a pull request, or keep the branch.
receiving-code-review
311kHelps your agent weigh code review feedback carefully, checking each point against the code before changing anything.