qrcode or generic "hook" in web mode for fast mobile access/qr codes/ngrok #7545

Open
opened 2026-02-16 18:07:30 -05:00 by yindo · 3 comments
Owner

Originally created by @aappddeevv on GitHub (Jan 25, 2026).

Originally assigned to: @adamdotdevin on GitHub.

Feature hasn't been suggested before.

  • I have verified this feature I'm about to request hasn't been suggested before.

Describe the enhancement you want to request

When opening up opencode using web mode, it would be nice to have an option to have a qrcode printed so I can just scan it with my phone and then be on my way. Otherwise, I have to type it into my phone browser.

I know it advertises by mdns but a qrcode is an easy thing on mobile devices.

Originally created by @aappddeevv on GitHub (Jan 25, 2026). Originally assigned to: @adamdotdevin on GitHub. ### Feature hasn't been suggested before. - [x] I have verified this feature I'm about to request hasn't been suggested before. ### Describe the enhancement you want to request When opening up opencode using web mode, it would be nice to have an option to have a qrcode printed so I can just scan it with my phone and then be on my way. Otherwise, I have to type it into my phone browser. I know it advertises by mdns but a qrcode is an easy thing on mobile devices.
yindo added the discussionweb labels 2026-02-16 18:07:30 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Jan 25, 2026):

This issue might be a duplicate of existing issues. Please check:

  • #6536: [FEATURE]: Mobile App - Proposes a dedicated mobile app for easier mobile access
  • #10288: Feature Request: Mobile version of OpenCode (Android/iOS/Web UI) - Requests mobile apps or improved Web UI for mobile access
  • #5126: [FEATURE]: Mobile-friendly web UI - Directly requests improving the Web UI for mobile phones
  • #9099: [FEATURE]: Export actual server URL as environment variable - Related to discovering and sharing the server URL programmatically

Feel free to ignore if none of these address your specific case.

@github-actions[bot] commented on GitHub (Jan 25, 2026): This issue might be a duplicate of existing issues. Please check: - #6536: [FEATURE]: Mobile App - Proposes a dedicated mobile app for easier mobile access - #10288: Feature Request: Mobile version of OpenCode (Android/iOS/Web UI) - Requests mobile apps or improved Web UI for mobile access - #5126: [FEATURE]: Mobile-friendly web UI - Directly requests improving the Web UI for mobile phones - #9099: [FEATURE]: Export actual server URL as environment variable - Related to discovering and sharing the server URL programmatically Feel free to ignore if none of these address your specific case.
Author
Owner

@aappddeevv commented on GitHub (Jan 25, 2026):

This issue is not covered by the other issue listed as potential duplicates.

While I did vibe code a bash script to do a qrcode generation by piping the output and such, its alot of scripting to catch corner cases (e.g. if the address is 0.0.0.0 does this even makes sense or should it try to bit smarter). It would be simpler as an option. If there no easy external qr generator libraries available and you don't want a dependency on it, a generic thing that simply execs out a program, with stdout/stderr appropriately set, and the address written as the first line to the exec program's output/arg, right after the web server starts would work. The generic program could be specified from an env shell or another CLI option or something like that to keep this a generic capability. I don't have an mdns scanner app on my phone and I suspect most people don't.

I would prefer a generic capability actually so I can spin up both a qr code and ngrok all without a bunch more scripting or wrappers.

@aappddeevv commented on GitHub (Jan 25, 2026): This issue is not covered by the other issue listed as potential duplicates. While I did vibe code a bash script to do a qrcode generation by piping the output and such, its alot of scripting to catch corner cases (e.g. if the address is 0.0.0.0 does this even makes sense or should it try to bit smarter). It would be simpler as an option. If there no easy external qr generator libraries available and you don't want a dependency on it, a generic thing that simply execs out a program, with stdout/stderr appropriately set, and the address written as the first line to the exec program's output/arg, right after the web server starts would work. The generic program could be specified from an env shell or another CLI option or something like that to keep this a generic capability. I don't have an mdns scanner app on my phone and I suspect most people don't. I would prefer a generic capability actually so I can spin up both a qr code and ngrok all without a bunch more scripting or wrappers.
Author
Owner

@aappddeevv commented on GitHub (Jan 25, 2026):

The other thing that would be very useful is to also allow the /share command to take a "web" argument that then spins up the web server in the background. Instead of sync'ing state to your servers which is a non-starter for alot of people, it could start up a web server that allows multiple people to join that "session" in the fullest sense. And by having the generic hook mechanism above, you could do alot of cool things to get others invite into your session without the security problems.

@aappddeevv commented on GitHub (Jan 25, 2026): The other thing that would be very useful is to also allow the /share command to take a "web" argument that then spins up the web server in the background. Instead of sync'ing state to your servers which is a non-starter for alot of people, it could start up a web server that allows multiple people to join that "session" in the fullest sense. And by having the generic hook mechanism above, you could do alot of cool things to get others invite into your session without the security problems.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#7545