GeezerVison is showing github.com — Feature request: Paste to attach image · Issue #906 · anomalyco/opencode
Feature request: Paste to attach image #906DescriptionNot 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
 Reacted by Ben Vinegar, Minh Nguyen, Allen N., Brandon Bayer, Aryeh Katz, Ivan Charapanau, leolulu, Miguel Bastos, Alex Styl, cbingb666 and 12 more Activityalmirsarajcic commented on 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.
 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 Reacted by Vuong Jawkx commented on 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 Reacted by Felipe Orlando, Sngmin, Allen N., CX330, Youssef Elshahawy, Ali Kehel, Timon de Groot, Atticus White, pry, jdhao and 10 more RomanKornev commented on Jul 12, 2025 I was also confused until I tried Ctrl+V instead of Cmd+V. It just doesn't feel intuitive enough. ggaabe commented on Jul 30, 2025 this seems to work with CMD V? woerndl commented on Aug 31, 2025 The documentation was a bit confusing (to me at least) in this regard, it states:
Drag and drop images into the terminal to add them to the prompt.
For me, copy‑and‑paste attaches the image as a [Image #1] placeholder, whereas dragging and dropping only inserts the path. Reacted by Almir Sarajčić, Daniel Carvajal, Dan Brown, Youssef Elshahawy and bastotec amanhigh commented on 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 Reacted by Juliusz Ćwiąkalski and Michele Barbiero jawadqur commented on Sep 17, 2025 This would be a sick feature to have in opencode! rekram1-node commented on Sep 17, 2025 what os and terminal are you @jawadqur pasting images works for me felipeorlando commented on Sep 18, 2025 cmd+v would be better ➕ 1️⃣ Reacted by Shinonome Tera tanuki, CX330, Youssef Elshahawy, DAVID TB, Dan (Danilo) Rio (Ribeiro), Leonard Choo, noquioz, Seonu Jang and Glib Albovsky sai-sy commented on 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 commented on Sep 29, 2025 @sai-sy what happens does it just paste the path? sai-sy commented on Sep 29, 2025 does literally nothing
…
---
Thanks!
He/Him
Saihaan "Sai" Syed
rekram1-node commented on Sep 29, 2025 Reacted by paperplane123, leolulu, adore, Alp Sarıyer, seanmamasde, DanielC2021 and Jaroslaw Jaskulowski sai-sy commented on 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 Reacted by rupel190, Jamisson Pinho Lima and seanmamasde ezhupa99 commented on Feb 11, 2026
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 ezhupa99 commented on Mar 5, 2026 if you are on windows and using Terminal App below is the solution:
#1429 (comment) Reacted by Ferraz and Serge Baranov morisono commented on Mar 27, 2026 I notice that pasting refused only when CRLF included in image path (on WSL Ubuntu 24.04). amanhigh commented on Apr 4, 2026 Environment:
- Kitty: 0.46.2
- OpenCode CLI: 1.3.13
- OS: Arch Linux
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
Reacted by mugiwarix and Walter removed bugSomething isn't working opentuiThis relates to changes in v1.0, now that opencode uses opentui on May 3, 2026markste-in commented on 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 commented on 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 commented on Jun 10, 2026 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.
Related: #31383, #6330 dl-alexandre commented on Jun 10, 2026 Update: filed #31791 for the question-tool-specific case. github-actions commented on 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.
MetadataMetadataDevelopmentNo branches or pull requestsIssue actions
|