Agent sandboxes
Add a cloud environment on Oxagen cloud, and launch, open the terminal of and stop runs that each get their own sandbox.
Agent sandboxes depend on an entitlement your plan grants.
An agent sandbox is a small isolated machine that holds one run. A cloud environment gives each run its own sandbox on Oxagen cloud, Oxagen's own cluster. A run on one is a sandbox run.
What each side bills
Oxagen charges the credit wallet for each minute a sandbox runs, at its size's price. Oxagen cloud sandboxes lists the sizes and when each charge happens.
A sandbox run uses the model credential you add in step 2, so your model provider bills the model calls and Oxagen forwards no bill. Oxagen counts the run's agent actions against your workspace's monthly allowance. Past the allowance, each 10 actions cost 1 credit from the wallet. Your plan sets how many cloud environments a workspace holds.
The minutes and their cost show on Spend. See Read the minutes billed.
1. Add a cloud environment
On the Environments page under Equipment, select Add cloud environment. An organization Owner or a workspace Admin can.
A cloud environment holds:
-
The harnesses its runs can use. Choose one or more supported harnesses during setup. Each environment counts once toward the plan limit.
-
The template every sandbox starts from. It is a registry image, a Dockerfile in a connected repository, or an image pinned by its hash. A hash is a short code made from the image's content, and any change gives a different code. Oxagen queues a build. No run can start until a build is ready.
-
The size of each sandbox, from Small to XL, each with fixed CPU and memory and a disk that grows as the work fills it, at the hourly price the form shows. Oxagen cloud sandboxes lists every size.
-
No list of hosts. A sandbox reaches Oxagen's gateway and nothing else.
-
Secrets from, the environment whose variables and secrets enter the sandbox. A runtime that names none uses the workspace's default environment.
-
An optional run limit. A run older than it stops.
Containment is always on. See create_sandbox_runtime (docs/capabilities/sandbox-runtime.create.md).
To skip the settings, run oxagen sandbox runtime setup, or ask a coding agent to call setup_sandbox_runtime over MCP. It writes a template from the workspace's linked repositories into the steering repo, or a starter template when they give it nothing to build from, and uses the public ubuntu:24.04 image when the workspace has no steering repo. A workspace that already has a cloud environment gets that one back. See Setup from a coding agent.
2. Add a model credential
A run calls its model with your own credential. Add one that serves the harness you plan to launch:
- Claude Code: an Anthropic API key, or a Claude subscription login.
- Codex: an OpenAI API key. Oxagen stores a ChatGPT login, but Codex runs don't use one yet.
- Stella: an Anthropic API key. Stella in a sandbox sends every model call to Anthropic, so an OpenAI key alone lets the launch through and its first model call is refused.
There are two kinds of credential.
An API key serves a harness through its provider. Oxagen asks for the secret at a hidden prompt, or reads it from stdin.
oxagen credentials add --provider anthropicA subscription login uses your Claude or ChatGPT plan. It names the harness it serves: claude-code or codex.
oxagen credentials add --type subscription --harness claude-codeYou can also add either in the app. Open the Account menu in the top bar and choose Credentials. This page calls that place Account › Credentials. Select Add credential, then choose the harness, the kind and the provider. The gateway attaches the credential to your runs only. It never enters the sandbox. Without a credential for the harness, a launch is refused and says so.
A credential belongs to you, not to the organization you added it in. Save it once, and your runs use it in every organization you work in. Account › Credentials shows the same list in each one, and removing a credential stops it everywhere.
When a provider refuses a credential, the gateway sends the same call on your next one before the harness sees the refusal. A credential that is out of usage waits for its reset. One whose token the provider says expired or was revoked, or whose account it says is blocked for billing or suspended, needs repair, and your runs skip it until you repair it. The Console shows the account to you, or to the workspace's Admins and the organization's Owners for a workspace account. Fix the account at the provider, then run oxagen credentials check <credential>: the provider is asked once, and when it accepts the credential, the runs that waited on it continue. You can also resume the credential with oxagen credentials update <credential> --resume, rotate its key, or remove it and add it again. When the last credential tried is one of those, the harness reads one refusal, credentials_exhausted, that names each credential by its last four characters and what the provider answered. Save a working login or API key with oxagen credentials create, then retry.
oxagen keys is the same command as oxagen credentials, so oxagen keys add works too.
Model key rotation
Rotating a key replaces the secret behind one of your API keys. The credential keeps its ID, its name, its status and its place in the order your runs try credentials in. Only an API key can be rotated. A subscription login has no key to replace, so add the new login, then remove the old one.
In the app:
- Open Account › Credentials.
- On the key's row, select Rotate key. The panel names the key it replaces, such as "This replaces the key of Work, which ends 1a2b."
- Paste the new key into New API key.
- Select Rotate key. To leave the old key in place, select Keep current key instead.
The tab then says "Rotated. Your runs use the new key from their next model call." The row shows the new key's last four characters and when you rotated it, such as "Key rotated Oct 14, 2026, 4:51 PM".
From the CLI:
oxagen keys rotate <credential><credential> is the credential's ID, which starts with vlt_. Run oxagen keys list to see your IDs. The CLI looks up the credential, names it, and asks before it reads the new key:
Rotate the anthropic key "Work" ending 1a2b? Your runs use the new key from their next model call. [y/N]Answer y, then paste the new key at the hidden prompt. The CLI prints the key's new last four characters. A pipe can't answer the question, so pass --yes to pipe the new key in:
oxagen keys rotate vlt_… --yes < new-key.txtWithout --yes, a piped key is refused and nothing changes. oxagen keys list shows when each key was rotated in its ROTATED column.
Either way, your runs use the new key from their next model call. Oxagen keeps no copy of the old key, so revoke it at your provider once the rotation is done. Rotating keeps an "Out of usage" mark, because your provider counts usage per account, so a new key for the same account starts no new allowance. It clears a problem the provider named with the old key, such as a revoked key, and your runs try the new key on their next call. A rotation made from the CLI sends you an email and a notice in the app. See rotate_model_credential (docs/capabilities/rotate_model_credential.md).
Keys for your own endpoint
You can keep an API key for your own server that answers in OpenAI's format, along with the https address it answers on. Sandbox runs don't use such a key yet, because the gateway doesn't send model calls to your own server. Oxagen stores the key until it does.
In the app:
- Open Account › Credentials and select Add credential.
- Under Harness, choose Codex or Stella. The form doesn't offer your own endpoint for Claude Code.
- Under Kind, choose API key.
- Under Provider, choose OpenAI-compatible.
- Enter your server's address in Base URL, such as
https://llm.example.com/v1. - Paste the key into API key and select Save credential.
The row shows "Endpoint" and the address, and its status reads "Not in use yet".
From the CLI:
oxagen keys add --provider openai_compatible --base-url https://llm.example.com/v1Only --provider openai_compatible takes --base-url. The address must start with https://. Oxagen sends your key to it, so it refuses an address on a private network and an address with a username and password in it.
A launch whose only credential for the harness is a key for your own endpoint is refused. For Codex, add an OpenAI API key. For Stella, add an Anthropic or an OpenAI API key.
3. Launch a run
A run always starts on your own agent. Your first launch on a runtime enrolls one for you.
On the web: on the Runs page, select Launch run. Choose the harness, the runtime, the target repository and the branch. Then pick what the run starts on:
- Size: Small, Medium, Large or XL, each with your organization's price an hour. The cloud environment's own size comes preselected.
- Model tier: the tier the harness calls, from your organization's tiers with a model for that harness. Your organization's default tier comes preselected.
- Effort: how hard the harness works on each step, for a harness that takes one. Harness default comes preselected.
A work order brings its own environment, tier and effort, so its launch shows none of the three. Then choose how to start:
- Prompt: the run starts headless with your task.
- Work order: the run takes its repository and Done Checklist from the order.
- Open terminal: the run starts interactive.
Select Launch. The run first shows Starting, then Running.
From the CLI:
oxagen sandbox run --harness claude --workspace-slug <slug> --repo <owner/name> --prompt "Fix the failing test"In the CLI, --harness takes claude, codex or stella. --branch picks the branch, --runtime picks the runtime when the workspace has several, and --work-order <id> runs a work order in place of a prompt. --size takes small, medium, large, xlarge or xxlarge, --model-tier takes a tier's slug, such as standard, and --effort takes one of the efforts the harness takes. A work order runs on the tier and effort its send recorded, so leave out --model-tier and --effort with --work-order.
Every linked repository in each run
An agent fixing the API often needs the shared library's types or the web app's callers. So each run checks out every code repository the workspace links, not only the one you named. The repository the launch or the work order names is the target: the run clones it on its branch, and the agent starts there. The others follow on their default branches, in the order the Repositories page lists them, and the Launch run dialog lists them under Included repositories.
Each repository sits at the same path in every run, whichever one the run targets:
| Repository | Folder in the sandbox |
|---|---|
acme/api on GitHub | /workspace/acme/api |
acme/platform/shared on GitLab | /workspace/acme/platform/shared |
A setup script or the agent can name a sibling by that path. The run can push to each repository it checked out. Each push uses that repository's credential and follows the same mandate and forge branch rules as a push to the target. A repository linked after the run starts is outside its scope. Steering repositories stay outside the checkout. Pull requests opened in each repository appear in the run's Changes panel.
A runtime checks out every repository once its template builds on base layer 1.7.0 or later. That build verifies that the launcher can route Git for every checkout. Until then new runs keep the one repository at /workspace. Rebuild the template on the Environments page to move a runtime over.
A Codex run needs an environment that lists Codex and a template that supports it. The base layer pins its binary and managed hooks. Model calls and MCP requests go through the sandbox gateway; the harness receives no model credential. An interrupted headless run resumes its saved session.
A runtime runs Stella once its template builds on base layer 1.5.0 or later. A build today installs Stella 0.9.523 and pins Oxagen's hooks for it beside Claude Code's. Until then a Stella launch is refused with template_lacks_harness, and nothing starts. A Stella run asks for Claude Fable 5 through the sandbox gateway. A variable on the runtime whose name starts with STELLA_ is dropped, so the runtime cannot point Stella's calls somewhere else or swap the hooks. Stella never trusts the checked-out repository, so it loads none of the repository's own Stella hooks, MCP servers, rules or memories.
A Stella run with a prompt or a work order continues only the session it names, with stella run --resume <id>. On a template built on base layer 1.13.0 or later, a Stella run stopped by its accounts' limits waits like any other run, then goes on in its own session, and a run that reaches its sandbox's 24-hour limit moves to a new sandbox. On an older template it fails at either point instead. An interactive Stella run reopens its session with stella resume.
Oxagen checks a launch before it starts a sandbox. A refused launch says why and names the fix. Troubleshooting lists every reason a launch is refused and every way a run can fail to start. See launch_sandbox_run (docs/capabilities/sandbox-run.launch.md) and the CLI commands.
Send a batch of work items
On the Ready tab of Work, select up to 50 approved work items. Open the Send to agent menu and choose Send to cloud environment. The choice stays disabled until an agent in the workspace runs on a cloud environment. Pick one of your agents on a cloud environment and add steering if you want. Each item gets its own sandbox run on that agent's runtime.
Every item of a batch starts at once, each in its own sandbox on the same agent. Oxagen sends five launches at a time. Oxagen cloud caps how many sandboxes run at once across every organization, and your plan caps how many your organization runs at once. An item that meets either cap gets its run in the state Queued, and Oxagen starts it, oldest first, when a sandbox ends. An item whose launch must wait, such as while the runtime's template build is not ready, starts on a later pass, about 15 seconds later. An item that cannot be sent is listed as refused with its reason, and the rest go out. The batch page lists each item with its state, running time, estimate and an Attach to the run link. See send_work_orders (docs/capabilities/work.orders.send.md).
Items sent to an agent on a runtime that is not a cloud environment go as one run instead. See send_work_batch (docs/capabilities/work.batch.send.md). A sandbox run cannot take an order from that kind of batch.
4. Open the run's terminal
Only the operator who launched a run can open its terminal or stop it. The terminal shows the harness's own screen inside the sandbox, in the folder the run cloned its repository into, /workspace.
- Web: open the run and select Open terminal on its Sandbox panel. The terminal opens in a drawer over the Run page and starts by watching the agent.
- CLI: run
oxagen sandbox attach <run> --workspace-slug <slug>. You can exportOXAGEN_WORKSPACEinstead of passing the flag. Press Ctrl-] to detach.--watchonly reads the screen.
Take control
An agent that started from a prompt or a work order is still working when you open its terminal. Typing into its session then would mix your keystrokes with its work. So Take control pauses the run first, and your keystrokes reach the sandbox only once the run reports the pause. Until then the terminal says it is waiting, and the relay sends on nothing you type. While the run is paused, the agent's tool calls are denied and its model calls refused. Use the terminal for your own commands, then select Resume the run to hand it back. oxagen sandbox attach without --watch pauses the run the same way.
Closing the drawer, detaching, or losing the connection changes neither the pause nor the run. A run you paused stays paused until you resume it from the drawer or the Run page.
One session holds a run's keyboard at a time. A second session that asks for control, in another tab or from the CLI, is refused until the first hands control back or closes. A session that closed without saying so frees the keyboard within ten minutes.
A run you launched with Open terminal and no prompt has no agent working in it, so Take control types at once and pauses nothing.
If the connection drops, the terminal reconnects and replays the output it missed. The web terminal stops trying after five minutes and says the process state is unknown, with Reconnect the terminal. The CLI tries five times, about 15 seconds in all. The run may still be going, so open the terminal again.
When a run ends, its drawer shows how it ended and no live terminal.
Sign in to a tool from the terminal
A command in the sandbox that wants you to sign in, such as gh auth login or aws sso login, cannot open a browser in the sandbox. Use the tool's device-code sign-in instead: it prints a web address and a short code, you open the address in your own browser and enter the code, and the command in the sandbox finishes on its own once you approve.
- Take control of the run.
- Open a shell window in the session: press Ctrl-b, then c. Commands in this window are not the agent's, so the run's record does not hold their output.
- Run the tool's device-code sign-in, for example
gh auth login --weboraws sso login --profile dev --use-device-code --no-browser. An AWS profile must already be set up withaws configure sso. - Open the address it prints in your browser, enter the code, and approve.
- Close the shell window with
exit, then select Resume the run.
The sign-in lasts as long as the sandbox, and it reaches no other run. Oxagen keeps no terminal output: the relay holds the screen in memory for one session and drops it when the session ends. Oxagen adds no sign-in page of its own and no browser inside the sandbox. To give every run a model key, add a credential in Account › Credentials, as in step 2.
To end a run, select Stop the run or run oxagen sandbox stop <run> --workspace-slug <slug>. The sandbox ends at once, and anything the harness has not pushed is lost. A run also ends when the harness exits.
5. Paused runs
A sandbox that sits idle still holds its machine, its disk and a slot of your plan, and the wallet pays for every minute. So Oxagen pauses it: it saves the sandbox's disk, stops the sandbox, and frees its slot, and the wallet pays nothing while the run waits. The Run page says the run is paused and why. When the run resumes, it starts in a new sandbox from the saved disk, with the same files, and the harness reopens its session by its ID, as after a move to a new sandbox below. Processes the agent started before the pause are not running there, and a headless harness is told so.
Oxagen pauses a run when:
- nothing arrived from it for its cloud environment's idle time, 10 minutes by default, and nothing is in flight: no tool call between its start and its end, no model call, and no question waiting on a person. Work in flight for an hour counts as stuck, not busy. An open terminal keeps the sandbox up for up to an hour. A sandbox on a template built before base layer 1.15.0 cannot say what is in flight, so it pauses after 30 minutes with nothing from it.
- every model account it may use is out of usage for 15 minutes or more, or needs repair. A shorter wait keeps the sandbox, because the harness waits it out itself.
- a question it asked goes unanswered for its idle time. Your answer reaches the resumed session as its next turn, not as the result of the tool call that asked. A question that expires with no answer resumes the run too, and the agent reads that nobody answered.
- you select Pause run on the Run page, or run
oxagen sandbox pause <run> --workspace-slug <slug>.
A pause takes a few minutes to save the disk. A steer, an answer, a terminal you open, new work from the agent, or Resume run during those minutes keeps the sandbox running, and the pause does not happen.
A paused run resumes when you select Resume run or run oxagen sandbox resume <run>, when you send it a steer or answer its question, when you open its terminal, and when one of its model accounts is free again. A steer or an answer waits for the resumed run for up to 7 days. A resume waits for a free slot, the wallet's first 10 minutes and room on Oxagen cloud, and it goes before any run waiting in the launch queue. A resume whose sandbox fails to start tries again 5 minutes later, then 10, and the run ends after the third failed try, its Ended row saying why. Oxagen keeps a paused run's disk for its cloud environment's retention, 7 days by default. A run still paused after that ends, and its Ended row reads Its snapshot expired.
A headless run on a harness that cannot reopen its session in a new sandbox is never paused: Stella on a template built before base layer 1.13.0. Stopping it would lose its session, so it stops only after a day with nothing from it, or its cloud environment's idle time when that is longer, and its Ended row reads Ended when idle.
A sandbox that several agents share by taking turns is never paused either, because the agent that hands out the turns runs inside it. When it sits idle that long, it stops the same way. When its wallet runs dry, it ends, and Oxagen keeps its disk for a review to start from.
6. Runs longer than 24 hours
A sandbox ends after 24 hours. A run that pauses before then starts its next 24 hours when it resumes.
A run with time left continues in a new sandbox. Within 15 minutes of the limit, Oxagen saves the sandbox's disk and starts a new sandbox from it. The harness resumes its session from disk. The run page shows which sandbox you are on. Oxagen keeps each saved disk for at most 48 hours, two sandbox lifetimes, and deletes it when the run continues again or ends. A new sandbox that does not match Oxagen's record stops the run as failed.
When Oxagen cloud has no room for the new sandbox, the run keeps working in the one it has and Oxagen asks again on each pass. With 8 minutes left, it pauses on its saved disk instead, so the work survives the end of the old sandbox. The Run page reads Paused until Oxagen cloud has room for its next sandbox. The run starts again on its own as soon as there is room, before any run waiting in the launch queue, and the harness is told its sandbox moved.
The sandbox keeps the ID each harness gives its session in a folder only root can read, on the same disk as the session's files, so the saved disk carries it. In the new sandbox the harness reopens that session by its ID:
| Harness | Headless run | Interactive run |
|---|---|---|
| Claude Code | claude --resume <id> --print | claude --resume <id> |
| Codex | codex exec resume <id> | codex resume <id> |
| Stella | stella run --resume <id> | stella resume <id> |
A headless Stella run gets no prompt, so Stella finishes the turn it was in when the sandbox moved. When that turn had already finished, Stella refuses the form without a prompt, and the sandbox runs stella run --resume <id> -- <prompt> so the prompt becomes the session's next turn. Stella also refuses before it starts when another process holds the session or the run cannot start, such as with a missing credential or an MCP server it cannot reach, and gives those the same exit code. The sandbox then tries the second form too, which calls no model, and a run that both forms refuse ends with the reason that Stella could not continue its session.
Because the harness reopens its own session by ID, a session someone else opened in the same sandbox, such as one you started in the terminal, does not take its place. After /clear in Claude Code or Codex, the sandbox keeps the new session's ID. When the sandbox kept no ID, as on a template built before base layer 1.13.0 or when the harness named no session it can resume, Claude Code runs claude --continue and Codex runs --last, which reopen the newest session in the folder. Claude Code also runs --continue when the kept session's transcript is gone. A headless Stella run with no kept ID, or one Stella refuses to continue, ends, and the Run page says why. Build the template again to move a runtime over.
An open terminal closes at the switch. Open it again.
7. Runs that hit a usage limit
A run on a Claude subscription can hit its five-hour or weekly limit partway through a task. Oxagen moves the call to the next account the run may use, in the order the launch showed. When every account is out of usage, the run waits instead of failing. The Run page shows Waiting for account limits and the time in your zone when the next account resets. When it resets, the sandbox continues the harness's session from where it stopped, and steps it finished do not run again. The harness reopens that session by its ID, as it does after a move to a new sandbox. A template built before base layer 1.13.0 reopens the newest session instead, and a headless Stella run there fails at its first wait.
- A limit with no reset time is tried again 30 minutes after the refusal.
- An account that is waiting for its reset is not asked again until then, and waiting uses no retries.
- A run gets its first pass through the accounts and six retry rounds. A round ends when every account it may use has refused once. After the last round, the run fails and the Run page shows Account limits exhausted.
- An account whose provider says it is expired, revoked, blocked for billing or suspended leaves the run's accounts. When none is left, the Run page shows Needs account repair. Fix the account, then resume the credential with
oxagen credentials update <credential> --resume, rotate its key, or remove it and add it again, and the run continues. - While a wait is shorter than 15 minutes, the sandbox keeps running, so the credit wallet pays for that time, and the Run page lists those minutes on their own line. A longer wait pauses the sandbox, as Paused runs above says, and the run resumes once an account is free. The runtime's run limit and the 24-hour switch above still apply.
A runtime whose template was built before this behavior shipped ends a run at its first refused call. Build the template again to get it. See get_sandbox_run (docs/capabilities/sandbox-run.get.md).
8. Fix sends on a pull request
A review that asks for changes usually lands after the run that opened the pull request has ended. Starting the fix from nothing means cloning the repository again, installing the packages again, and a harness session that has never seen the code it wrote. So a run that exits while its pull request waits for review keeps its sandbox's disk.
When a headless run exits cleanly, its pull request is open, and its send has not ended, Oxagen saves the sandbox's disk before it stops the sandbox. The saved disk holds the checkout, the installed packages, the build cache and the harness's session. Oxagen keeps it for the cloud environment's retention, 7 days by default, and deletes it sooner once the pull request merges or closes.
A fix send on that pull request starts from the saved disk when it matches the run that left it: the same pull request, the same repository and the same repositories beside it, the same person, the same agent and harness, and the same template build. The match counts a send of the work item whose earlier send opened the pull request, and a run sent to the pull request from the Repositories page. The harness reopens the session the last run left, and the fix's prompt is its next turn. The Run page reads Continued from the last run on this pull request. The fix send waits in the launch queue for a slot and room like any run, and keeps the saved disk while it waits.
Each send keeps its own run, its own minutes and its own link to its work. A fix send starts fresh when nothing matches, when the saved disk expires within the hour, or on a template built before base layer 1.15.0. It also starts fresh, with no failure, when the saved disk is gone by the time it starts, or when the harness cannot reopen the last run's session there. A run on a sandbox that several agents share keeps its disk for a review instead, as Paused runs above says.
Read the minutes billed
get_sandbox_spend answers, for each cloud environment, the runs that ended, their running hours, the minutes Oxagen billed and their cost. Read it through the API or the MCP tool of the same name. The Spend report adds the minutes and the cost up across the workspaces in view, in its Cloud sandbox compute panel.
- Oxagen counts a sandbox's minutes once it ends. A running sandbox counts under Running now.
- Each started minute counts, at the price the sandbox launched at.
See get_sandbox_spend (docs/capabilities/spend.sandbox.get.md).
Limits of the first release
- Oxagen cloud is the only host. The other hosts in the contracts are refused.
- A sandbox cannot run Docker inside it.
- The feature depends on an entitlement your plan grants. Operators of a self-hosted deployment also set the gateway host a sandbox is pinned to. See the
SANDBOX_REQUIRED_HOSTSentry inENV_REGISTRY(packages/config/src/registry.ts).
Troubleshooting
A harness that won't start shows why in one of four places:
- A refused launch starts nothing, and costs nothing. The CLI prints
✗and the message from the tables below. With--json, it prints the reason ascode. The web shows a banner headed "Launch refused" with a shorter sentence for the same reason and, where one helps, a button to the page that fixes it. - A start failure is refused the same way, and Oxagen also keeps the run, marked Failed.
- A run that started can still end Failed. Open the run. The Sandbox panel shows its state, and its Ended row says why it ended.
- A batch item shows its state on the batch page, with any refusal under it.
Refused launches
| Reason | Message | Cause and fix |
|---|---|---|
agent_sandboxes_not_released | The message names the plan that lacks agent sandboxes. | Your plan doesn't include agent sandboxes. To change plan, email sales@oxagen.sh. Or run the agent on a runtime an operator enrolls. |
org_role_required | The web says "Your role does not let you launch runs in this workspace." | Only an organization Owner, a workspace Admin or a workspace Member can launch. Ask a workspace Admin for a role. |
gau_exhausted, billing_suspended, budget_exceeded | The web says "This organization has no credit left, so the run did not start. An org Owner adds credit on Billing." | The free start is used up or has expired, a failed seat payment suspended billing, or a spend budget stopped the run. To choose a plan or settle the seat payment, an organization Owner emails sales@oxagen.sh. Or raise the budget. |
budget_spent | "The "workspace monthly" budget is spent, so the run did not start. Ask a workspace admin to raise the budget." | A spend budget for the workspace or the organization is over its limit. Raise it on the Budgets tab at /{org}/{workspace}/guardrails?tab=budgets, or wait for its period to reset. |
sandbox_needs_prepay | A message that starts "This sandbox needs" and names the credits its launch and its first 10 minutes take. | The wallet can't pay for the sandbox's launch and its first 10 minutes. To add credits, an organization Owner emails sales@oxagen.sh. |
seat_payment_failed | "The seat payment failed, so new runs that spend Oxagen's credits wait until the payment succeeds. Fix the card on the Billing page." | A seat payment failed. To settle it, an organization Owner emails sales@oxagen.sh. |
dispute_debt | A message that starts "Card dispute" and names the dispute and the credits the organization owes. | A card dispute took back credits the organization had already spent. To buy credits, an organization Owner emails sales@oxagen.sh, and the purchase pays the debt first. The hold also lifts if the dispute closes in the organization's favour. |
oxagen_cloud_org_not_allowed | "Oxagen cloud sandboxes are open only to the organizations in their trial, and this organization is not one of them." | Your organization is not in the Oxagen cloud trial. Contact Oxagen support. |
oxagen_cloud_runtime_outdated | A message that starts "This sandbox runtime does not fit Oxagen cloud" and names the setting that doesn't fit. | The runtime was set up for an earlier kind of Oxagen host. Add a new cloud environment and move its agents to it. |
no_sandbox_runtime | "The product workspace has no sandbox runtime. An org Owner can add one on the Environments page." | Add a cloud environment on the Environments page, as step 1 says. |
sandbox_runtime_not_found | "The product workspace has no sandbox runtime named large. Pass --runtime with one of: default." | --runtime names a runtime the workspace doesn't have. Pass a slug the message lists. |
runtime_required | "The product workspace has 2 sandbox runtimes. Pass --runtime with one of: default, large." | Pass --runtime. The web always names a runtime, so only the CLI and the API see this. |
workspace_mismatch | "This request is scoped to the product workspace, not staging. Pass --workspace product, or call the staging workspace's address." | An API call names one workspace in its address and another in its body. Send the same workspace slug in both. |
repo_not_connected | "acme/api is not connected to the product workspace. Connect it on the Repositories page." | Connect the repository on the Repositories page, or check how you spelled it. A repository with the same name on the other forge doesn't count. When you name the forge, the message says which one Oxagen looked on. |
no_model_credential | "You have no Claude credential in Oxagen. Add one under Account, then Credentials." | You hold no credential the harness can use. Step 2 lists what each harness takes. A paused credential doesn't count, nor does one whose provider said the account needs repair. One that is out of usage still does. Add one, or resume a paused one, under Account › Credentials. |
custom_endpoint_not_used | "Sandbox runs don't use keys for your own OpenAI-compatible endpoint yet, and you have no other Codex credential in Oxagen. Add one under Account, then Credentials." | Your only key for the harness is for your own endpoint, which runs don't use yet. Add a key from the list in step 2. The web says "Sandbox runs don't use a key for your own endpoint yet." and offers a button to your credentials. |
launch_rule_denied | "The rule "No Friday runs" denies this launch. Ask a workspace admin to change the rule if the run should start." | A workspace decision rule refuses this harness, repository or runtime. A workspace Admin changes the rule. |
decision_rule_denied | "refused by decision rule "no-fridays": No Friday runs" | A workspace decision rule refuses the launch before the launch checks run. The message names the rule's ID and its description. A workspace Admin changes the rule. |
decision_rule_approval_required | "decision rule "release-runs" requires approval: Release runs need a lead." | A workspace decision rule wants a person to approve the launch first. From the CLI or the API, the message names the approval (apr_…) a person answers in Oxagen, and the same launch sent again once it is approved starts once. The web shows it as a rule refusal and opens no approval. A workspace Admin changes the rule. |
pending_approval | The web says "The launch did not go through (pending_approval). Nothing started. Try again in a moment." | An access policy holds the launch until an approver grants your request. Launch again once it is granted. |
decision_rules_unavailable | A message that starts "Current decision rules are unavailable". | Oxagen could not read the workspace's decision rules, so it started nothing. Try again in a moment. If it keeps happening, a workspace Admin checks the workspace's rules. |
template_not_ready | "The default sandbox runtime has no ready template build, so no sandbox can start on it yet. Check the build on the Environments page." | The runtime has no ready build yet, because its first build is queued, building or failed. Open the runtime on the Environments page under Equipment. Wait for the build, or fix the template and select Rebuild template. The web shows this as soon as you pick the runtime. |
template_lacks_harness | "The default sandbox runtime's template was built before sandboxes could run Stella. Build the template again on the Environments page, then launch the run." | The runtime's template was built on a base layer older than 1.5.0, which installs no Stella. Open the runtime on the Environments page under Equipment and select Rebuild template. A Codex launch needs a template built on base layer 1.6.0 or later. |
agent_sandboxes_unavailable | "Agent sandboxes are not set up on this deployment, so the run did not start. Contact Oxagen support." | The deployment has no gateway host to pin sandboxes to. On app.oxagen.sh, contact support. A self-hosted deployment sets the host, as Limits of the first release says. |
invalid_input | Such as "a work order supplies the branch, so leave it out". | The request doesn't fit a launch: an empty prompt, a work order sent with a repository, branch or prompt, or neither a repository nor a work order. The web and the CLI catch most of these before they send. |
A launch that runs a work order can also meet these:
| Reason | Message | Cause and fix |
|---|---|---|
work_order_not_found | "This workspace has no work order wo_01k5te3m8b." | Check the order's ID on the item's page. |
work_order_held_by_another_operator | "Work order wo_01k5te3m8b was sent to an agent another person operates. Only that operator can start it." | Only the person who operates the order's agent can run it. |
work_order_batch_unavailable | "Work order wo_01k5te3m8b went out in a batch that runs in one run, and a sandbox takes one order. Send the items with send_work_orders to give each its own sandbox." | Send the items with Send to cloud environment instead. |
work_order_ended | "Work order wo_01k5te3m8b has ended, so no sandbox starts for it." | Send the item again to get a new order. |
work_order_claimed | "Work order wo_01k5te3m8b is already claimed by a runtime or another sandbox run." | Another run already has the order. Open that run instead. |
work_order_not_on_sandbox_runtime | "Work order wo_01k5te3m8b was sent to an agent whose runtime is not this workspace's sandbox runtime." | The order went to an agent on another runtime, or --runtime names a different runtime from the order's. Leave out --runtime, or send the item to an agent on a cloud environment. |
work_order_harness_mismatch | "Work order wo_01k5te3m8b was sent to an agent that runs codex. Launch with that harness." | Launch with the harness the message names. |
Start failures
Oxagen records the run before it asks Oxagen cloud for a sandbox. When that request fails, the launch is refused as above, and the run stays on record as Failed, with the end reason "Failed to start or crashed". A sandbox that never started costs nothing. When the request timed out or its answer was lost, the cluster may have started the sandbox anyway. Oxagen's orphan sweep finds that sandbox and stops it within about 10 minutes.
A start Oxagen cloud has no room for, whether its cap, your plan's slots or Google Cloud's disk quota stops it, is not a failure. The run goes back to the launch queue as Queued, keeps its place, and starts when a sandbox ends.
A Small, Medium or Large sandbox starts on a 20 GiB disk, and Oxagen grows it to 50, then 100 GiB as the work fills it (How a disk grows). A run whose disk fills while Oxagen cloud has no room to grow it sees writes fail with No space left on device. Its harness reports the error, and the run fails or ends as it would on any full disk.
| Reason | Message | Cause and fix |
|---|---|---|
sandbox_start_failed | "Oxagen cloud did not start the sandbox:" followed by the reason. | Launch again, and contact Oxagen support if it keeps failing. |
Failed and stalled runs
These runs started. Open the run and read the Sandbox panel.
| State | Ended | Cause and fix |
|---|---|---|
| Starting for minutes | Not yet | Oxagen moves a run to Running when the sandbox's main process starts. It checks about every 15 seconds. A large image takes longer to start, and so does a sandbox that waits for the cluster to add a machine. A sandbox still starting 5 minutes after the run was recorded fails the run, and Oxagen stops it. It never ran, so it costs nothing. A launch that an API process left unfinished, as a deploy can, ends Failed after 10 minutes, and Oxagen stops its sandbox. Launch again if either happens. |
| Failed | Failed to start or crashed | The harness exited with an error, or Oxagen stopped the sandbox before the harness started. Oxagen stops a sandbox whose image or allowed hosts don't match its record, and one whose work order another run claimed first. Launch again. If every run on the runtime ends this way, open the runtime and select Run test build to check that the template starts. |
| Failed | Its host stopped reporting | Oxagen cloud no longer has the sandbox. Oxagen refunds every credit it charged for it. Launch again. |
| Failed, after 24 hours | Failed to start or crashed | The new sandbox for a long run didn't match Oxagen's record, so Oxagen stopped both sandboxes. Anything the harness had not pushed is lost. Launch again. |
| Stopped | Ran past the runtime's run limit | The run reached the runtime's run limit. Raise the limit on the runtime if runs need longer. |
| Stopped | The harness exited | The harness finished and exited on its own. |
| Stopped | Stopped when the wallet ran out of credits | A charge for the sandbox's minutes left the wallet at zero credits, and Oxagen could not save the sandbox's disk to wait for a top-up. To add credits, an organization Owner emails sales@oxagen.sh. Then launch again. |
Batch items
The batch page lists each item with its state. A refused item shows why under it.
| State | Cause and fix |
|---|---|
| Waiting | The item's launch must wait. Oxagen cloud or your plan has no free sandbox, the runtime's template build isn't ready, an approver has yet to grant an access request, Oxagen could not read the decision rules, or the deployment has no gateway host. Oxagen tries again on every sandbox sweep, about every 15 seconds, and starts the item once the cause clears. When one launch waits, Oxagen starts no new launch in that pass. Launches already under way still finish, so some items after the waiting one may run. Only the items the pass had not reached wait. |
| Refused | When you send, the send lists each refused item with why: it changed since you read it, it isn't ready, its Done Checklist is out of date, or a duty rule refuses it. Read the item again and send it again. When it launches, the reason reads "The sandbox run did not start:" followed by a message from the tables above. A refusal from Oxagen's own checks, which run before the launch's, reads "Oxagen refused to start the sandbox run" with the reason in parentheses. authz_denied there means an access policy denies you the launch, so ask a workspace Admin. A decision rule that denies the launch, or wants a person to approve it, refuses the item with the rule's own message, because a batch has no person to ask. Look up any other reason in the tables above. Fix that cause, then send the item again. "The sandbox run did not start: the sandbox ended before it took the order." means the sandbox failed before it claimed the order, and you can send the item again. |
| Withdrawn | A person stopped the batch, or withdrew the item's order before its sandbox started. |
| Ended | The item's sandbox run ended, or another runtime took its order. |
The whole send is refused when the agent's runtime is not a cloud environment, or another person operates the agent. Send the items to an agent you operate on a cloud environment.