oxagenDocs
Agent

Oxagen cloud sandboxes

Run each sandbox on Oxagen's own cluster and pay for it by the minute from the credit wallet.

An agent that runs in a sandbox needs a machine someone pays for, and a second cloud account means a second bill to reconcile. Oxagen cloud runs every cloud environment's sandboxes on Oxagen's own cluster. You pick a size, and each minute a sandbox runs comes out of your organization's credit wallet, on the same invoice as the rest of your Oxagen spend.

Oxagen cloud is on the Team and Business plans. The Billing page lists what each plan includes.

How to add a cloud environment

Select Add cloud environment on the Environments page under Equipment, and pick a size. An organization Owner or a workspace Admin can. Agent sandboxes covers the rest of the setup.

From an agent or the CLI, call create_sandbox_runtime with hostOperator set to oxagen and the vCPU and memory of one size below, or setup_sandbox_runtime with a size. oxagen sandbox runtime create --size xlarge does the same from a terminal.

What each size costs

Each size has fixed CPU and memory. Small, Medium and Large start on a 20 GiB disk that grows as the work fills it, and XL starts on 100 GiB. XL is for large monorepos, whose checkout, dependencies, and build cache outgrow 50 GiB and whose builds run out of memory on 16 GiB. Prices are the list prices. An organization with a negotiated price sees its own price in the size picker.

SizevCPUMemoryDiskPer minutePer hour
Small24 GiB20 GiB, grows to 100$0.03 (3 credits)$1.80
Medium48 GiB20 GiB, grows to 100$0.05 (5 credits)$3
Large816 GiB20 GiB, grows to 100$0.09 (9 credits)$5.40
XL1664 GiB100 GiB$0.25 (25 credits)$15

How a disk grows

A disk with less than 10 GiB free grows in place to the next size, from 20 to 50 GiB, then to 100 GiB, while the run keeps working. The sandbox reports its disk the moment it drops under 10 GiB free, so the disk grows before a fast write fills it. Nothing restarts, and no file moves. A grown disk costs nothing more: the price is the size's, whatever disk it holds. A disk grows one step at a time and never shrinks. When Oxagen cloud has no room for the bigger disk, it asks again every 15 seconds, and a disk that fills before then makes the agent's writes fail, as a full disk does on any machine. A run that resumes or moves to a new sandbox starts on the disk it grew to.

A disk grows only on a template built at base layer 1.16.0 or later, whose sandboxes report their disk. A sandbox on an older template starts on 50 GiB, as every Small, Medium and Large did before, and its disk does not grow. The template moves to the new base layer at its next build, which a launch queues on its own.

A sandbox may show fewer CPUs than its size gives it to tools that read the count directly, such as nproc and Node's os.availableParallelism(), while it still runs on all of them. OXAGEN_CPUS carries the real count. The agent also gets GOMAXPROCS, CARGO_BUILD_JOBS, RUST_TEST_THREADS, PYTEST_XDIST_AUTO_NUM_WORKERS and PYTHON_CPU_COUNT (Python 3.13 and later) set to it, unless your image or runtime already sets one. make and cmake stay serial unless asked, so run make -j"$OXAGEN_CPUS". For Jest or Vitest, pass --maxWorkers=$OXAGEN_CPUS.

One credit is $0.01. The credits your plan includes each month pay for sandbox minutes first, and bought credits pay the rest. There is no separate allowance of minutes.

A sandbox keeps the price it launched at. A price change reaches the next sandbox, not one already running.

Model calls are separate. The model credential the run uses decides who pays for them, as Agent sandboxes explains.

How minutes are charged

A run that sits in a sandbox for an hour on a Small size costs 180 credits. Oxagen collects them as the sandbox runs, not all at the end:

  1. At launch, the wallet must hold a positive balance that covers the first 10 minutes at the sandbox's size: 30 credits for Small, 50 for Medium, 90 for Large, and 250 for XL. A launch with less is refused, and nothing starts.
  2. While it runs, Oxagen charges each 15 minutes the sandbox has run. When it ends, Oxagen charges the rest. Each second is priced exactly and the total rounds up to a whole credit, so a sandbox pays less than one cent over its exact price.
  3. When a charge empties the wallet, Oxagen tries your auto top-up once. If no credits land, Oxagen saves the sandbox's disk, stops the sandbox, and the run waits. It costs nothing while it waits. The Console shows a card that asks for a top-up. Once the wallet covers 10 minutes again, the run continues in a new sandbox from the saved disk. A run that waits more than 7 days ends.

Who pays for which minutes:

  • A sandbox that ran and ended pays for every minute it ran, whether it finished or failed.
  • A sandbox that never started pays nothing.
  • A sandbox Oxagen lost, because its host stopped reporting, pays nothing. Oxagen refunds every credit it charged for it.
  • A run waiting out a model usage limit keeps its sandbox, CPU and memory, so those minutes are charged. The Run page lists them on their own line.

Each charge also counts toward agent budgets, a mandate's limit on one run, and each automation rule's daily cap, the same as model spend. Billing statements list Cloud sandbox compute in minutes.

Where to read the minutes

  • Run page. The run's price includes its compute. Run details lists the compute minutes, and the minutes spent waiting out a usage limit beside them.
  • Spend. The Spend report shows a Cloud sandbox compute line with the minutes billed and their cost.
  • API and MCP. get_sandbox_spend answers the minutes billed and their cost for each cloud environment (docs/capabilities/spend.sandbox.get.md).

What an Oxagen cloud sandbox cannot do

  • No Docker inside. The cluster refuses privileged containers, so a sandbox cannot start Docker. A template that needs a database runs it as a service instead.
  • A pause drops memory. Oxagen saves the disk, not the processes. A run that continues after a pause starts its harness again from the session it saved on disk.
  • 24 hours at most. One sandbox lives 24 hours. A run with time left continues in a new sandbox from a saved disk. Oxagen keeps each saved disk for at most 48 hours, two sandbox lifetimes.
  • One region. Every sandbox runs in us-east4, in Virginia.
  • Oxagen's gateway only. A sandbox reaches Oxagen's gateway and nothing else, so a cloud environment takes no list of extra hosts. The gateway reads packages from npm and browser builds from Playwright's CDN for the sandbox, so pnpm install, npm install and playwright install work. It sends no write to either, so npm publish fails. A runtime that sets npm_config_registry keeps its own registry, which the sandbox cannot reach.
  • No GPU. No size has a GPU.

While Oxagen cloud is new, it runs a limited number of sandboxes at once across every customer. A launch past that limit waits in the launch queue with the state Queued and costs nothing. Oxagen starts queued runs oldest first as sandboxes end, so you never launch again.

On this page