A modern macOS screenshot CLI built on ScreenCaptureKit. Capture application windows from the terminal.
- macOS 14.0+
- Xcode Command Line Tools
swiftc -O -parse-as-library -o shotty main.swiftsudo cp shotty /usr/local/bin/shotty requires Screen Recording permission.
- Run
shotty list-apps(this triggers the permission prompt) - Open System Settings → Privacy & Security → Screen Recording
- Enable the terminal app you're using (Terminal, iTerm, Ghostty, etc.)
- Restart your terminal
shotty <command> [options]
Commands:
capture <app|pid> [output.png] Screenshot an app's window(s)
list List all capturable windows
list-apps List running applications
Options:
--all Capture all windows (not just first)
--json Output as JSON
--no-frame Exclude window frame/shadow
shotty capture Safari # screenshot.png
shotty capture Ghostty ~/Desktop/term.png # specific path
shotty capture 12345 out.png # by PID
shotty capture "VS Code" --all # all windows
shotty list-apps --json # JSON outputAdd shotty as a skill for AI-assisted screenshots.
mkdir -p ~/.claude/skills
cp SKILL.md ~/.claude/skills/screenshot.md