| summary | read_when | ||
|---|---|---|---|
Grant required macOS permissions and understand performance trade-offs for Peekaboo. |
|
- macOS 15.0+ (Sequoia) – core automation APIs depend on Sequoia.
- Screen Recording (required) – enables CGWindow capture and multi-app automation.
- Accessibility (recommended) – improves window focus, menu interaction, and dialog control.
-
Screen Recording
- System Settings → Privacy & Security → Screen & System Audio Recording.
- Enable Terminal, your editor, or whatever shell runs
peekaboo. - Benefit: fast CGWindow enumeration and background captures.
-
Accessibility
- System Settings → Privacy & Security → Accessibility.
- Enable the same terminals/IDEs so Peekaboo can send clicks/keystrokes reliably.
-
Automation Check
peekaboo permissions check peekaboo permissions request screen-recording peekaboo permissions request accessibility
- Hybrid enumeration – with Screen Recording enabled, Peekaboo prefers the CGWindowList APIs and falls back to AX only when necessary.
- Built-in timeouts – window/menu operations have ~2 s default timeouts to avoid hangs; adjust via CLI options if needed.
- Parallel processing – when both permissions are enabled, window queries and captures stream concurrently.
If automation feels sluggish, confirm permissions, then re-run with --verbose to inspect timings.