DOCSSandboxes
DOCS

Sandboxes

A sandbox is an isolated machine for an agent or any other program, run by its provider. It runs your image, or Sandbox Router's Default one, with the command, variables and size you give it. It stops by itself when idle, reaches only the destinations you allow, gets your connectors' keys added to its requests without ever holding them, serves its ports at its provider's own URLs, and takes snapshots on providers that keep them.

This guide covers a sandbox's whole life in the console, the CLI and the API. The CLI examples assume you've installed and configured sandboxrouter, your workspace's namespace among it (see The CLI); the API examples send an API key as $SANDBOXROUTER_API_KEY and name the namespace as $NS (see The API).

Create a sandbox

In the console

  1. Open Sandboxes and choose New sandbox. (The button shows for a workspace's owners and operators.)

  2. Under 1. Choose a provider, keep Auto to let Sandbox Router pick where the sandbox runs, or pick a provider.

  3. Under 2. Choose an image, pick Default or Your image (see Images). Optionally enter a Command for the sandbox to run, and Environment variables, one NAME=value per line.

  4. Under 3. Configure, pick a Size (see Sizes) and add Labels.

  5. Under 4. Network, list the Allowed outbound hosts, one per line, or leave the field empty to allow every host (see Outbound access). Optionally enter a User: one of your own users, whose own accounts the sandbox's connectors then use (see Connectors). Under Connectors, check each connector the sandbox gets; each says whose account its requests carry.

  6. Choose Create sandbox.

The create holds until the sandbox runs; one that is refused stays on the form with why. Then Sandboxes opens with the new sandbox first and a notice in the bottom corner: Open sandbox → opens its page, or, for a sandbox whose user still has to sign in to Codex (ChatGPT), Sign in to Codex to finish setting it up → opens its page, which has Get a code. A sandbox that failed to start shows Failed, with why in the notice. A plain "It's running." notice goes after a few seconds; one with a sign-in link or a failure stays until you close it.

With the CLI

shell
sandboxrouter sandboxes run --name build-agent --size l --egress api.github.com --connector github

Every field of the sandbox has its own option; see Fields. sandboxrouter sandboxes create makes the same sandbox and answers at once, while it starts. sandboxrouter run is the shortcut that runs a sandbox and one command in it once it runs:

shell
sandboxrouter run --name build-agent -- npm test

With the API

shell
curl "https://api.sandboxrouter.io/v1/namespaces/$NS/sandboxes:run" \
  -H "Authorization: Bearer $SANDBOXROUTER_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{ "metadata": { "name": "build-agent" }, "spec": { "resources": { "size": "l" } } }'

{} is a whole request: every field takes its default. The request holds until the sandbox runs and answers 201 Created with it, status.phase Running, or Failed with why on its Ready condition. Sandbox Router sets no deadline of its own: how long to wait is yours to decide, and a create you stop waiting for goes on. Send the same Idempotency-Key again to retry safely: you get the same sandbox, never a second one. POST …/sandboxes (without :run) creates the same sandbox and answers at once, Pending: read it by its metadata.uid with ?waitMs= to see it run.

On a provider you choose

Without a provider, your workspace's Auto order places the sandbox and fails over between providers (see Routing and policies). To pin it to one, pick it under 1. Choose a provider in the console, pass --provider or --account to the CLI, or name it in spec.placement.selector:

shell
sandboxrouter sandboxes run --name build-agent-e2b --provider e2b
shell
curl "https://api.sandboxrouter.io/v1/namespaces/$NS/sandboxes:run" \
  -H "Authorization: Bearer $SANDBOXROUTER_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{ "metadata": { "name": "build-agent-e2b" }, "spec": { "placement": { "selector": { "topology.sandboxrouter.io/provider": "e2b" } } } }'

It runs on your E2B account or nowhere: no other provider is tried, and its placement can't change.

Fields

A sandbox is an object with metadata, the spec you give it, and the status its provider reports.

FieldDefaultRulesCLI optionChanges
metadata.namegenerated, <namespace>-xxxxx1 to 63 lowercase letters, digits and -, unique in the namespace--nameCan't change
metadata.labels{}Up to 16 key: value with the labels Sandbox Router keeps beside them; keys Kubernetes-style, not user, run, grant or under sandboxrouter.io/; values up to 256 characters--label KEY=VALUEYes
spec.from.imageRefthe Default imageref: your image, or on Maritime, which has no Default image, the image Maritime boots; or name: an image of the namespace; see Images--image, --image-nameCan't change
spec.from.snapshotRefnonename: a snapshot to restore, by its name or uid; see Snapshots--snapshotCan't change
spec.commandnone: the image's own entrypoint and command, if it has any1 to 32 arguments of up to 512 characters--command "CMD"Can't change
spec.env[]Up to 64 { name, value }; names of letters, digits and _, not starting with a digit or SANDBOXROUTER_; values up to 4,096 characters. A provider that can't take variables when it creates a sandbox refuses them--env NAME=VALUECan't change
spec.resources{ size: "m" }size, see Sizes; sizeMatch, roundUp (the provider's smallest shape that covers it) or exact--size, --size-matchCan't change
spec.network.egress{ mode: "all" }: every destinationSee Outbound access--egress DEST, --no-egressYes
spec.lifecycle.idleTimeout15mWhole minutes, 5m to 4h--idle-stop MINUTESYes
spec.placement.selectornone: Sandbox Router places it by your workspace's Auto ordertopology.sandboxrouter.io/provider: cloudflare (Native, Sandbox Router's own account), or maritime, daytona, freestyle or e2b on your own account; topology.sandboxrouter.io/account: one of your own provider accounts--provider, --accountCan't change
spec.connectors[]Up to 32 of your connectors' IDs: the connectors whose accounts its requests carry (see Connectors)--connector IDCan't change
spec.usernoneOne of your own users, by your ID for them: 1 to 256 characters, without control characters; its connectors then use that user's own accounts--userCan't change
spec.stateRunningRunning or Stopped, set by a change alone; see Start and stopsandboxes start, sandboxes stopYes

A sandbox runs its spec.command at every start, in place of the image's entrypoint and command. Without one, the image's own entrypoint and command run the same way, and an image without any, such as the Default image, runs nothing until you send it commands. Each command you run in the sandbox, such as the one sandboxrouter run takes after --, runs once beside it and is never its command.

And what Sandbox Router and its provider report:

FieldWhat it is
metadata.uidThe sandbox's ID, u-…: every path takes it, or the sandbox's name
metadata.creationTimestamp, status.startedAtWhen it was created and last started
status.phasePending, Running, Stopped or Failed
status.conditionsScheduled and Ready, with why it isn't ready: Provisioning, Stopped or ProviderError and its provider's words
status.provider{ name, id }: the provider it runs on, and the provider's own ID for it
status.resources{ cpu, memory, disk }: what the provider gave the sandbox for its size, its nearest shape at or above it, as the provider last reported it. Sandbox Router bills the size
status.providerLabelsThe labels its provider holds, where it keeps labels
status.usageWhat was metered of it since its create, on a read and in a list

What the provider does to a sandbox on its own shows here too. Stopped, failed or deleted in the provider's own console, it reads Stopped or Failed or is deleted, within 5 minutes, or at once on Daytona and E2B, where connecting your key registers the provider's webhook (on Daytona, once Daytona has turned webhooks on for your organization) and removing it removes the webhook. On Daytona, Freestyle and E2B, which keep a sandbox's labels, status.providerLabels are as the provider has them: a label you change in its own console shows there.

Images

The Default image

The Default image is Alpine Linux with bash, coreutils, Node and Docker. It runs on any size and has no command of its own: without a command, the sandbox runs and waits for the commands you send it. It doesn't include your project's dependencies or a coding agent: install what you need with a command, or build your own image. To install Alpine packages with apk, allow dl-cdn.alpinelinux.org.

Your own image

You can run any linux/amd64 image you've pushed to your workspace's namespace of the registry, registry.caas.sh/<tenant-id>/NAME; Images and the registry shows how. A sandbox on your own image needs size M or larger. Without a command, the image's own entrypoint and command run.

  • In the console, pick Your image and enter the image by digest, registry.caas.sh/<tenant-id>/NAME@sha256:… (docker push prints the digest).

  • The CLI and the API take the reference as you write it, a tag or a digest: sandboxrouter sandboxes run --image registry.caas.sh/agent:1.2.0, or "spec": { "from": { "imageRef": { "ref": "registry.caas.sh/<tenant-id>/agent@sha256:…" } } }. Sandbox Router pins a tag to its digest when you create the sandbox, and checks that it's in your registry.

  • An image of the namespace, made once of your image, a provider's own artifact or a Dockerfile, is booted by its name: --image-name python-dev, or "imageRef": { "name": "python-dev" } (see Images and the registry).

Images on Maritime

Maritime has no Default image, and it pulls only public images, so it can't run one from your registry either. A sandbox on Maritime names the image Maritime boots, as Maritime names it: template:<id>, a template of your Maritime account, or a public image pinned by digest on Docker Hub, GHCR or Quay, such as "ref": "ghcr.io/acme/agent@sha256:…". It runs on any size Maritime takes. A sandbox placed on Maritime with no image is refused and says so. Under the Auto order, a sandbox on the Default image or your own goes to another provider, and one on a Maritime image goes to Maritime.

Sizes

A size sets the vCPU, memory and disk the sandbox gets:

SizevCPUMemoryDisk
XS1/16256 MiB2 GB
S1/41 GiB4 GB
M (default)1/24 GiB8 GB
L16 GiB12 GB
XL28 GiB16 GB
2XL412 GiB20 GB

A provider gives a sandbox its smallest shape that covers the size; with sizeMatch: exact, only a provider that gives exactly the size takes it, and a create no provider of its placement takes is refused. status.resources shows what the provider gave.

ProviderGivesGives exactly
NativeIts instance types: 1/16 vCPU, 256 MiB, 2 GB; 1/2, 4 GiB, 8 GB; 1, 6 GiB, 12 GB; 2, 8 GiB, 16 GB; 4, 12 GiB, 20 GBXS, M, L, XL and 2XL. S gets 1/2 vCPU, 4 GiB and 8 GB
DaytonaWhole vCPUs, GiB and GB, at least one of eachL, XL and 2XL
E2BWhole vCPUs, an even number of MiB of at least 128, whole GBL, XL and 2XL
FreestyleOne shape, 4 vCPU, 8 GiB and 32 GB, for every size inside itNone
MaritimeThe vCPUs asked for, whole MiB from 512 to 8 GiB, whole GB from 1 to 100S, M, L and XL. XS gets 512 MiB

While it runs on Native, a sandbox bills for its vCPU, memory and disk, whether it's busy or waiting. On your own Daytona, Freestyle, Maritime or E2B account, that provider bills its compute and egress instead. See pricing for the rates.

Change a sandbox

A sandbox's labels, outbound access, idle timeout and state can change; everything else is its create's for good. In the console, the sandbox's Network card has an Edit link for its outbound hosts (its connectors are listed there, read-only), and its Labels card changes its labels. With the CLI, sandboxrouter sandboxes update changes what you name and keeps the rest: --label KEY=VALUE sets a label and --label KEY- removes one, --no-labels removes them all, and --egress or --no-egress replaces the whole outbound access:

shell
sandboxrouter sandboxes update build-agent --egress api.github.com --egress pypi.org --idle-stop 60
sandboxrouter sandboxes update build-agent --label team=web --label old-

With the API, PATCH /v1/namespaces/$NS/sandboxes/<name or uid> takes a JSON merge patch (Content-Type: application/merge-patch+json) of metadata.labels (a label set to null is removed), spec.network.egress, spec.lifecycle.idleTimeout and spec.state:

shell
curl -X PATCH "https://api.sandboxrouter.io/v1/namespaces/$NS/sandboxes/build-agent" \
  -H "Authorization: Bearer $SANDBOXROUTER_API_KEY" \
  -H "Content-Type: application/merge-patch+json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{ "metadata": { "labels": { "team": "web", "old": null } }, "spec": { "lifecycle": { "idleTimeout": "1h" } } }'

Start and stop

Stop a sandbox with Stop on its page or in its row's menu in Sandboxes, sandboxrouter sandboxes stop build-agent, or a change of its spec.state to Stopped. Start it with Start, sandboxrouter sandboxes start build-agent, or spec.state Running. Each answers at once while the sandbox settles: read it with ?waitMs= (sandboxrouter sandboxes get build-agent --wait-ms 60000) to wait until it has. To restart a sandbox, stop it, wait, and start it.

What a sandbox keeps across a stop is what its provider keeps. A stopped sandbox bills for no vCPU, memory or disk.

Idle stop

A running sandbox stops by itself after its idleTimeout (15 minutes by default) with no call in flight: a command, a file transfer, a snapshot or a request to its MCP endpoint keeps it running while it lasts. Requests to its port URLs go to its provider, not through Sandbox Router.

A stopped sandbox stays stopped

A stopped sandbox starts only when you start it: a command or a file transfer sent to it gets 409 Conflict (not_running). A request to the MCP server it hosts starts it first.

A sandbox also starts only while the workspace has a card on file and a balance above $0. At $0, its sandboxes stop until funds arrive; see Billing and usage.

Run commands

A command runs one executable with its arguments, without a shell, in the sandbox's working directory, with its variables and the ones you add. To use shell features, run a shell: sh -c 'npm ci && npm test'.

In the console

On the sandbox's page, the Terminal tab opens a shell in the running sandbox: its login shell, with colours, full-screen programs and its size kept to the page's. It shows where the sandbox's provider offers a terminal, to owners and operators. It stays open while the sandbox's page does, across its tabs; when the shell exits, it shows the exit code, and Reconnect opens a new shell. Cmd-C or Ctrl-Shift-C copies, and Cmd-V or Ctrl-Shift-V pastes. It keeps the last 1,000 lines; older ones scroll off the top, so send a long output to a file to keep all of it. A terminal is authorized when it opens: removing a member or revoking a key does not close one already open, as it does not stop a command already started. Stopping the sandbox ends every terminal into it.

With the CLI

shell
sandboxrouter sandboxes exec build-agent -- node --version
sandboxrouter sandboxes exec build-agent --env NODE_ENV=test --workdir /workspace/app --timeout 1800 -- npm test
echo '{"q": 1}' | sandboxrouter sandboxes exec build-agent --stdin -- node read-input.js

exec waits for the command, prints its output, and exits with the command's exit code when it fails. --timeout takes 1 to 7,200 seconds; without it the command has no time limit. With --detach, or once --wait-ms passed, it returns while the command runs, with the exec's ID (a detached command may run up to 86,400 seconds):

shell
sandboxrouter sandboxes exec build-agent <exec-id> --wait-ms 60000
sandboxrouter sandboxes exec build-agent <exec-id> --cancel
sandboxrouter sandboxes execs build-agent

With the API

shell
curl "https://api.sandboxrouter.io/v1/namespaces/$NS/sandboxes/build-agent/exec" \
  -H "Authorization: Bearer $SANDBOXROUTER_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: run-tests-0001" \
  -d '{ "command": ["npm", "test"], "env": { "CI": "1" }, "timeoutSeconds": 1800 }'

The body takes command, and optionally stdin (text up to 64 KiB), env, workdir, timeoutSeconds (1 to 7,200; without it, the command has no time limit) and detach. Resending the same Idempotency-Key never runs the command twice. The request holds until the command ends and answers 200, or 202 while it runs once ?waitMs= passed, or at once with "detach": true:

json
{ "apiVersion": "sandboxrouter.io/v1", "kind": "Execution", "execId": "…", "state": "succeeded", "createdAt": 1791797400000,
  "endedAt": 1791797412000, "exitCode": 0, "signal": null, "stdout": "…", "stderr": "" }

state is running, succeeded, failed, timed_out, canceled or lost. stdout and stderr are null until it ends, then the whole output. Read it again with GET …/exec/<exec-id> (?waitMs= waits while it runs), list those that run with GET …/exec, and cancel one with DELETE …/exec/<exec-id>. A provider that can't take an exec's stdin, env, workdir or time limit refuses it, naming what it lacks.

Read the log

A sandbox's log holds what Sandbox Router recorded about it: each state it reached, with why. What its command writes is its provider's, and a command's output is in its exec. The console shows the log as Runtime output on the sandbox's page.

shell
sandboxrouter sandboxes logs build-agent
sandboxrouter sandboxes logs build-agent --since 2026-10-11T09:00:00Z --follow

In the API, GET …/sandboxes/<name or uid>/logs answers every entry at or after ?since= (milliseconds or an ISO 8601 time), oldest first: { "entries": [{ "at", "stream", "message", "kind" }] }. With ?follow=true, the answer is newline-delimited JSON: those entries, then each new one as it comes, until you stop reading; it may end at any time, so follow on with since. Entries are kept for the sandbox's lifetime.

Metrics

A sandbox's CPU, memory and disk over time are its provider's own measurements, kept as long as the provider keeps them, whether the sandbox runs or not. Native, Daytona and E2B keep them; Freestyle and Maritime keep none, and the request says so. Native measures no total memory or disk, so those are null.

shell
sandboxrouter sandboxes metrics build-agent --since 2026-10-11T09:00:00Z

In the API, GET …/sandboxes/<name or uid>/metrics answers the samples from ?from= to ?to= (each an RFC 3339 time; without from, from the sandbox's create, and without to, until now), oldest first: { "samples": [{ "at", "cpuPct", "memUsedBytes", "memTotalBytes", "diskUsedBytes", "diskTotalBytes" }] }, CPU as a percentage of all its CPUs and the rest in bytes, null where the provider doesn't measure it.

Move files

The files API reads, writes and deletes one file of a running sandbox at a time, whole, with its provider's own file operations. A provider with no file API of its own does each with one command of the image's own sh, cat, mkdir and rm, so the image needs them there. A path is absolute, not under /proc, /sys or /dev. A provider that can't do one of them refuses it, naming what it lacks.

shell
sandboxrouter sandboxes files put build-agent /workspace/config.json config.json
sandboxrouter sandboxes files get build-agent /workspace/config.json > config.json
sandboxrouter sandboxes files delete build-agent /workspace/config.json
RequestDoes
GET …/sandboxes/<name or uid>/files/<path>A file's bytes
PUT …/files/<path>Writes the body as the file
DELETE …/files/<path>Deletes the file

Percent-encode each segment of the path, as in …/files/workspace/my%20file.txt.

Outbound access

A sandbox's spec.network.egress says where it may connect out, enforced by its provider:

  • { "mode": "all" } allows every destination. It's the default for a sandbox created without one.

  • { "mode": "allow", "allow": [...] } allows up to 32 destinations and blocks everything else. Write each as { "domain": "pypi.org" }, an exact host, or { "domain": "*.example.com" } for the names under example.com (allow example.com as well if the sandbox calls it), with "ports": [443] for those TCP ports alone. Allow the hosts of the connectors it uses too.

  • { "mode": "none" } reaches nothing.

On your own Daytona account, a list (or none) applies only in a Tier 3 or higher Daytona organization. Below that, Daytona's own network policy applies instead.

Where you set it:

  • Console: in New sandbox, list the hosts under Allowed outbound hosts, one per line, or leave it empty for every host. On an existing sandbox, choose Edit on its Network card and change the list there. Deploying an MCP server has the same field, where an empty list reaches no host.

  • CLI: pass --egress DEST once per destination to sandboxrouter run, sandboxrouter sandboxes run, create or update, with :PORT[,PORT] after it for those ports alone; --egress '*' allows every destination, and --no-egress none. sandboxrouter mcp create takes --egress HOST for its server's sandbox:

    shell
    sandboxrouter run --egress api.github.com -- node -e "fetch('https://api.github.com/zen').then(r => r.text()).then(console.log)"

    For a command that starts with npx, sandboxrouter run adds registry.npmjs.org to a list that doesn't already cover it.

  • API: "spec": { "network": { "egress": { "mode": "allow", "allow": [{ "domain": "api.github.com" }, { "domain": "*.npmjs.org" }] } } } on a create, or in a PATCH.

  • Files: list hosts under egress: in an MCP server file.

A sandbox created with every destination stays on its provider's open network, and one created with a list on its fenced one, so a later change reaches at most what that network admits.

What a list allows

  • A sandbox with a list reaches its destinations over HTTP and HTTPS. With every destination, it reaches any host on any port.

  • A list never reaches an IP address, localhost or an internal name, and reaches only hosts under these top-level domains: .ai, .app, .au, .biz, .br, .ca, .cc, .ch, .cloud, .cn, .co, .com, .de, .dev, .edu, .es, .eu, .fr, .gg, .gov, .in, .info, .io, .it, .jp, .kr, .ly, .me, .net, .nl, .org, .page, .pl, .run, .se, .sh, .so, .tech, .tv, .uk, .us and .xyz.

Owners and operators can change a sandbox's outbound access; everyone in the workspace can read it. The bytes a sandbox on Native sends to the destinations it's allowed to reach bill as egress; see pricing.

Port URLs

A sandbox's ports are served by its provider. Ask for a port's URL while the sandbox runs: Get URL on the sandbox's page, sandboxrouter sandboxes port build-agent 3000, or GET …/sandboxes/<name or uid>/ports/3000, which answers { "port", "url", "headers", "expiresAt" }. Sandbox Router doesn't sit in between: who can open a URL is up to the provider, which may answer only requests that carry its own credentials for the sandbox, the headers, which a key with sandbox:execute alone reads and which lapse at expiresAt; keep them secret. E2B and Daytona give each port a URL; Native and Freestyle give none, and the request says so.

A request to a URL goes to the provider: Sandbox Router doesn't bill it.

Snapshots

A snapshot is the provider's own copy of a sandbox, its memory too where the provider keeps memory, kept until you delete it, even once its sandbox is gone. It has a name, as a sandbox does: yours, or one Sandbox Router makes. A provider without snapshots refuses them.

Snapshots are taken of a running sandbox. Choose Take snapshot on the sandbox's page, which lists the sandbox's snapshots, or:

shell
sandboxrouter snapshots create build-agent --name build-agent-nightly
sandboxrouter snapshots list --selector sandboxrouter.io/sandbox-uid=<sandbox uid>
sandboxrouter snapshots delete build-agent-nightly
sandboxrouter sandboxes run --name build-agent-2 --snapshot build-agent-nightly

In the API, POST /v1/namespaces/$NS/sandboxsnapshots with { "metadata": { "name": "build-agent-nightly" }, "spec": { "sandboxRef": { "name": "build-agent" } } } takes one; GET …/sandboxsnapshots lists them, ?labelSelector=sandboxrouter.io/sandbox-uid=<sandbox uid> one sandbox's, and DELETE …/sandboxsnapshots/<name or uid> deletes one. A create with "spec": { "from": { "snapshotRef": { "name": "build-agent-nightly" } } } restores it, on its own provider and account, at the snapshot's own size unless it asks one. See Snapshots in the API guide for the object, and what each request answers and refuses.

What a snapshot keeps is its provider's: E2B's keep the sandbox's memory and processes unless you ask for its disk alone ("includeMemory": false); Freestyle's always keep them; Native's and Daytona's keep its disk alone; Maritime takes none. A snapshot's status.state is its provider's: Pending while the provider still makes it (Daytona's can take a while), then Ready. A Daytona snapshot unused for two weeks is Inactive, and a restore renews it first. A snapshot its provider could not make is Failed, and one it ended on its own Expired, each with why in status.message, until you delete it. Native's snapshots expire 30 days after their last use, and each restore renews one; deleting one removes it at once, and Native ends it on its own.

Delete a sandbox

Choose Delete in the sandbox's row menu in Sandboxes, run sandboxrouter sandboxes delete build-agent, or send DELETE …/sandboxes/<name or uid>. Deleting a sandbox removes it for good; its snapshots stay until you delete them. Deleting a sandbox that hosts an MCP server deletes the server too. Deleting one a workflow keeps between runs fails a step running in it; the workflow's next step on it creates it again.

List sandboxes

The console's Sandboxes page lists every sandbox of the workspace, those hosting MCP servers too, with filters by state and a search by name, image or label.

shell
sandboxrouter sandboxes list --selector team=web

GET /v1/namespaces/$NS/sandboxes answers a SandboxList, newest first: { "items": [...], "metadata": { "continue" } }; pass metadata.continue back as ?continue= for the next page, until it is absent. ?limit= sets the page size, and ?labelSelector=team=web keeps the sandboxes whose labels match. The list catches up within seconds: a new sandbox shows once Sandbox Router hears it started.

A web browser

With the Browser connector, the AI tools in a sandbox that names it get a web browser. A sandbox started for a user signs in to websites with that user's logins, and one without a user with your workspace's; the AI never sees their passwords, codes or passkeys.

  • Its browsers run outside the sandbox, so the sites they open needn't be among its outbound destinations, and they take nothing of its size.

  • A file a browser tool reads or writes, such as an upload or a screenshot, is a file of this sandbox, relative to /workspace.

  • Its browsers close when it stops or is deleted, and the next tool after a start opens a new one.

  • Browser time bills apart from the sandbox's own (see Browser time).

Limits

A workspace has no vCPU or memory quota: its balance and its providers' own limits bound the sandboxes it runs. These are the limits per sandbox and per command.

LimitValue
Command1 to 32 arguments of up to 512 characters each
Command time limit1 second to 2 hours (24 hours detached)
Standard input64 KiB
Variables64, values up to 4,096 characters
Outbound destinations32
Connectors32
Labels16, with those Sandbox Router keeps
Idle stop5 minutes to 4 hours