Use Cursor or VS Code on a cloud dev box with Remote-SSH
Updated
Open a cloud Linux box in Cursor or VS Code over Remote-SSH, with no keys or hosts to set up, and keep Claude Code or Codex running after the editor closes.
On this page8
Prized adds your box to your SSH config, so Cursor and VS Code open it like any SSH host: the window stays on your laptop, and files, terminals and extensions run on the box.
1. Create a box
Sign up at prized.dev: the tour starts a box on $30 of free credit with no card, then shows one command that installs the CLI and signs this machine in (Quickstart). Then run setup in your project folder:
cd ~/code/myproject
prized setupIt copies this folder to ~/code/myproject on the box, once; --sync keeps it in sync instead. Already have a box? Skip the sign-up and run just the setup.
Setup writes a Host entry for the box to ~/.ssh/config.d/prized and an Include line at the top of ~/.ssh/config. There are no keys to copy, and the box has no inbound SSH port (Security).
If your SSH config already uses the box's name, setup warns and keeps that alias's existing destination. Rename your existing SSH alias at the file and line in the warning, then run prized doctor before connecting the editor. Meanwhile, prized ssh mango reaches the Prized box.
2. Check that ssh reaches it
ssh mango echo connectedUse your box's name for mango (prized box ls lists them). If it prints connected, the editor will connect too: Remote-SSH runs the same ssh. An older SSH alias without a saved box identity remembers it on the next successful online check, including from Remote-SSH (Troubleshooting).
3. Connect the editor
- Cursor: open the Command Palette (Cmd-Shift-P, or Ctrl-Shift-P), run Remote-SSH: Connect to Host, and pick
mango. If the command is missing, install the Remote - SSH extension from Cursor's Extensions view. - VS Code: install Microsoft's Remote - SSH extension, then run the same command.
- Asked for the platform: pick Linux.
Then File > Open Folder and open ~/code/myproject. The editor's terminal, search and extensions now run on the box.
4. Keep agents running after the editor closes
The editor's terminal ends with its window, or when the laptop sleeps. For an agent that keeps working, start tmux in that terminal:
tmux new -A -s claudeRun claude (or codex) inside it, then close the editor or the laptop. The same command reattaches, as does prized ssh mango -s claude from any terminal (Sessions).
If the box is asleep
On macOS and Windows, Developer: Reload Window wakes a box that paused itself after sitting idle, once it has slept 10 minutes (longer if the last such wake went unused; Auto-pause). The Remote-SSH log says waking mango; if the editor gives up before the box is up, Retry connects. A box you paused stays paused, as does any box when you connect from Linux or WSL, and the log says why. After about 50 days without restarting Windows, automatic wakes stop until you restart it. Wake it, then reload:
prized box resume mango --waitprized ssh mango wakes it too. On the free credit, a box pauses after 2 hours idle, but never in its first 24 hours; on a plan, only if you set auto-pause (Auto-pause).
Sync or Remote-SSH
Remote-SSH runs the editor's tools on the box, which must be awake. Sync keeps the folder on your laptop for any local editor, offline too. Both work on the same project at once; when both sides change a file, the box's copy wins by default (Conflicts).
Troubleshooting
| Symptom | What to do |
|---|---|
Could not resolve hostname mango | The Include line is missing from ~/.ssh/config: prized doctor adds it (Troubleshooting). |
SSH alias "mango" is already defined | Rename your existing SSH alias at the reported file and line, then run prized doctor. Until then, use prized ssh mango to reach the Prized box; plain SSH keeps the existing destination. |
cannot disable the existing Prized SSH alias | Resolve the existing name conflict before using plain SSH or the editor; prized ssh mango still works (Troubleshooting). |
mango is paused because your free credit ran out | Nothing was deleted. Add $10 of credit or pick a plan at the link it prints to start the box again (Running out). |
"mango" is not the box this machine knew by that name | The box was recreated, or another box took its name: prized box rebind mango. |