Guide

Add screenshots to Codex on a Mac.

Codex takes images in two places: the Codex app and the Codex CLI in your terminal. This guide covers what each offers on its own, then how to attach several screenshots you already took in one drag.

Last checked:

What Codex does on its own

Appshots in the Codex app

Appshots is the capture tool shared by the ChatGPT and Codex apps. You press both ⌘ keys at the same time, and it captures the frontmost window only. It needs the Screen Recording and Accessibility permissions in System Settings (OpenAI).

That is quick for “look at this window”. It does not cover part of a window, two windows side by side, or a state that is no longer on screen. For those, take ordinary macOS screenshots and attach the files.

Attach an image file to the Codex app

Screenshots taken with ⇧⌘3, ⇧⌘4 or ⇧⌘5 are saved to the desktop unless you have picked another folder under ⇧⌘5 › Options. While the floating thumbnail sits in the corner of the screen, the file is not saved yet (Apple Support).

Once the file exists, drag it from Finder onto the Codex window; we checked that the Codex app accepts dropped image files. OpenAI’s documentation says to hold Shift while dragging an image into the prompt box to include it as context (OpenAI). For one image this is fine. For four images on a cluttered desktop, you hunt for each file by its time stamp.

Codex CLI: paste an image or pass a file

OpenAI’s documentation gives two ways in the terminal: paste an image into the interactive composer, or pass files on the command line with codex -i screenshot.png. For several images, separate the paths with commas, --image a.png,b.png, or repeat --image (OpenAI). The page does not name a paste key; if pasting does nothing in your terminal, pass the file instead. The CLI cannot create a new appshot (OpenAI). The Claude Code guide covers the terminal in more detail.

Which way fits which job

Ways to get a screenshot into Codex on a Mac, as of 7 November 2026
WayWhereStarts fromPermissions
Appshots (both ⌘ keys)Codex appThe frontmost window, captured nowScreen Recording, Accessibility
Drag a file from FinderCodex appA saved screenshot you find yourselfNone; you pick the file
Paste, or codex -i / --imageCodex CLIAn image on the clipboard or a file pathNone
Shotmori shelfCodex appScreenshots macOS has already savedAccess to the folder you choose; no Screen Recording or Accessibility

From OpenAI (checked 7 November 2026) and Apple Support (checked 2 November 2026). Sources below.

With Shotmori

Shotmori does not take screenshots. It watches the folder macOS saves them to and puts each new one on the Screenshot shelf. You drag the ones Codex should see onto the Codex app, where they arrive as ordinary image files.

  1. Take your screenshots as usual. Capture each step with ⇧⌘4 or ⇧⌘5. Shotmori picks up each file once macOS saves it.
  2. Let the shelf come to you. With “Show the shelf when a screenshot arrives” on (the default), the shelf opens next to your pointer without taking focus, so Codex stays the front app. You can also open it with your shortcut or Show shelf in the menu bar.
  3. Pick the images. Click one, add more with ⌘, select a range with ⇧, or press ⌘A for the whole shelf. The keys 1 to 9 select a visible image by its number. Images that arrived since your last drop carry a New mark.
  4. Check before you send. Press Space to open Quick Look on the selection without leaving Codex. The arrow keys move through the images.
  5. Drag them onto the Codex message box. The drag preview shows how many files you are carrying. Codex receives copies; your originals stay in their folder.
  6. Write the prompt. Say what the images show and in what order. The shelf hides after an accepted drop. Hold ⌥ while dropping, or turn on Keep shelf in front, if you want it to stay open.

Clean up the image before Codex sees it

Terminal and settings screenshots often show an API key, a token or a customer email. Select the image and press E, or choose Edit… from Actions. Redact covers an area with an opaque black box; the hidden pixels are not in the output file. Crop trims the image to the part that matters. The result is a new copy and the original does not change. Add to shelf puts it next to the others for the drag.

A full-screen capture on a large display is often bigger than needed. Resize… makes a smaller copy (75 %, 50 %, 25 %, or 1920, 1280 or 800 pixels wide) and shows the estimated file size.

When the useful part is an error message or a stack trace, the text itself may serve Codex better. Copy text (⇧⌘C) reads the text from the screenshot on the shelf, on your Mac, and puts it on the clipboard for your prompt.

One shelf per task

If you run two Codex tasks at once, give each its own New shelf. You can have up to eight, switch with ⌘1…⌘8, and move images with Move to shelf. Open in separate window keeps one shelf in its own floating panel beside the Codex window; Put back returns it to the tabs.

If you use the Codex CLI

We have tested dragging from Shotmori into the Codex app, not into the Codex CLI. In the terminal, Show in Finder (⌘R) shows where the file is, and you can pass that path to Codex or use codex -i as described above.

What Shotmori does not do

Codex reads the file. Shotmori does not.

Shotmori has no AI features and does not send images to OpenAI or any other AI service. It hands files to the app you drop them on. It does not capture the screen or record video. Redaction is an opaque box, not blur. There are no arrows, text or highlights; use Markup in Preview for that. Text recognition works only on images on the shelf.

Questions

Which key pastes an image in the Codex CLI?

OpenAI’s documentation says to paste the image into the interactive composer but does not name a key. When pasting does not work, codex -i screenshot.png attaches the file (OpenAI).

Does Shotmori need Screen Recording permission?

No. It asks for access to the one folder you choose during setup, the folder macOS saves your screenshots to. It does not need Accessibility permission either.

Do my screenshots pass through a Shotmori server?

No. A drag is a local handoff between two apps on your Mac, and Shotmori has no server. What Codex does with the file is covered by OpenAI’s terms. See the privacy policy.

For Claude and ChatGPT as well, see sending screenshots to AI chats. Feature details: dragging and copying and crop, redact and resize.

Sources

  1. Appshots · OpenAI · checked 7 November 2026
  2. Image inputs · OpenAI Codex docs · checked 7 November 2026
  3. How to take a screenshot on your Mac · Apple Support · checked 2 November 2026

Coming to the Mac App Store and GitHub as free, open-source software (MIT). No purchase, no subscription, no account.