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
Not sure how possible it is, but I really enjoy using excalidraw when working with opencode. I like to copy the stuff as png and then paste it in LLMs to use. But opencode only support attachment via drag and drop, wonder is it possible to implement paste to add image
Correct me if I'm wrong, but you can paste using Control (not Command) + V.
I use that all the time both in opencode and Claude Code.
Check the keyboard shortcuts with /help.
For example, I screenshot part of the screen with Control + Shift + Command + 4, and then paste in using Control + V.
This is how it appears in the opencode.
Reacted by Felipe Orlando, bowber, Minh Nguyen, Andy Aderson, Sourabh Kushwah, Aryeh Katz, CX330, Alexandre Amado de Castro, Youssef Elshahawy, Connor Adams and 25 more
Reacted by Gabriel, Aryeh Katz, Alexandre Amado de Castro, rfqma, CX330, Nderim, nkosi23 and Dinujaya Sandaruwan
@rekram1-node I'm gonna make a new issue since this thread seems faily mac specific. I'm also curious if this is a wezterm issue, however since wezterm is listed as being one of multiple options which are necessary to get opencode run properly, i think it's relevant
I’m having the same issue when pasting images into the terminal, but I noticed it only happens in Windows Terminal. When I switched to Git Bash, it worked normally.
@eduardozf and seems like opencode opens way much faster on Git Bash than in Windows Terminal, nice catch
Problem:
Paste (Ctrl+V) does not work in OpenCode CLI when running in Kitty terminal. This works fine in VSCode terminal but fails in Kitty. The issue is that Kitty taposs paste_from_clipboard action does not properly trigger OpenCode internal paste handler.
Solution that works:
In ~/.config/kitty/kitty.conf, add:
map ctrl+v paste_from_clipboard
map super+v send_text all \x16
Ctrl+V = text paste (standard Kitty clipboard)
Super+V (Windows key + V) = sends raw Ctrl+V character, which OpenCode interprets as paste
Why this works:
paste_from_clipboard uses Kitty clipboard API, which OpenCode does not handle properly
send_text all \x16 sends the actual Ctrl+V (ASCII 0x16) character to the terminal, which OpenCode catches internally as paste command
The Super (Windows) key is used to avoid conflict with normal Ctrl+V
I am on MacOS with the standard Z shell.
For me it actually works quite reliable but I would like to turn it off! I handle large satellite data and I only want to paste the path to the image in the chat but it automatically attaches the image. That is super annoying I can't find a way to turn it off. Is there a way to paste path as text ?
Cross-linking a related gap: image paste/drag-drop for the main prompt is tracked here, but the question tool UI (MCQ modal shown when the agent uses question) still has no way to attach screenshots while answering.
Filed separately as a scoped feature request so it doesn't get lost under general prompt attach work. Happy to consolidate if maintainers prefer a single umbrella issue.
Activity
almirsarajcic commentedon Jul 12, 2025
Correct me if I'm wrong, but you can paste using Control (not Command) + V.
I use that all the time both in opencode and Claude Code.
Check the keyboard shortcuts with /help.
For example, I screenshot part of the screen with Control + Shift + Command + 4, and then paste in using Control + V.

This is how it appears in the opencode.
Jawkx commentedon Jul 12, 2025
@almirsarajcic Owh ya it works with CTRL+V.
But IMO should work for CMD + V for Macos. But feel free to close this issue if it's redundant
RomanKornev commentedon Jul 12, 2025
I was also confused until I tried Ctrl+V instead of Cmd+V. It just doesn't feel intuitive enough.
ggaabe commentedon Jul 30, 2025
this seems to work with CMD V?
woerndl commentedon Aug 31, 2025
The documentation was a bit confusing (to me at least) in this regard, it states:
For me, copy‑and‑paste attaches the image as a
[Image #1]placeholder, whereas dragging and dropping only inserts the path.amanhigh commentedon Sep 5, 2025
I tried in Arch Linux and here too. Ctrl + V Normal paste doesn't work.
For me Windows (Meta) Key + V Pasted Image. Text is pasted via Ctrl + V hence this is not intuitive
jawadqur commentedon Sep 17, 2025
This would be a sick feature to have in opencode!
rekram1-node commentedon Sep 17, 2025
what os and terminal are you @jawadqur pasting images works for me
felipeorlando commentedon Sep 18, 2025
cmd+v would be better ➕ 1️⃣
sai-sy commentedon Sep 29, 2025
There seems to be some weirdness here with wsl2 and wezterm on recognizing there's something to paste. Not sure where to start on looking for a fix
rekram1-node commentedon Sep 29, 2025
@sai-sy what happens does it just paste the path?
sai-sy commentedon Sep 29, 2025
rekram1-node commentedon Sep 29, 2025
ooo @itsrainingmani note: windows image pasting doesn’t seem to work
sai-sy commentedon Sep 30, 2025
@rekram1-node I'm gonna make a new issue since this thread seems faily mac specific. I'm also curious if this is a wezterm issue, however since wezterm is listed as being one of multiple options which are necessary to get opencode run properly, i think it's relevant
#2878
18 remaining items
ezhupa99 commentedon Feb 11, 2026
@eduardozf and seems like opencode opens way much faster on Git Bash than in Windows Terminal, nice catch
ezhupa99 commentedon Mar 5, 2026
if you are on windows and using Terminal App below is the solution:
#1429 (comment)
morisono commentedon Mar 27, 2026
I notice that pasting refused only when CRLF included in image path (on WSL Ubuntu 24.04).
amanhigh commentedon Apr 4, 2026
Environment:
Problem:
Paste (Ctrl+V) does not work in OpenCode CLI when running in Kitty terminal. This works fine in VSCode terminal but fails in Kitty. The issue is that Kitty taposs paste_from_clipboard action does not properly trigger OpenCode internal paste handler.
Solution that works:
In ~/.config/kitty/kitty.conf, add:
map ctrl+v paste_from_clipboard
map super+v send_text all \x16
Why this works:
Add a skills launcher modal (anomalyco#906)
Revert "Add a skills launcher modal (anomalyco#906)"
markste-in commentedon May 27, 2026
I am on MacOS with the standard Z shell.
For me it actually works quite reliable but I would like to turn it off! I handle large satellite data and I only want to paste the path to the image in the chat but it automatically attaches the image. That is super annoying I can't find a way to turn it off. Is there a way to paste path as text ?
richjdsmith commentedon Jun 9, 2026
There seems to have been a regression of this since the most recent update. v1.16.2
Prior to 1.16.2, I was able to paste images on Windows Terminal. Now, I am unable to.
dl-alexandre commentedon Jun 10, 2026
Cross-linking a related gap: image paste/drag-drop for the main prompt is tracked here, but the
questiontool UI (MCQ modal shown when the agent usesquestion) still has no way to attach screenshots while answering.Filed separately as a scoped feature request so it doesn't get lost under general prompt attach work. Happy to consolidate if maintainers prefer a single umbrella issue.
Related: #31383, #6330
dl-alexandre commentedon Jun 10, 2026
Update: filed #31791 for the question-tool-specific case.
github-actions commentedon Aug 10, 2026
To stay organized issues are automatically closed after 60 days of no activity. If the issue is still relevant please open a new one.