Sign in

Agents

Start a coding agent on your box, close the laptop, and let it work; it is an ordinary process on a machine you already pay for, so nothing it does is metered.

On this page12

Start an agent

prized agents run claude

This starts Claude Code in a detached tmux session named claude, in your project, and prints the reattach command; closing the lid changes nothing. A sleeping or paused box wakes first. If its name now belongs to another box, the command stops before waking it; use prized box rebind <box> only if you mean to connect to that replacement (Troubleshooting).

Claude Code that is not signed in on the box opens at its own sign-in, so run checks first and, at a terminal, offers to copy this machine's Claude Code sign-in, settings and MCP servers there, as prized setup does; the card lists what goes, and says that settings and MCP server definitions may contain API keys and that anyone else who can connect to the box can use the sign-in there (-y, -q and --json never copy; from a script, prized agents handoff claude does). Otherwise it says what the sign-in takes before Claude Code opens: pick a theme, then your Claude plan or an Anthropic Console account, press c to copy the sign-in link, open it, and paste the code it shows back; with --attach it waits for Enter first. With --json, the result's signed_in says which it was, and waiting_for is sign-in when Claude Code waits there.

If Codex isn't signed in on the box, it opens at its sign-in screen, where Sign in with ChatGPT can't reach a browser on your machine. So prized agents run codex checks first and, at a terminal, offers to sign Codex in through your browser here, the same sign-in prized setup does, which also copies your Codex settings and MCP servers (Run Codex in the cloud); the card says that anyone else who can connect to the box can use the sign-in there. -y, -q and --json never sign in or copy anything; from a script, prized agents handoff codex does. Otherwise it says what works before Codex opens; with --attach it waits for Enter first. Started without --attach, Codex waits for you, and run says where (at its sign-in screen, or for its first task) with the prized ssh command that opens it; in a folder it hasn't opened before, Codex first asks whether to trust it. --json reports signed_in and waiting_for.

run never starts a second copy where something already runs in the session; it says so, and with --attach opens it. An agent that exits at start without printing anything is usually started once more; one that prints an error fails with it, and with what the box looked like then. If the box stops answering while run checks the start, run leaves the session alone, says it could not confirm the start (exit code 3) and prints the prized ssh command to look: the agent may well be running. A session with nothing running in it, such as an empty shell or one the agent exited from, gets the agent started in it. So prized agents run claude --attach is the one command to start your agent or get back to it.

FlagWhat it does
--attachLand in the session as it starts, as prized ssh does; otherwise reattach later with prized ssh -s claude.
--dirWorking directory. Defaults to your only synced project, or with none synced, the only folder in ~/code on the box (where setup copies or clones a project); otherwise pass --dir ~/code/<name>.
--sessionSession name, for a second concurrent run of the same agent.
-- ARGSEverything after -- goes to the agent.

The agent's own copy action (Claude Code: select, then c) lands on your clipboard through prized ssh and prized agents run --attach (Copy out).

Move a running Claude Code session to the box

Mid-task on your laptop and need to close the lid? Move the conversation to the box:

prized teleport

It needs prized v0.21.12 or later. Run it in the project folder from another terminal, or type ! prized teleport into Claude Code itself; press Esc first to break off a step, since Claude Code holds a ! command until its turn ends.

It wakes the box, syncs the folder if it is not synced yet (a terminal asks first; inside Claude Code, add -y), stops Claude Code here, and resumes the same conversation on the box in the claude session, in the permission mode it was in, with the model and tool flags you started it with. A one-time Yes to a permission prompt stays on your laptop: in manual mode the box asks again, and the question waits until you answer it there. Teleport refuses while a question waits on your laptop; with --wait it waits for your answer. Claude Code there is told the conversation moved; a step it cut off is checked and carried on. Reattach with prized ssh -s claude, or from the dashboard in any browser.

Don't resume the conversation on your laptop afterwards (the claude --resume hint Claude Code prints as it closes): that starts a second copy. Bring it back with prized teleport back instead.

If Claude Code doesn't come up on the box, teleport starts it once more; if it still doesn't, it says nothing runs the conversation and gives the claude --resume command to run here. If teleport can't confirm the start (the box stopped answering, say), the conversation may be running there: look with the prized ssh command it prints before you resume it anywhere.

When teleport sets up the sync, the folder's .env files stay on your laptop, and it names them; --sync-env syncs them too. A folder you already sync keeps its own settings. The conversation itself carries whatever the agent read, .env contents included.

What travels: the conversation with its subagent and tool-result files, its edit checkpoints (which can hold copies of files you edited), and the folder's Claude Code memory files the box does not have yet. If git on the box has no user.name or user.email for the folder, teleport sets your laptop's in the box's global git config, so commits there work, and says what it set.

