image paste in ssh/sftop
Open 💬 17 comments Opened Aug 6, 2025 by lsntkadev
hi folks,
im on mac. i run my code on a remote server and connect to it using ssh. i also develop on this remote server since my code needs lot of cpus to compile. i use claude code cli to help development on this remote server.
i want to paste images so that claude code cli can understand the context. remember claude code cli is still running remotely on a remote linux server and im connecting using ssh.
what workaround does exist to paste image right into the claude code cli terminal in vscode/webstorm?
thank you in advance
17 Comments
Found 3 possible duplicate issues:
If your issue is a duplicate, please close it and 👍 the existing issue instead.
<sub>This issue will be automatically closed as a duplicate in 3 days if there are no additional comments. To prevent auto-closure, please 👎 this comment.</sub>
🤖 Generated with Claude Code
any updates on this? please provide a way to support this
I would love this...
I NEED THIS!
One silly work around if you use VS Code on a remote server is to paste the image into a markdown file in your home directory. That will add the image there too on the remote server and then you can command click to get the image displayed in VSCode and then get the path and paste that into claude.
This issue has been inactive for 30 days. If the issue is still occurring, please comment to let us know. Otherwise, this issue will be automatically closed in 30 days for housekeeping purposes.
I really would love to have this feature
Bump!
I built an open-source tool to solve this: cc-clip
It creates a transparent bridge between your local Mac clipboard and the remote server via SSH tunnel. An xclip shim intercepts only Claude Code's clipboard calls and fetches image data from a local daemon — no changes to Claude Code needed.
Setup is two commands:
After that,
Ctrl+Vin remote Claude Code pastes images from your Mac as if it were local.I built a tool that solves this: cc-clip
It creates a transparent bridge between your local Mac clipboard and the remote server using an HTTP daemon + SSH RemoteForward + an xclip shim. No changes to Claude Code needed.
One command handles everything (deps, SSH config, daemon, remote deploy). After that, Ctrl+V in remote Claude Code pastes images from your local Mac.
Works on macOS → Linux (amd64/arm64). MIT licensed — feedback and bug reports welcome.
Still seeing this issue happening over a ssh'd terminal.
i ssh from my local windows to remote linux machine.
@ShunmeiCho this is an amazing tool, thanks for creating it!
clipaste now supports SSH remote paste (v2.1.0).
It runs an HTTP server locally that serves your latest screenshot. One-time setup:
This installs an xclip shim on the remote server and configures SSH
RemoteForward. After setup, Ctrl+V in remote Claude Code fetches the screenshot through the SSH tunnel.No extra tools needed on the server (just
curl). Works with any Linux server.You can try Cmux terminal (based on Ghostty) - it has this feature by default. But before, I used just a script which uploads the image from clipboard to remote server and copies the path of the image to clipboard, so I just paste it to claude code - i.e. Screenshot -> shortcut (cmd+shift+i) -> uploaded to the server -> path copied to clipboard (@~/uploads/clip-20260429-072938.png) -> paste to claude code. I use Raycast to execute the script
Try this util - https://github.com/samuellawrentz/clipssh
I really would love to have this feature
I have this same issue:
Clipboard Paste Issue (Claude Code over SSH)
Setup
Symptom
Ctrl+V stopped working for both text and images in Claude Code. Error: "No image found on the clipboard." Started failing around 2026-06-17.
Cmd+V works for text (Prompt handles it locally and injects as raw input).
What we know
allow-passthrough on— tmux is not obviously the culpritConfirmed (2026-06-17)
Tested without tmux — same failure. Tested with iTerm2 instead of Prompt — same failure. Neither tmux nor the SSH client is the culprit. This is a Claude Code regression: Ctrl+V is intercepted by Claude Code and attempts to read the clipboard on the remote machine (which has none over SSH). Previously Ctrl+V passed through to the terminal.
Workarounds