
Frame device screenshots and screen recordings with Apple product bezels from the command line. Auto-detects devices, supports colors, merging, and batch processing. Based on the Apple Frames shortcut by me for MacStories.net, not affiliated with Apple.
Read the changelog for release details.
Installation
Requirements
- Python 3.9+
- Pillow (Python imaging library)
- ffmpeg 5.1+ and ffprobe 5.1+ for video framing (
frames setup checks this and can install ffmpeg with Homebrew on macOS)
Option A: Clone the repo (recommended)
git clone https://github.com/viticci/frames-cli.git
cd frames-cli
pip3 install Pillow
Then symlink the script into a directory that's already in your PATH:
# Check which bin directory is in your PATH (use the first one that exists)
# Common locations: ~/.local/bin, ~/bin, /usr/local/bin
# Create the directory if needed, then symlink
mkdir -p ~/.local/bin
ln -s "$(pwd)/frames" ~/.local/bin/frames
If ~/.local/bin isn't in your PATH yet, add it to ~/.zshrc (or ~/.bashrc):
export PATH="$HOME/.local/bin:$PATH"
Then restart your terminal or run source ~/.zshrc.
Verify it works:
frames --version
Option B: Direct download
pip3 install Pillow
mkdir -p ~/.local/bin
curl -o ~/.local/bin/frames https://raw.githubusercontent.com/viticci/frames-cli/main/frames
chmod +x ~/.local/bin/frames
If ~/.local/bin isn't in your PATH yet, add it to ~/.zshrc (or ~/.bashrc):
export PATH="$HOME/.local/bin:$PATH"
Then restart your terminal or run source ~/.zshrc.
Option C: Install as a Python tool
With Git and uv or pipx installed, run one of these:
uv tool install "git+https://github.com/viticci/frames-cli.git"
pipx install "git+https://github.com/viticci/frames-cli.git"
Both install Pillow automatically, keep Frames in its own environment, and put frames on your PATH. Update later with uv tool upgrade frames-cli or pipx upgrade frames-cli.
Setup
The CLI offers to download Apple Frames 4 assets when a command needs them and you run it interactively. Setup also checks video requirements and, on macOS, can install ffmpeg for you with Homebrew if it is missing. You can also set up manually:
# Guided download (interactive — downloads ~55 MB from cdn.macstories.net)
frames setup
# Or point to an existing assets folder
frames setup /path/to/Frames
The guided setup downloads the asset pack, extracts it, and saves the path to ~/.config/frames/config.json. If assets get corrupted or you need a fresh copy, run frames setup again to re-download.
You can also set the FRAMES_ASSETS environment variable instead of using the config file.
iPhone 18 Pro and 18 Pro Max
Frames 1.5.0 or later frames iPhone 18 Pro and 18 Pro Max screenshots and recordings with Apple's official bezels in Burgundy, Glacier, Silver, and Black. They share screen sizes with the 17 Pro models, so they are now the default for these inputs:
| Input width × height | Automatic frame |
|---|
| 1206 × 2622 | iPhone 18 Pro Portrait |
| 2622 × 1206 | iPhone 18 Pro Landscape |
| 1320 × 2868 | iPhone 18 Pro Max Portrait |
| 2868 × 1320 | iPhone 18 Pro Max Landscape |
The artwork ships in the standard asset pack, along with iPhone Duo. After updating the CLI, run frames setup once to download it; until then, frames doctor notes that your pack predates these devices, and these sizes keep using the 17 Pro frames. The 17 Pro frames remain available with --device:
frames -d "iPhone 17 Pro Portrait" screenshot.png
frames -d "iPhone 17 Pro Max Landscape" -c "Deep Blue" screenshot.png

MacBook Pro with PROLED XDR Display
Frames frames MacBook Pro with PROLED XDR Display screenshots with Apple's official bezels in Silver and Space Black:
| Input width × height | Automatic frame |
|---|
| 3024 × 1986 | MacBook Pro PROLED 14 |
| 3472 × 2266 | MacBook Pro PROLED 16 |
| 3822 × 2478 | MacBook Pro PROLED 16 (verified CleanShot capture, Default setting) |
| 4128 × 2694 | MacBook Pro PROLED 16 (More Space) |
| 2000 × 1297 | MacBook Pro PROLED 16 (downsampled copy of that capture) |
3024 × 1986 and 3472 × 2266 are the displays' native resolutions. Frames 1.7.1 with asset pack 4.2.1 also recognizes the exact additional capture sizes above and fits them to the native opening. The Dynamic Island is drawn by the frame, so leave it out of your screenshot. 3024 × 1964 screenshots still use the M5 MacBook Pro 14 frame.
frames -c "Space Black" proled.png
Apple HomeView