It refuses, and stops nothing, when the box is safe for third parties (the conversation carries whatever the agent read), when Claude Code was started with a flag teleport doesn't carry (it carries --permission-mode, --model, --tools, --allowedTools, --disallowedTools and --dangerously-skip-permissions; --settings, --mcp-config, --add-dir or a system prompt refuse), when the conversation already runs on the box, when the box's copy has turns this one lacks, when a Claude Code open in the folder cannot be matched to a conversation, or when it cannot record on the box that you trust the folder (Claude Code there would stop to ask). Claude Code has to be signed in on the box: run in a terminal, it first offers to copy your machine's Claude Code sign-in there; signed out on both, it tells you to sign in on the box or here first. Not on Windows yet.

FlagWhat it does
--waitLet a turn in progress finish before moving, a question waiting for your answer included (--wait-timeout, 30 minutes by default). From a terminal only, like --id.
--idMove a conversation by id instead of the one open in the folder (or, with none open, its latest).
--sessiontmux session on the box. Defaults to claude, or claude-<id> while something else runs in claude.
--no-attachStay in this terminal; otherwise it opens the box session here.
--forceReplace the box's copy of the conversation even if it has turns this one lacks; the old copy is kept beside it.
--sync-envWhen teleport sets up the sync, sync the folder's .env files too.

Bring it back to your laptop

prized teleport back

Run it in the project folder on your laptop. It stops Claude Code on the box and resumes the same conversation here with claude --resume, telling Claude Code it is back on your laptop and carrying on with a step it cut off. Your files come back through the folder's sync. prized teleport back itself settles three things: the permission mode Claude Code starts in here, that it is never bypass-permissions mode by itself, and that your laptop's copy of the conversation ends with your laptop's own record of that mode. It does not vouch for what else the box changed: the project's files sync with the box, and Claude Code reads the .claude/settings.json and .mcp.json among them. The conversation comes back in the permission mode it was last in on the box only when that mode is no wider than the one it left your laptop in: manual, plan and don't-ask mode always (none of them lets more run without asking than manual mode does), accept edits if it left in accept edits, auto or bypass-permissions mode, and auto if it left in auto or bypass-permissions mode. Bypass-permissions mode never comes back by itself. In every other case the conversation starts here in manual mode. When it ran on the box in a wider mode than it starts in here, teleport back says so in one line, with how to switch it yourself (Shift+Tab, or the flag to start it with). Your laptop's copy of the conversation always ends with a record of the mode it starts in, for every session id the transcript names, so a later claude --resume does not restore the box's. A second prized teleport back of the same conversation has no record of your laptop's to go by: accept edits and auto then start in manual mode, and plan and don't-ask mode come back as they are. A transcript line that may name a permission mode and that teleport back cannot read stops the move. Teleport back looks before it stops Claude Code on the box, and a move refused then leaves it running; a line written after that look is refused once Claude Code there has been stopped, and the message says how to resume it there. A last line that a crash cut off is left on the box: teleport back says so, and the next prized teleport of that conversation needs --force. Tools you allowed with --allowedTools come back only if they went to the box from your laptop; flags the box session was started with beyond that stay there, and teleport back says how to add them. Tools you denied with --disallowedTools, or limited the session to with --tools, when it left your laptop are still denied when it comes back. Rules saved with Yes, and don't ask again on the box stay on the box: sync leaves .claude/settings.local.json on each side, teleport sends your laptop's to the box and never the box's back, and teleport back says when the box's differs. When the project's shared .claude/settings.json or .mcp.json changed while the conversation was away, teleport back names the file and prints the resume command instead of starting Claude Code. It compares those two files only: not a script a hook calls, not skills, agents, commands or CLAUDE.md (Claude Code settings over sync).

