OpenCode runs as one server with many clients, so every device shares the same sessions, config and metrics. My problem: I ran opencode serve in a terminal window, and whenever I closed it or the machine slept, my phone lost the server.
Solo, Aaron Francis’s desktop app for managing dev processes, fixed that. It’s free for up to three projects, and this video isn’t sponsored.
Summary
- Solo runs two processes for me:
opencode servewith mDNS on a fixed port, and a Caddy reverse proxy. - Both start automatically at login and restart after a crash, and Solo notifies me when a process exits or needs input.
- Caddy maps https://opencode.local to the server, so any device on my network reaches the same OpenCode instance.
- Solo’s restart-when-changed option should be able to restart the server whenever your OpenCode config changes, though a restart stops active agents.
- To restart from inside OpenCode, I had OpenCode build a stateless CLI around Solo’s MCP server, then added a /restart command that calls it.
How to apply it
- Run OpenCode as one long-lived server and point every client at it.
- Add the server and a reverse proxy to Solo with auto-start and auto-restart turned on.
- Give it a stable local HTTPS address with Caddy so phones and other machines connect easily.
- Wrap Solo’s MCP in a small CLI, like my gist, and expose it as a custom slash command for one-step restarts.
Get the next test the day it’s out.