Sign in

Give your AI agent a persistent cloud computer

Updated

A Linux machine your agent keeps coming back to, with its files, installed packages and running processes: create a box through the API, run commands and coding agents on it, let it sleep between sessions, and what it costs.

On this page11

An agent that works across sessions needs one computer that stays: the packages it installed, the files it wrote, and the processes it left running are there when it comes back. A box is that computer: a dedicated Linux machine with no maximum run time, created and driven through the API, that sleeps for the price of its disk.

1. Create a box

Make an API key at API keys (Agent sign-in lets an agent make the account and its own key), then:

export PRIZED_API_KEY=dcp_…
API=https://api.prized.dev/api/v1
AUTH="Authorization: Bearer $PRIZED_API_KEY"
curl -s -X POST "$API/boxes" -H @<(echo "$AUTH") -H "Content-Type: application/json" -d '{"name":"agent-1","tier":"flow"}'
# {"box":{"id":"…","observedState":"requested",…}}

Poll GET $API/boxes/{id} until it is running. prized box new agent-1 --size Small --wait does the same from the CLI, and prized box ls shows it running (Boxes).

2. Run commands and agents on it

EDGE=$(curl -s "$API/me" -H @<(echo "$AUTH") | jq -r .edge.url)
curl -s -X POST "$EDGE/v1/box/agent-1/exec" -H @<(echo "$AUTH") -H "Content-Type: application/json" -d '{"command":"echo remember-me >> ~/notes.txt && cat ~/notes.txt"}'

POST /exec answers with the output and exit code; "detached": true leaves a long job running and returns its id to follow (Run commands and files). Once signed in on the box (Credentials), Claude Code, Codex, OpenCode and pi run there from one call to POST /prompts, and the run lives on the box, so nothing depends on the caller staying connected (Prompt an agent remotely).

3. Let it sleep between sessions

curl -s -X POST "$API/boxes/{id}/suspend" -H @<(echo "$AUTH")

A paused box keeps its disk and pays only for it. Nano through Small also save their memory, so processes and tmux sessions resume where they were; larger sizes, and any box paused over 3 days, start their processes fresh (Pause and resume). The next POST /exec or POST /prompts wakes the box before it starts, and autoPauseMin on the create pauses it after that many idle minutes (Auto-pause).

One box per user or per agent

Name each box after its user or agent and keep the mapping on your side. A workspace holds 1 box on the free credit, 10 on the $10 and $25 plans, 25 on $50 and $100, and 100 from $250 (Limits). An environment gives every new box the same repos, setup script and env vars, and a snapshot of a set-up box restores into new ones.

What it costs

Nano (2 vCPU, 2 GB)Small (4 vCPU, 16 GB)
Awake, per hour$0.014$0.137
Awake around the clock, 30 days$9.86$98.63

Asleep, a box pays only for its disk (Billing). New accounts get $30 of credit with no card, enough for one box from Nano to Small.

Common questions

How do I give an AI agent its own computer?

Create a box with one POST /boxes, then send it commands with POST /exec, or, once they are signed in on the box, start Claude Code, Codex, OpenCode or pi on it with POST /prompts (steps 1 and 2 above). The box keeps its files and installed packages between sessions and sleeps for the price of its disk.

Can it stay on 24/7?

Yes: a box has no maximum run time. A Nano awake around the clock costs $9.86 for 30 days. On the free credit a box pauses after 2 idle hours; prized box auto-pause agent-1 off keeps it up through 12 idle hours, and with no limit once you choose a plan or top up (Auto-pause).

Does the agent get a desktop and a browser?

Yes. A box has a Linux desktop with Chrome that you can watch from the box page's Desktop tab or with prized desktop, and prized agents browser gives Claude Code and Codex a browser tool (Desktop).

Is it safe to let an agent run commands on it?

Each box is its own virtual machine with its own kernel and encrypted disk, and no cloud credentials are attached to it beyond an AWS role your workspace connects and an infinite storage box's credentials for its own stored files (Security). Give the agent only the keys its task needs (Credentials).

Box or sandbox?

A box for one computer the agent keeps coming back to, with no time limit; a sandbox for a fresh microVM per task that pauses with its memory, forks into live copies and is billed per second (Boxes or Sandboxes?).