It refuses, and stops nothing, when a Claude Code on your laptop has the conversation open, when your laptop's copy has turns the box's lacks (you resumed it here after the teleport), when the box is safe for third parties (anyone it is shared with could have written the conversation, and here it would run with your laptop's credentials), or when Claude Code on the box was started with a flag teleport doesn't carry (here it would run without it).

FlagWhat it does
--idBring back a conversation by id instead of the one running in the folder on the box (or, with none running, its latest there).
--no-startPrint the claude --resume command instead of starting Claude Code here.
--forceReplace your laptop's copy even if it has turns the box's lacks; the old copy is kept beside it as .prized-bak-*.

The agents

Claude Code and Codex run on the Claude or ChatGPT plan you already pay for, or an API key, signed in on the box (Hand credentials to the box); Prized bills the box, not the model.

AgentOn the boxRuns on the box
Claude Code (claude)Preinstalled.Yes
Codex CLI (codex)Preinstalled.Yes
OpenCode (opencode)Installed on first use, from a pinned release.Yes
pi (pi)Installed on first use, from a pinned release.Yes
Cursor (cursor)Installed on demand (--install-cursor).Yes
ChatGPT app (chatgpt)Drives codex over SSH from your machine.No

chatgpt is a connection, not a process on the box, so its tasks stop when your machine sleeps and prized agents run chatgpt refuses; prized agents run codex survives a closed laptop. App setup is on Codex remote.

Step by step for one agent, from setup to checking on it from your phone: Claude Code (and its cloud sessions on Team and Enterprise), Codex, OpenCode, pi, Cursor CLI. To have Claude Code or Codex set up its own box, paste the prompt on /claude-code or /codex into it.

OpenCode and pi

prized agents run opencode

The first prized agents run or prized prompt of either installs a pinned release on the box (OpenCode's is OpenCode 2), checked against its SHA-256 before anything is unpacked; a mismatch installs nothing and the command says why. A copy you installed on the box yourself is used instead; for OpenCode it must be OpenCode 2. Neither has a handoff: sign in on the box (opencode auth login; or pi, then /login), or set a provider key as a Secret (Keys for other agents and backends). OpenCode also runs its free models with no key.

See what is set up

prized agents ls

One row per agent: installed and signed in on your machine and on the box, MCP servers found, and where it is running. For OpenCode and pi, signed in on the box means a sign-in or a provider key there. With no agent running on the box, it ends with the command that starts one (the first signed in there). Read-only; takes --json.

Hand credentials to the box

prized agents handoff claude codex

Lists what would travel, asks, then copies the named agents' sign-in and MCP config to the box (Codex on a ChatGPT plan gets a sign-in of its own, through your browser, and Cursor signs in on the box with agent login); prized setup runs the same step. Re-run it after changing MCP config. --gh adds your GitHub CLI token and git identity, --install-cursor installs Cursor's CLI first; what travels per tool is on Credentials.

Give agents a browser

prized agents browser

Installs a browser on the box and registers it with Codex and Claude Code there as the MCP server playwright (Playwright MCP driving Chrome), so an agent can open pages, click, type and take screenshots. Start a new agent session afterwards. The ChatGPT and Claude desktop apps keep their built-in browser on your machine, so a chat they run on the box needs this.

FlagWhat it does
--headedShow the browser's window on the box desktop; watch it with prized desktop. Without a flag the browser is headless, with a fresh profile each session.
--cdpDrive the signed-in window prized browser streams instead, through its DevTools port on the box's loopback. It attaches to the window that is open, in its profile, or --profile NAME; the window restarts once to open the port.
--agent NAMEcodex, claude, or all (the default: every one of them on the box). The mode is the box's: every agent with the server uses the one the last run set.
--forceReplace an MCP server named playwright that runs something else; it is left alone otherwise.
--removeUnregister the browser server. Once no agent has it, the DevTools port closes too.

Node.js and Playwright MCP install under ~/.prized/agents from pinned downloads, checked against their checksums before anything is unpacked; your own node is not touched. Chrome comes from Google's signed apt repository when the box has none. The command ends by driving the browser once through the server, as an agent will.

Running it again changes only what differs; switching away from --cdp restarts the window to close its port. A handoff can drop the server or put your computer's own playwright in its place (prized agents handoff codex replaces the box's Codex config), so run this again after one, with --force if it then reports a playwright server of yours.

Drive it remotely

prized prompt --provider claude "fix the failing tests and run them again"

prized prompt runs Claude Code, Codex, OpenCode or pi headless on the box and streams its events until the verdict; prized events follows a run and prized interrupt stops it, also over HTTP (Prompt an agent remotely). A model written amazon-bedrock/…, openrouter/… or deepseek/… runs it on that backend (Models and backends).

Several agents at once

Each agent gets one session by default (claude, codex, opencode, pi, cursor), each in its own project via --dir. For two runs of the same agent, name the sessions:

prized agents run claude --session claude-api --dir ~/code/api
prized agents run claude --session claude-web --dir ~/code/web
prized ssh --ls

Bring your own agent

Any CLI agent runs on the box. Pick other in setup's agent step and it prints these steps with your box's name filled in:

  1. prized ssh opens the box, waking it if needed.
  2. Install the agent's CLI there.
  3. Sign in there, once per box; the credential stays on the box disk and Prized never sees it.
  4. Run it detached in a named session: prized ssh -s myagent, or tmux new-session -d -s myagent 'the-agent' from any box shell. Reattach with prized ssh -s myagent.

For an API key, prefer a Connector: the box gets a placeholder and the real value never touches its disk. The handoff and prized agents run do not cover your own agent; sessions work the same.

Review from your machine

In a synced project, the agent's edits stream into the folder on your machine as it works, so you review the diff in your own editor. The box wins sync conflicts, so a local edit that races the agent yields to its work; a clone has no mirror, so review it over git.