Comment by gempir
4 days ago
Why not use a browser?
OpenCode has a webUI, you can simply host that on your machine at home and VPN to it.
https://opencode.ai/docs/server/ (sadly no screenshots, but its a pretty good GUI, looks like their desktop app)
You need tmux to be able to resume the same session from anywhere, mosh-server to make ssh resilient to sketchy mobile connections, and blink shell https://blink.sh/ to have a high quality iOS shell with a mosh and ssh client built right in to resume at any time.
Far more resilient and performant than a web client.
Well the beauty is the logic lives on the server. The client is just a client.
If it disconnects you just reload the page. It can work just fine in the background because it’s not running on your phone.
Just like you can refresh the ChatGPT website, but OpenCode lives on your pc at home, not OpenAI servers.
yes but I've never seen a terminal interface embedded in a browser that is as good as a native terminal app interface, and blink shell has been well worth the upfront cost to me (way better than Termius, which was suggested in the writeup)
3 replies →
> and blink shell https://blink.sh/ to have a high quality iOS shell with a mosh and ssh client built right in to resume at any time
I really like Termius, have you tried it? I think I tested out Blink when I was trying various SSH/shell apps and chose Termius over it, but it’s been so long now that I completely forget why.
EDIT: does Blink give you a local shell as well like vs only SSH/mosh?
Yes, Blink gives you a local shell with some tools (not extendable), including Vim. It is even possible to mount a remote repository (we call it a Bookmark), and edit locally.
Give it another chance if you want to, I’m always happy to help.
1 reply →
tried tmux but realized claude/gemini/codex's --resume works great and have since started using a single chat for all small work projects
From that page:
> The opencode serve command runs a headless HTTP server that exposes an OpenAPI endpoint…
Unless I missed it, there’s no mention of a web UI?
The docs are very behind, there is indeed a full blown webui and with opencode serve you can access it
`opencode web` runs the web ui. It's very good.