[BUG] Can't paste image from clipboard on Linux (Ubuntu)
Open 💬 42 comments Opened Sep 28, 2025 by danielrosehill
Preflight Checklist
- [x] I have searched existing issues and this hasn't been reported yet
- [x] This is a single bug report (please file separate reports for different bugs)
- [x] I am using the latest version of Claude Code
What's Wrong?
Using Ubuntu Linux, I'm unable to paste an image from my clipboard into the CLI.
System: Ubuntu 25.04 + KDE (Wayland).
Verified that the image is on the clipboard by pasting into GIMP and with:
wl-paste --list-types
application/x-qt-image
image/png
image/avif
However, after pasting, Claude Code flashes:
<img width="776" height="179" alt="Image" src="https://github.com/user-attachments/assets/3b803f1c-ff37-488f-80e1-b62aaf667382" />
What Should Happen?
Image should paste into the CLI (FYI, using Konsole)
Error Messages/Logs
N/A
Steps to Reproduce
Use environment as above.
Install claude with npm, upgrade to lastest version
Copy an image onto the clipboard
Paste into the CLI
Claude Model
None
Is this a regression?
Yes, this worked in a previous version
Last Working Version
_No response_
Claude Code Version
1.0.128 (Claude Code)
Platform
Anthropic API
Operating System
Ubuntu/Debian Linux
Terminal/Shell
Other
Additional Information
Shell = konsole
42 Comments
Found 2 possible duplicate issues:
This issue will be automatically closed as a duplicate in 3 days.
🤖 Generated with Claude Code
This was working for me until this latest update. Ubuntu
can confirm the issue System: Ubuntu 25.04 + KDE (Wayland).
can confirm same issue on Arch 6.16.10
I have same issue with Sway on NixOS.
wl-pasteshows the contents properly but claude code (v2.0.1) cannot find image from clipboard.Same issue on Arch Linux, Wayland (Hyprland) and the Kitty Terminal. I can paste images when running Claude Code inside VScode.
Same here on up-to-date Arch linux, KDE plasma using wayland and konsole terminal emulator. Fairly basic setup.
Same using Fedora 42 KDE, Konsole.
Gentoo -> Wayland -> Hyprland with Alacritty. Same issue.
wl-pasteshows things are correct, the same as Jaakkonen above.CONGRATULATIONS : i successfully resolved the issue. basically using ubuntu in wayland makes the image paste by CTRL+V work in claude code while in X11 does not work.
i am using this and it worked for me https://gist.github.com/chmouel/d2dd4ebea0782ce61d93e1d22a9995cf on wayland/kitty
i've got a workaround where a different keybinding that screenshots and copies the path to clipboard and then claude reads from specified path
Same here facing this issue , im on ubuntu with x11 after the latest update
Any updates? I use copyq, cannot paste image with ctrl+v.
For Ubuntu users who have issues pasting images into Claude Code from the clipboard:
In version 2.0.52, this was already addressed:
Fixed image pasting not working on Linux systems running Wayland (now falls back to wl-paste when xclip is unavailable)However, if image pasting still does not work for you, simply installing xclip usually fixes the issue:
sudo apt install xclipThis fixed the issue for me on Manjaro, thanks!
this worked on ubuntu on x11 aswell, FINALLY!
I'm using Claude 2.0.75 on KDE Neon 6.2, X11. Even with xclip, pasting images still doesn't work for me in Konsole :(
Have you tried with wl-paste maybe?
wl-paste is for wayland, no? Not X11....?
@sinnick this worked for me on Ubuntu. Thanks!
That was my hint actually 🥇
@lizozom are you using X11 or Wayland? It's still broken for me on X11, even with that installed
what terminal are you using? for me it works using ghostty on Ubuntu 24.04
Konsole (mentioned above - same as the OP)
this worked on Ubuntu 24.04.3 LTS
Working fix for Ubuntu users
I am on Ubuntu 24.04.3 LTS, and I was also unable to paste screenshots into Claude Code. The terminal kept saying no image found, even though the image was in my clipboard.
Running the following command fixed the issue for me:
After installing xclip, I can paste screenshots again with Ctrl + V without saving or dragging files.
So if you are on Linux and paste is not working, try installing xclip first. It solves the problem instantly on my machine.
sudo apt install xclipThis works for me (Ubuntu 24.04, X11)If you're using
x11thenxclipis needed and if you're onwaylandthenwl-clipboardwould help. Here's a quick one-linerdoesn't work for me on x11 even with xclip installed.
for me Ctrl + Shift + v did the trick, instead of Ctrl + v only
At last - confirmed, this was the solve. ClaudeCode must be intercepting the key commands in a weird way tho, because Konsole doesn't have Ctrl+Shift+V mapped to anything (only Ctrl+V is mapped to paste):
<img width="459" height="256" alt="Image" src="https://github.com/user-attachments/assets/d36a0be1-6381-409f-a6bc-54184b4d24e0" />
Would be nice if they'd fix this given how many different issues there are here about not being able to paste images.
can confirm it still happens on ubuntu
For wayland wl-clipboard was the answer. Now I can paste images again in konsole. Thanks.
work on Ubuntu 24.04.4 LTS
same issue, debian testing, GNOME 50, ddterm
Worked for me, thank you!
If you're SSH'd from macOS into Linux: clipaste v2.1.0 bridges your local clipboard to the remote server.
After setup, Ctrl+V in remote Claude Code fetches the screenshot through an SSH tunnel. No X11 or display server needed.
Worked for me on Pop!_OS 22.04
Thanks :)
Cheers jod-alef!
I installed wl-clipboard and it works on Ubuntu 24. Recently, upgrade to Ubuntu 26, it stops working.
EDIT: don't know how ubuntu (or claude code) fixed itself later. I only lock the screen and go for lunch, and it works again now.
The problem is not the fact that CC requires xclip; the problem is that the error message is wrong. It should be "xclip is required to paste images. Please install it."