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
{{ message }}
Repository navigation
qrcode or generic "hook" in web mode for fast mobile access/qr codes/ngrok #10549
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.
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.
changed the title [-]qrcode in web mode for fast mobile access[/-][+]qrcode or generic "hook" in web mode for fast mobile access/qr codes/ngrok[/+]on 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.
Activity
github-actions commentedon Jan 25, 2026
This issue might be a duplicate of existing issues. Please check:
Feel free to ignore if none of these address your specific case.
aappddeevv commentedon 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.
[-]qrcode in web mode for fast mobile access[/-][+]qrcode or generic "hook" in web mode for fast mobile access/qr codes/ngrok[/+]aappddeevv commentedon 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.
github-actions commentedon Mar 27, 2026
To stay organized issues are automatically closed after 90 days of no activity. If the issue is still relevant please open a new one.