CLI reference
Every prized command, flag, JSON shape, and exit code, on macOS, Linux, and Windows.
On this page23
Commands
Add --help to any command. With --json, every non-interactive command prints exactly one object, {"ok": true, ...} with the payload inline on success; failures and exit codes are under For agents and scripts.
prized help lists every command with a line each, and prized help <command> (or prized <command> --help) prints one command's flags and examples.
Sign in and set up
prized login opens the dashboard to make an API key for this machine, stores it in ~/.config/prized (%LOCALAPPDATA%\Prized on Windows), sets up your SSH identity, and registers this machine's device key (Claude Desktop remote); with no config yet and exactly one box on the account, it also connects that box. Flags: --token (an API key from the dashboard or a single-use install token; the only form --json accepts), --token-stdin, --url. JSON: {"ok": true, "email", "workspace", "boxes", "box", "url"}.
prized start is what npx prized runs: the sign-up in this terminal, a box, where you work, and this machine set up. Already signed in, it points you to prized setup.
prized setup [PATH] sets this machine up for your box and is safe to re-run: a repairing health check, the project to sync, your environment, the agents, and a detached session. prized setup auto skips the auto-or-manual question (Quickstart).
| Flag | Meaning |
|---|---|
--project, --no-project | The project to sync (a name or a path), or none. |
--copy, --copy-once, --clone | Copy and keep syncing, copy once with no sync, or git clone on the box; the default syncs in place. |
--merge | Merge into an existing folder on the box instead of refusing. |
--env, --env-secrets, --env-data, --no-env | The environment groups to bring; data is never covered by auto or -y. |
--env-workers N | Environment items installed at once (default 8); 1 installs them in order. |
--agent NAME, --no-agents, --save | Agents to hand off (claude, codex, cursor, chatgpt); --save records the pick. |
--gh, --no-gh, --install-cursor | The GitHub token and git identity; Cursor's installer. |
--start, --no-start, --attach, --no-attach, --session NAME | The picked agent's detached session; --attach opens it here instead of printing the reattach command. |
--box NAME | The box to set up; one other than the default gets its own config and daemon (Several boxes). |
--dry-run, --non-interactive | Print what a run would do and change nothing; never prompt. |
--signup ID | Finish what a terminal sign-up started (its box, mode, and app); npx prized passes it. |
JSON: {"ok": true, "steps": [{"id", "status": "done|skipped|failed", "duration"}], "state": "READY|DEGRADED", "env"}.
prized init adopts a box on your account (config, SSH stanza, daemon); login and setup run it for you. Flags: --box NAME (another box, with its own boxes/<name>.toml and daemon), --force (make it the default instead, rewriting config.toml after a backup; refused for a box with its own file), --user NAME, --no-daemon, --non-interactive.
prized env scan|plan|migrate runs the environment step alone: list what your machine has, print the questions, apply them. Flags: --project PATH, --advisor/--no-advisor, --non-interactive (Bring your environment).
Box lifecycle
Every action also works from the dashboard; what each does is on Boxes.
- Naming a box.
BOXis a hostname (mango), a box id,current(the last box this machine created), orself(the box the command runs on); omitted, it is the box you set up. An unknown name exits 5 and lists your boxes. - Sizes. Tier id or public name:
nano(Nano),micro(Micro),lite(Extra Small),flow(Small),pro(Medium),max(Large),ultra(Extra Large); prices on Billing. Until a plan is live, the free credit allows Nano through Small, one box at a time: a bigger size exits 5, a second box exits 6. - Windows.
--ttland--auto-pausetake a duration with a unit:45m,4h,1h30m,2d.
box new
prized box new # a fruit name, the size your balance runs comfortably
prized box new mango --size Small --ttl 4h --auto-pause 45m --waitReturns as soon as the control plane has the box, which becomes current; boot times are on Boxes.
| Flag | Meaning |
|---|---|
NAME | Lowercase letters, digits, and hyphens, starting and ending with a letter or digit, up to 32 characters. |
--tier, --size | The size; either name works. |
--ttl WINDOW | A pause deadline, 5m to 30d from now. |
--auto-pause WINDOW | Idle auto-pause, 30m to 7d; refused on the free credit. |
--environment NAME | Apply a saved environment at first boot, by name or env_ id. |
--from-snapshot ID | Restore a snapshot into the new box, at the snapshot's size. |
--region REGION | us-west-2 (Oregon, the default) or us-west-1 (California); with --from-snapshot, a move after first boot. |
--wait | Poll until the box is running (5 minute budget), then print the prized ssh line. |
Exit 6 (CONFLICT): a taken name, the box count, or a balance that cannot run the box. Exit 5: a size not on your plan, a bad name, or a window out of bounds.
The rest of the box group
Each prints {"ok": true, "box": {...}} with the box object unless noted.
| Command | What it does |
|---|---|
box ls [--all] [--filter STATES] | NAME, STATE, SIZE, REGION, AUTO-PAUSE, PAUSE-AT, CREATED; --all adds terminated boxes. JSON: {"boxes"}. |
box info BOX | State, size, region, tunnel IP, login user, disk, pause settings, last vitals, last eight events. JSON adds events and pausesSurvived. |
box pause BOX, box resume BOX [--wait] | Aliases stop, wake (Pause and resume); --wait polls until running. Idempotent; a resume the balance cannot cover exits 5. |
box delete BOX [-y] | Permanent: machine and disk gone. Asks you to type the name; --json needs -y (exit 2 without). |
box rebind BOX | Binds a name's ssh alias to the box that has the name now. After a box is recreated or its freed name taken, ssh BOX and the prized commands refuse the name until you rebind. |
box resize BOX SIZE (or prized resize SIZE) | Restarts the box at the new size (Resize). Refusals exit 5. JSON adds from, to. |
box move BOX REGION | Moves the box (Regions); desiredRegion is set at once, region changes when the move lands. |
box extend BOX --ttl WINDOW | --no-deadline | Sets, replaces, or clears the pause deadline; setting one needs a running box (exit 5), clearing always works. |
box auto-pause BOX WINDOW|off | Sets the idle window (30m to 7d, or bare minutes) or switches it off; a window is refused on the free credit. |
box auto-snapshot BOX --every 6h|off [--keep 5] | Sets or clears a snapshot schedule: every 1 to 168 hours, keeping 1 to 10. |
The box object
{
"id": "5d0a…", "hostname": "mango",
"observedState": "running", "desiredState": "running",
"tier": "flow", "instanceType": "m6a.xlarge",
"region": "us-west-2", "desiredRegion": "us-west-2",
"loginUser": "hudson", "boxIp": "10.77.3.1", "diskGb": 100,
"autoPauseMin": 45, "pauseAt": "2026-09-01T18:30:00Z",
"lastHeartbeatAt": "2026-09-01T15:17:52Z", "createdAt": "2026-08-29T12:00:00Z",
"runningSince": "2026-09-01T09:02:11Z",
"vitals": {"cpu_pct": 12, "mem_pct": 41, "disk_pct": 63, "idle_for_sec": 720}
}autoPauseMin, pauseAt, diskGb, lastHeartbeatAt, and vitals are null when unset or unknown. runningSince is when the box last started, resumed or rebooted; it is null unless the box is running or degraded, and box ls --json and box info --json carry it. Timestamps are RFC 3339 UTC.
Snapshots
| Command | What it does |
|---|---|
prized snapshot create BOX [--name NAME] [--description TEXT] | Snapshot a disk without stopping the box. |
snapshot ls [--box BOX] [--kind KIND] | List snapshots. |
snapshot restore SNAPSHOT [--name NAME] [--tier SHAPE] | Launch a new box from a snapshot or template. |
snapshot delete SNAPSHOT | Retire a snapshot. |
snapshot template SNAPSHOT NAME, snapshot untemplate NAME | Name a snapshot (or a box, snapshotting it first) as a template; drop the name. |
prized fork BOX [--name NAME] [--tier SHAPE] [--keep-snapshot] [--wait] | A new box from a copy of a running box's disk. |
Behaviour, kinds, and limits: Snapshots.
Environments
prized environments (alias envs) manages what a new box inherits: ls, info, new, default, rm, set, set-var/rm-var, set-file/rm-file, add-repo/rm-repo, upgrade. Every command and its JSON: Environments.
Secrets
prized secrets controls who may use a workspace secret and shows what it was spent on; values are set and rotated in the dashboard only (Scoped secrets).
| Command | What it does |
|---|---|
secrets ls [--box BOX] | NAME, SCOPE, HOSTS, MOUNTS, ROTATED; with --box, only what that box may mount. |
secrets grant NAME --box BOX | --member EMAIL | Make the secret available to one box, or to every box a member owns; the first grant narrows a workspace-wide secret to its grants. |
secrets revoke NAME --box BOX | --member EMAIL | Take a grant back; the box loses the secret within seconds. Revoking the last grant makes the secret workspace-wide again. |
secrets grants NAME | Who has it: KIND, TO, SINCE. |
secrets usage NAME | Which boxes spent it against which hosts: BOX, HOST, FIRST, LAST, COUNT (a floor). |
grant and revoke take exactly one of --box and --member (exit 2 otherwise); an unknown secret, box, member, or grant exits 5; a 409 exits 6. JSON mirrors the columns.
Connect
prized ssh [BOX] [SESSION] [-- CMD...] attaches to a persistent tmux session (waking a suspended box) and forwards a non-default box's ports while connected (Sessions). Flags: -s, --session NAME (default main), --ls, --kill NAME (asks unless -y), --raw (no tmux), --no-forward, --no-drop-upload, --no-clipboard (Copy out). With -- CMD it runs that one command instead, sharing the box's connection the way prized exec does.
Interactive forms reject --json (exit 2); once connected, the exit code is ssh's or the remote command's. JSON: --ls {"sessions": [{"name", "windows", "created", "attached"}]}, --kill {"killed"}.
Every command that uses SSH runs the OpenSSH client from the system directories (/usr/bin, or System32\OpenSSH on Windows), never one on PATH; name another with bin = "/path/to/ssh" under [ssh] in the config.
prized mosh [BOX] [SESSION] is the same session over mosh (installed locally; not on Windows yet), with -s, --raw, --no-forward, --no-drop-upload. prized herdr [BOX] [SESSION] lands in herdr instead of tmux, installing it on the box the first time. prized up starts the box, reconnects everything from cold, and prints the status block; --resume resumes paused syncs, --wait-timeout (default 5m) bounds the wait. prized proxy BOX PORT[:LOCALPORT] forwards one box port to localhost until interrupted.
Run commands and files
prized exec [BOX] [flags] -- CMD... runs one command on the box and exits with its code: --cwd, --timeout, and --env K=V shape the run, --detach returns an id, and --status ID, --ps, --kill ID inspect or stop detached runs without waking a paused box. Runs back to back share one connection to the box, so after the first, each one starts without a new handshake. JSON: {"ok": true, "exitCode", "stdout", "stderr"}. prized cp [-r] SRC DST copies files scp-style: box:path is a path on a box, :path one on your box.
Both are on Run commands and files, and both report what they did (never output or contents) to the audit log as a reported row.
Desktop
prized desktop [BOX] opens the box's desktop in the dashboard and forwards its VNC port until interrupted; --no-open prints the vnc:// address and password, --stop ends it. prized browser [BOX] does the same with one Chrome window (--profile, --url). Starting either reports a desktop.start audit row (mode and profile, never the password); see Desktop.
Sync
prized sync add PROJECT | add --local PATH mirrors a folder between the box and this machine (Sync). Flags: --local PATH (your own folder, in place, instead of ~/Prized/<name>), --remote PATH (default ~/code/<name>), --name NAME, --prefer box|mac (default box), --mode MODE (default two-way-resolved), --ignore and --unignore, --create (make the remote folder), --paused, --merge (allow a non-empty local folder).
prized sync (or sync ls) lists sessions with state and problems; pause, resume, and flush take a name or --all (flush --timeout, default 60s); repair NAME recreates a halted session; rm NAME removes one (--delete-local, --delete-box also move the files aside). JSON: add {"project"}; ls {"projects", "degraded"?}; repair {"repaired"}; rm {"removed", "files": "keep|trash_local|trash_box"}.
Mount
prized mount [BOX] mounts a box in Finder from a background process and returns, macOS only (Mount); -f, --foreground serves from the terminal until interrupted. Flags: --dir PATH (default the home directory), --at PATH (default ~/Prized/boxes/<box>), --read-only, --mount-opt OPTS, --no-open.
prized unmount [BOX] stops a mount, background or foreground. JSON: mount {"box", "mountpoint", "pid", "detached", "log"}, plus "already": true for a box already mounted (the call then opens the folder); unmount {"box", "mountpoint", "unmounted"}.
Ports
prized ports ls lists the box's listeners and their mirror state; prized ports toggle PORT switches one mirror on or off (Ports). JSON: ls {"ports": [{"port", "label", "process", "state", "reason"}]}; toggle {"port", "state", "reason"}.
prized ports share PORT prints a prized.dev link sharing the port with your workspace (the same link again for a shared port); prized ports share alone lists the box's shared ports; prized ports unshare PORT stops sharing (Share a port with your team). A bad port exits 2 before any call; a port that is not shared exits 5. JSON: share PORT {"share": {"id", "boxId", "hostname", "port", "slug", "url", "createdBy", "createdAt", "openCount", "lastOpenedAt"}, "created"}; share {"enabled", "shares": [...]}; unshare {"share", "revoked": true}.
Agents
| Command | What it does |
|---|---|
prized agents ls | One row per coding agent: installed and signed in here and on the box, MCP servers, where it runs. |
prized agents handoff [AGENT...] | Copy the named agents' sign-in and MCP config to the box (--gh, --install-cursor); a Codex ChatGPT sign-in does not travel, so the box signs in through your browser instead and the result shows in your terminal. |
prized agents run AGENT | Start an agent detached in a tmux session (--session, --dir, --attach, -- ARGS). |
prized agent upgrade [--version V] | Upgrade the box agent, which normally updates itself. |
See Agents.
Prompt an agent remotely
prized prompt [BOX] --provider claude|codex [flags] TEXT runs the box's coding agent headless on one prompt (- reads it from stdin) and follows its events until it answers. Flags: --model, --effort low|medium|high, --cwd, --continue (resume the provider's newest session), --queue (run after the run in progress), --detach (start and return the id), --auto (no approvals).
prized prompt ls [BOX] lists runs; prized events [BOX] [--run ID] [--follow] [--after N] shows or follows one; prized interrupt [BOX] [--run ID] stops the run in progress. Only prompt wakes a box. Exit: 0 when the run ends cleanly, 1 when it failed or was interrupted, 130 on Ctrl-C.
JSON: prompt --json prints the started run and does not follow; prompt --jsonl and events --jsonl print one normalized event per line; prompt ls {"runs", "active"}; events {"run", "events", "next", "finished"}; interrupt {"id", "wasRunning", "signal"}. Shapes: Prompt an agent remotely.
Team
prized team status is what the team is doing now, prized team log what happened; neither needs a box config (Teams).
prized team status
prized team log --since 7d --kind exec,prompt --member ana@acme.comteam status prints every live box (BOX, OWNER, STATE, IDLE, SESSIONS, SPEND TODAY), every member (MEMBER, ROLE, BOXES, SESSIONS, SPEND (CYCLE), LAST ACTIVE), and a totals line; a contractor gets their own boxes. JSON: the fields of GET /api/v1/team/status.
team log prints the audit log as TIME, MEMBER, KIND, BOX, DETAIL, ORIGIN (server or reported); contractors exit 5. Flags: --since WINDOW (default 24h), --kind KINDS, --box BOX, --member EMAIL, --limit N (default 100, at most 1000). JSON: {"events": [{"id", "at", "kind", "origin", "actorKind", "actorUserId", "actorTokenId", "boxId", "detail"}], "nextBefore"}.
Health and updates
prized status is box, sync, ports, and daemon state at a glance; --watch 2s keeps it open. JSON: {"box", "sync", "ports", "daemon", "update": {"available"}}; box.transport_path is udp, relay (the Prized relay over HTTPS), ws (the box's own port 443), probing while it looks for a way through, or empty while the tunnel is down. An unreachable box prints "ok": false and exits 3.
prized doctor is the full health check: it applies safe repairs by default, marks them (fixed), and prints only checks that failed, warned, or were fixed (Troubleshooting). Flags: --no-fix, --strict (warnings fail), -v (every check), --bundle (a diagnostics tarball; nothing leaves your machine); for the agent token and host key, --rotate-token, --fetch-token, --forget-hostkey, --pin-hostkey K. JSON: {"summary": {"pass", "warn", "fail", "skip", "fixed"}, "checks": [{"id", "status", "detail", "hint", "fixed"}]}.
| Command | What it does |
|---|---|
prized version (or prized --version) | Client, daemon, and agent versions for the box in use (--box NAME for another). |
prized update | Update prized and the daemon in place from signed releases (--check only reports, --channel picks one); it also runs by itself (Updates). |
prized daemon install, uninstall, start, stop, restart, status, logs | Manage the daemon of the box in use: launchd on macOS, systemd --user on Linux, a Scheduled Task on Windows. |
prized daemon proxy | Show the daemon's proxy (PAC locations are omitted). |
prized daemon proxy set [URL], prized daemon proxy clear | Change it. set defaults to your shell's HTTPS_PROXY, refuses (keeping the old proxy) when there is none it can use, and records a proxy that does not answer from here with a warning. |
prized mutagen ensure | Fetch Prized's managed Mutagen; the installer, setup, and doctor run it for you. |
prized ops status OP [--wait] | Print or poll a deletion operation (dop_…) the API returned (Deletion operations). |
setup, login, and the daemon commands also record your shell's HTTPS_PROXY for the daemon, but never replace a recorded proxy with one that does not answer (Networks that block the tunnel).
Completions
prized completion zsh > "${fpath[1]}/_prized"prized completion bash > /etc/bash_completion.d/prizedprized completion fish > ~/.config/fish/completions/prized.fishTab then completes commands, flags, box names wherever a BOX goes, sizes on resize, regions on move, and windows on auto-pause.
Global flags
| Flag | What it does |
|---|---|
--json | Exactly one JSON object on stdout. Interactive commands reject it; never inferred from a pipe. |
-y, --yes | Assume yes for confirmations. |
-q, --quiet | Suppress non-essential output. |
-v, --verbose | Verbose output; repeat for wire detail on stderr. |
--timeout | Per-request network timeout, default 10s. |
--no-color | Disable ANSI color; NO_COLOR is honored too. |
--box NAME | The box to act on (PRIZED_BOX): the default box, or another connected with prized setup --box (Several boxes). |
--config PATH | The config file to use (PRIZED_CONFIG). Overrides --box; an escape hatch, not the way to a second box. |
For agents and scripts
A failing --json command prints:
{
"ok": false,
"error": { "code": "CHECK_FAILED", "message": "…", "hint": "…" }
}error.code maps 1:1 to the exit code, and both are a stable contract:
| Exit | error.code | Meaning |
|---|---|---|
| 0 | Success. | |
| 1 | INTERNAL, AWS_ERROR | Internal or unexpected error. |
| 2 | USAGE | A bad flag, an unknown size or region, a window without a unit, box delete --json without -y. |
| 3 | BOX_UNREACHABLE | Box unreachable (or Prized itself, from your network), or a --wait that ran out its five minutes. |
| 4 | DAEMON_UNAVAILABLE | Daemon required but unavailable. |
| 5 | CHECK_FAILED | A precondition failed; the hint says what to do. Unknown boxes, sizes not on your plan, refused changes. |
| 6 | CONFLICT | Already exists or cannot fit: a taken box name, the box count, a balance that cannot run the box, a port. |
| 7 | PARTIAL | A batch partly failed: some items of a --all run or an agents handoff succeeded, others did not. |
| 8 | AUTH | Not signed in or token rejected; run prized login. |
| 9 | MISSING_DEP | A dependency is missing; prized doctor usually fixes it. |
| 10 | DECLINED | You declined a confirmation. |
| 130 | Interrupted. |
- Two exceptions.
prized sshandprized execexit with the remote command's code (ssh's 255 when the box cannot be reached);prized prompt --jsonlandprized events --jsonlprint one object per event. --jsonis opt-in.prized box ls | headstill prints the table.- The same token drives the edge API and every route on the API reference, with no
prizedinstalled. - Sign in without a browser.
prized login --token dcp_…takes an API key from the dashboard; in a script use--token-stdin, since a command line is visible to other programs. Retire keys under API keys. - A whole lifecycle in a script.
prized box new ci-$RUN --size Small --ttl 2h --wait --json, work overprized ssh ci-$RUN -- make test, thenprized box delete ci-$RUN -y --json; the deadline is the safety net if the script dies.
Files
| Path | What lives there |
|---|---|
~/.config/prized/config.toml | The default box's config: box name, sync projects, port policy, preferred agents ([agents]). |
~/.config/prized/boxes/<name>.toml | Every other box's config, same schema, with its agent token beside it (<name>.token). |
~/.config/prized/ | API key, SSH identity, per-box certificates, and the proxy recorded from your shell (proxy.json, readable only by you). |
~/.local/state/prized/current-box | The box current names. |
~/Prized/ | The default local twin of synced projects. |
~/.ssh/config.d/prized | The SSH stanza that makes ssh box-3fa9 work everywhere; prized's own commands read it directly, so they work even when ~/.ssh/config does not apply its Include line. Each alias is bound to the box it first connected to (prized box rebind moves it). |
~/Library/Logs/prized/ | Daemon logs (~/.local/state/prized/ on Linux). |
On Windows everything but the sync folder and the SSH stanza lives under %LOCALAPPDATA%\Prized (state\, cache\, logs\, mutagen\, boxes\, bin\). An install from before the rename keeps its doppel names, paths, and DOPPEL_* variables; PRIZED_* wins when both are set.
Windows
The CLI runs on Windows 10 1809 or later and Windows 11, x64 and arm64, from PowerShell or Windows Terminal (install line); prized ssh uses the OpenSSH client that ships with Windows.
| Topic | What happens |
|---|---|
| The daemon | A Scheduled Task, PrizedDaemon (PrizedDaemon-<name> for a box connected with --box), started at logon, no administrator needed. daemon stop and daemon restart end it hard, dropping sessions open through it; prized daemon logs reads its log. |
| No ControlMaster | Windows OpenSSH has no connection sharing, so prized setup opens one connection per command, a few seconds slower, and every prized exec or prized ssh -- CMD opens its own. |
| Not on Windows yet | prized mosh, prized mount and unmount, drag-and-drop upload in prized ssh, and prized env (setup skips the environment step and says so). |
| Symbolic links | Not synced: a link inside a synced folder stays on the box; every other file syncs. |
| Unsigned binaries | The executables are not Authenticode-signed; see Troubleshooting. |
WSL is Linux to Prized: install with the curl line inside the distribution.
Updates
At most once every fifteen minutes, after a command finishes, the CLI installs any newer release with the same signed, checksum-verified download as prized update, and the next command prints a one-line note. The daemon restarts onto it once no SSH session runs through it (a live prized ssh or external SSH client holds it; sync, mounts, port forwards, and mosh do not); prized version shows a pending restart, prized daemon restart does it now. With several boxes, each daemon restarts the next time a command reaches its box.
Turn it off with auto = false under [update] in the config, or PRIZED_NO_AUTO_UPDATE in your environment. Homebrew installs are left to brew upgrade prized, and from-source builds never self-replace. A CLI below the API's minimum exits 5 with a prized update hint; releases before 0.7.0 never update themselves, and the dashboard names a machine still on one.
Usage telemetry
While you are signed in, the CLI records which command ran, its version, OS, duration, and exit code, and sends the counts in occasional batches; it never records arguments, flags, paths, or file contents, and sends nothing while you are signed out. A failed prized setup step adds one word from a fixed list naming the failed check (the first failing doctor check, if the run stops at its doctor pass), never the message you saw.
Turn it off either way:
# in ~/.config/prized/config.toml
[telemetry]
enabled = false# or per shell
export PRIZED_NO_TELEMETRY=1This covers the CLI only; for the website and dashboard, see Privacy.