Use opencode Desktop with a Prized box
Updated
Add a Prized box as an SSH server in opencode Desktop, so its sessions run on a cloud Linux machine that keeps working while your laptop sleeps: what Desktop installs there, provider sign-ins on the box, and reconnecting.
On this page5
opencode Desktop can run its sessions on a Linux machine you reach over SSH. Add your box as that server, and the agent builds and tests on the box instead of your laptop.
1. Get a box in your SSH config
Sign up and run the command the tour shows: it installs the Prized CLI and adds your box to ~/.ssh/config (Quickstart). Use your box's name in place of mango, and check that plain ssh reaches it:
ssh mango echo ok
# ok2. Keep the box awake
An opencode server waiting for you counts as idle, so on the free credit the box pauses after 2 hours idle (never in its first 24 hours), and Desktop can't wake it. Switch auto-pause off for this box, or set a longer window such as 12h (Auto-pause). On the free credit, off holds the box up through 12 idle hours at most; a plan or a top-up lifts that limit:
prized box auto-pause mango off3. Add the box in opencode Desktop
Open the command palette, choose Add SSH server, enter mango as the host, and connect; Desktop runs your own ssh, so the box's entry in your SSH config does the rest. The first connect installs an opencode server matching your Desktop's version in ~/.opencode/desktop-ssh on the box and starts it, so there is nothing to install there first. When Desktop updates, it offers Update and reconnect to bring the box's server along.
4. Sign in to a provider on the box
The server on the box keeps its own provider sign-ins, apart from your laptop's: connect a model provider for this server the first time, as you would locally. opencode's free models need no sign-in.
Then open a project folder on the box, such as ~/code/myproject.
If the connection drops
Desktop shows the SSH connection as inactive and keeps your remote session; choose Reconnect. If the box paused, prized box resume mango --wait wakes it first. A Medium or larger restarts on waking, so a turn that was running stops (Pause and resume).
To run opencode in a terminal on the box instead, with no app open, see Run OpenCode in the cloud.