You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Image pasting in Windows to WSL in Terminal directly from clipboard #3939
Basically an image can be dragged and dropped to Windows Terminal with WSL session and it correctly works.
If i copy file in Windows Explorer and paste it into Windows Terminal with WSL all i get is path, maybe this would be useful, but the path is from windows and Codex usually doesn't like those paths as it claims it's can't get out of sandbox or claims it's not available
But I often do screenshots with ShareX and it has a copy feature, when doing CTRL+V it does nothing.
Copying "virtual image" from photos doesn't work either.
I can confirm here. just did the suggested update yesterday
now it says
_ OpenAI Codex (v0.46.0)
if you hit ? it now shows
/ for commands ctrl + j for newline
@ for file paths ctrl + v to paste images
esc esc to edit previous message ctrl + c to exit
ctrl + t to view transcript
ctrl + v to paste images
but when I do have an image in the clipboard, nothing gets pasted at all. whereas the text paste works great + image paste in chatgpt works great too.
typical scenario: I screenshot something that gets added to the clipbaord, and I hit CTRL+V pretty much anywhere, and i'd like to do it in codex cli whereas it says it can accept it with a CTRL+V
=> quite frustrating
context: windows 11, codex cli running in wsl as suggested in the official openai install documentation a couple weeks ago when I first installed it
@Waxime64
Microsoft Windows NT 10.0.26200.0 x64 (Windows 11 Pro)
with WSL2 Ubuntu 24.04.3 LTS (GNU/Linux 6.6.87.2-microsoft-standard-WSL2 x86_64)
Codex 0.71.0
Windows Terminal 1.23.12811.0
I took a screenshot using the Windows Snipping Tool (no autosave enabled in the settings) – it is now in the clipboard. I then tried to paste it into WSL2 Codex using CTRL + ALT + V:
That was the problem for me (this was missing) and should be included in the Codex WSL documentation (https://developers.openai.com/codex/windows/). Restart WSL. Then press CTRL + ALT + V.
Hey,
I find myself from time to time to paste an image snapshot from the clipboard. However, claude/codex in wsl cannot pickup the clipboard. so I made a small tool (lives in the sys tray) that will automatically save the image in a tmp folder and reutrn back the path to it which picks up wonderfully 😄
run the tool (access its menu via right click on the sys tray con)
snapshot image into clipboard
hit shift+ctrl+v (you can also select in the tool shift+alt+v) in claude
Activity
piyalitt commentedon Sep 20, 2025
I also have the same problems.
esdrasrenan commentedon Sep 25, 2025
i had the same problem
Kahitar commentedon Sep 28, 2025
Can confirm, same issue. Super annoying to always have to save screenshots and then manually tell codex about them.
adal-idl commentedon Oct 12, 2025
I can confirm here. just did the suggested update yesterday
now it says
if you hit ? it now shows
ctrl + v to paste images
but when I do have an image in the clipboard, nothing gets pasted at all. whereas the text paste works great + image paste in chatgpt works great too.
typical scenario: I screenshot something that gets added to the clipbaord, and I hit CTRL+V pretty much anywhere, and i'd like to do it in codex cli whereas it says it can accept it with a CTRL+V
=> quite frustrating
context: windows 11, codex cli running in wsl as suggested in the official openai install documentation a couple weeks ago when I first installed it
Waxime64 commentedon Oct 17, 2025
ctrl + v to paste images
not work on WSL on 0.46
krisalcordo commentedon Oct 19, 2025
Can confirm. Image pasting not working
bartlomiejborzucki commentedon Oct 20, 2025
0.47 still not working
Waxime64 commentedon Oct 30, 2025
Pull request: #5644
adal-idl commentedon Nov 1, 2025
just upgraded to codex-cli 0.53.0
still not working
unclejimao commentedon Nov 2, 2025
A temporary work around: https://github.com/unclejimao/WSL-Image-Clipboard-Helper/tree/performance-optimize
16 remaining items
wbdb commentedon Dec 11, 2025
@Waxime64 But CTRL+ALT+V doesn't work for me either when I have a screenshot in the clipboard :(
Waxime64 commentedon Dec 11, 2025
Can you take a screenshoot with codex-cli version and you windows version ?
And in code-cli, if you press ?, that write CTRL+ALT+V for paste image ?
wbdb commentedon Dec 12, 2025
@Waxime64
Microsoft Windows NT 10.0.26200.0 x64 (Windows 11 Pro)
with WSL2 Ubuntu 24.04.3 LTS (GNU/Linux 6.6.87.2-microsoft-standard-WSL2 x86_64)
Codex 0.71.0
Windows Terminal 1.23.12811.0
I took a screenshot using the Windows Snipping Tool (no autosave enabled in the settings) – it is now in the clipboard. I then tried to paste it into WSL2 Codex using CTRL + ALT + V:
TechWithTy commentedon Feb 14, 2026
Unable to paste clipboard, i think it worked intermittently
wbdb commentedon Feb 16, 2026
@TechWithTy
That was the problem for me (this was missing) and should be included in the Codex WSL documentation (https://developers.openai.com/codex/windows/). Restart WSL. Then press CTRL + ALT + V.
#11150 / #11145
FIX: WSL Paste image does not work (openai#6793)
shanytc commentedon Apr 29, 2026
Hey,
I find myself from time to time to paste an image snapshot from the clipboard. However, claude/codex in wsl cannot pickup the clipboard. so I made a small tool (lives in the sys tray) that will automatically save the image in a tmp folder and reutrn back the path to it which picks up wonderfully 😄
enjoy!
https://github.com/shanytc/claude_image_fixer
FIX: WSL Paste image does not work (#6793)
fix(tui): handle WSL clipboard image paths (openai#3990)
FIX: WSL Paste image does not work (openai#6793)
FIX: WSL Paste image does not work (#6793)