can't paste image

Open 💬 4 comments Opened Mar 24, 2026 by dihaoAI
💡 Likely answer: A maintainer (github-actions[bot], contributor) responded on this thread — see the highlighted reply below.

What version of Codex CLI is running?

v0.116.0

What subscription do you have?

can't paste image in windows(PowerShell 7.6.0)

Which model were you using?

gpt-5.4

What platform is your computer?

Failed to paste image: no image on clipboard: The clipboard contents were not available in the requested format or the clipboard is empty.

What terminal emulator and version are you using (if applicable)?

PowerShell 7.6.0

What issue are you seeing?

Description:
I am experiencing an issue where I cannot paste images directly from the Windows clipboard into the Codex CLI. When I take a screenshot or copy an image to the clipboard and attempt to paste it into the prompt, the CLI fails to recognize the image data.

Error Message:
Failed to paste image: no image on clipboard: The clipboard contents were not available in the requested format

Environment Details:

Codex CLI version: v0.116.0

OS: Windows (x64)

Terminal Emulator: PowerShell 7.6.0

Steps to Reproduce:

Copy an image/screenshot to the Windows clipboard (e.g., using the Snipping Tool or Snip & Sketch).

Open PowerShell 7.6.0 and start the Codex CLI.

Attempt to paste the image directly into the chat prompt.

The error message mentioned above appears.

Expected Behavior:
The CLI should be able to read standard Windows clipboard image formats (such as CF_BITMAP or CF_DIB) and attach the image to the prompt, similar to its behavior on macOS.

Temporary Workaround:
Currently, I have to save the image as a local file and drag/drop the file path into the terminal to make it work.

What steps can reproduce the bug?

paste iamge

What is the expected behavior?

_No response_

Additional information

_No response_

View original on GitHub ↗

4 Comments

github-actions[bot] contributor · 5 months ago

Potential duplicates detected. Please review them and close your issue if it is a duplicate.

  • #15436

Powered by Codex Action

hqhq1025 · 4 months ago

For macOS users hitting the same issue: try clipaste — a background daemon that fixes clipboard format incompatibility between macOS screenshots and terminal apps.

brew install hqhq1025/clipaste/clipaste
brew services start clipaste

After installing, both Cmd+V and Ctrl+V paste screenshots into Codex CLI.

acetonitrile · 3 months ago

Hey just saying claude code TUI takes images without any additional setup unlike codex.

R0tmayer · 1 month ago

The same problem on:

  • mac m1 air (Tahoe 26.5.1 (25F80))
  • OpenAI Codex (v0.144.4)

Error when try to dictate prompt in codex cli using launched desktop codex app: "■ Failed to paste image: no image on clipboard: The clipboard contents were not available in the requested format or the clipboard is empty."

This help me as mentions above:

brew install hqhq1025/clipaste/clipaste
brew services start clipaste