Sign in

Run T3 Code's agents remotely over SSH on a Prized box

Updated

Add a Prized box as a remote SSH environment in T3 Code, so its Claude Code and Codex threads run on a cloud Linux machine and keep going with your laptop closed: what T3 Code installs there, the agent CLIs it expects, its browser on Ubuntu 24.04, and worktrees.

On this page6

T3 Code runs Claude Code, Codex and other agents side by side. With a Prized box as an environment, its threads build and test on the box and keep going with the lid closed.

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 below.

2. Sign the agents in on the box

T3 Code drives the agent CLIs already on the remote machine, signed in there, and finds them through a login shell's PATH (T3 Code's remote access). Claude Code and Codex come preinstalled on the box; sign them in and add your git identity:

prized agents handoff claude codex --gh

For pushes and pull requests from T3 Code, let git use that GitHub sign-in too:

ssh mango gh auth setup-git

Then check that T3 Code will find both CLIs (one command -v each; the box's sh checks only the first name):

ssh mango 'sh -lc "command -v claude && command -v codex"'
# /home/you/.local/bin/claude
# /home/you/.local/bin/codex

3. Add the box in T3 Code

In the desktop app, open Settings › Environments, click Add environment, choose SSH, and enter mango, or pick it from the hosts T3 Code found in your SSH config. The first connect downloads T3 Code's server to ~/.t3/runtime on the box; it needs no Node there.

If Settings › Providers marks Codex Incompatible, open the warning beside it and click its update button: T3 Code updates the CLI on the box.

4. Open a project on the box

If your repo isn't on the box yet, run this in the repo on your computer. It clones your current branch from origin to ~/code/<folder> on the box; unpushed work stays behind (Sync):

prized setup . --clone --no-agents --no-start

In T3 Code, click Add project, pick the box's environment, then Local folder and a path such as ~/code/myproject. New threads in that project run on the box, and their worktrees go in ~/.t3/worktrees there unless Settings › Worktrees says otherwise.

Three T3 Code threads in a project on the box: one working, one done

The built-in browser

T3 Code's browser runs on the box, so localhost in it reaches the box's dev servers. On Ubuntu 24.04 it needs a one-time allowance for Chrome's sandbox: T3 Code's server prints the setup command, with its full path, when it needs it; run that on the box (boxes have passwordless sudo).

When the box sleeps

Closing the lid drops T3 Code's connection, not its server: the server keeps running on the box, and the app reconnects to it when it comes back. Removing the environment in T3 Code stops the server.

On the free credit the box pauses after 2 hours idle (Auto-pause). To keep it up while agents work (through 12 idle hours on the free credit, with no limit on a plan or after a top-up):

prized box auto-pause mango off

prized box resume mango --wait wakes a paused box. If it restarted instead of resuming (Pause and resume), T3 Code starts its server again on the next connect: projects and threads are kept, and a turn that was running has stopped.