Paste image from cli
Open 💬 4 comments Opened Apr 7, 2026 by joseananio
💡 Likely answer: A maintainer (github-actions[bot], contributor)
responded on this thread — see the highlighted reply below.
What version of Codex CLI is running?
codex-cli 0.118.0
What subscription do you have?
API
Which model were you using?
gpt-5.4 medium
What platform is your computer?
macOS 26.4 Beta (25E5233c)
What terminal emulator and version are you using (if applicable)?
alacritty tmux
What issue are you seeing?
I'm unable to paste an image from clipboard into the chat. I assume this is an unsupported feature
What steps can reproduce the bug?
- Screenshot an image in MacOs with destination Clipboard
- Visit the codex chat and paste image
What is the expected behavior?
Image should be attached to the next message sent to the LLM
Additional information
_No response_
4 Comments
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action
clipaste fixes this. Tiny background daemon that normalizes the screenshot clipboard — adds a file URL so Cmd+V works, and adds the PNGf type so Ctrl+V works.
Also supports SSH remote paste via
clipaste ssh-setup user@host.Also seeing this on macOS.
When I copy a screenshot/image to the clipboard and paste it into Codex, the image does not attach. The same screenshot paste flow works in Claude Code and OpenCode.
This seems to be the same clipboard image-paste problem, just reproduced on macOS as well.
I have a similar but slightly different issue - the image gets recognized in the codex chat as
[Image #1]but it's the wrong image - instead of the file I copied, it's s generic system image icon like this:<img width="1424" height="1738" alt="Image" src="https://github.com/user-attachments/assets/be1dc263-392c-4a24-ad61-539593801912" />
iTerm2 and Terminal.app
codex-cli 0.142.5MacOS Tahoe 26.5.1Thread id
019f2969-993a-7c02-ae57-c7af40f5314c