Skip to content

Limits, errors, and unsupported features

Public API input limits and HTTP failure behavior.

Updated View as Markdown

These limits are enforced by the public v2 API:

Input Limit or default
JSON request body 128 KiB maximum, except early-access batch creation: 4 MiB
Early-access batches 1–500 items; up to 5 active batches per account; concurrency 1–10, default 3, subject to ordinary AI/chat limits and shared capacity; batch details
Workspaces per account 10
Sandbox capacity Personal VMs use account-specific limits across personal workspaces; organization VMs use their organization’s limits instead. Stopped VMs still count toward total-VM and declared-storage limits
Workspace name 1–80 characters and must contain a non-whitespace character
Sandbox name 1–80 characters when supplied
Sandbox size VM-only string small, large, xl or xxl; defaults to small. XL and XXL are included with Starter and for organization members; other accounts receive 403 FEATURE_ACCESS_DENIED. See size eligibility
Sandbox metadata Immutable, at most 16 string pairs; keys 1–63 characters matching ^[A-Za-z0-9][A-Za-z0-9._/-]{0,62}$, values at most 256 characters without control characters. List filters use the same limits with unique keys and exact AND matching
Automatic VM wake-up autoResume defaults to true; false makes execute, operation start and file calls on a stopped VM return 409 SANDBOX_STOPPED. Explicit start is still supported
VM root disk diskGiB: whole number from 10–30, defaults to 30; includes the OS and /workspace. Customer accounts can use only 30 for now; a smaller value returns 400 INVALID_REQUEST. Immutable; counts in full against the applicable personal or organization storage limit while stopped too
Idempotency-Key 1–255 visible ASCII characters for ordinary mutations; required to create a workspace, explicitly request vmSandbox: true, or start an operation; optional when the VM selector is omitted or when starting an existing Sandbox; successful responses replay for 24 hours. Email has a separate replay contract. Selected TCP service create/lookup instead require the same lowercase UUIDv4 operation key
VM Sandbox beta New creation is VM-only: omitted vmSandbox (or true) creates a VM; false returns 400 INVALID_REQUEST. See the four compute sizes. All default to a 30 GiB thin-provisioned root disk and have no libraries or shared volumes. blockNetwork defaults to false (outbound public IPv4 and DNS); true creates no network interface
Outbound mail TCP port 25 is blocked for all Sandboxes; connection attempts time out. Network-enabled Sandboxes can use authenticated submission on 465/587 or HTTPS mail APIs
Owner email Included with Starter and for organization members; sends only to the account’s own address. Shared app/API/MCP limits: 10 per rolling minute (failed attempts included), 100 per 24 hours and 1,000 per 30 days per account; all accounts together share a separate 500-email rolling 24-hour cap. 429 RATE_LIMITED includes Retry-After
Owner email input Non-empty subject up to 200 characters, line breaks normalized to spaces; non-empty plain-text body up to 100,000 characters within the 128 KiB JSON limit. No recipient selection or attachments
Idle VM stop By default, 30 minutes after the last API call that used the VM (what counts); app running windows and Starter Always on can suppress idle sleep. Stop it sooner with POST /api/v2/sandboxes/:id/stop
Continuous VM uptime Standard VMs request maintenance sleep after about 42 hours, even with activity; idle sleep can happen sooner. Disk and Sandbox are retained, but processes and connections stop. Starter Always on can restart compute, not ordinary processes. Selected app computers marked v2 pause instead
Stopped VM retention Free accounts only: once the owner has been away 14 days, an email warns before stopped VMs unused for 21 days are deleted. See who it applies to
argv 1–64 non-empty strings
Each argv entry 8,192 characters maximum
cwd /workspace or a path below it; defaults to /workspace
Environment 64 variables maximum; string values and valid variable names
Execution timeout 1–900 whole seconds; defaults to 120
Synchronous or retained operation output maxOutputBytes is 1–1,048,576 bytes per stream; defaults to 262,144
Operation wait 0–30 whole seconds; defaults to 30
Operation output page 1–262,144 decoded bytes; defaults to 65,536
Terminal operation retention 24 hours, including up to maxOutputBytes from each stream
File path /workspace or a path below it, without . or .. segments; 4,096 characters maximum
Log query entries 1–5,000; defaults to 1,000
Deleted Sandbox history Up to 100 newest records returned; records retained about 15 months; no compute, storage or restore controls
Deleted Sandbox logs Same 1–5,000-entry filters as current logs; available only within provider log retention, nominally about 30 days
File range read 8 MiB maximum per response; offset defaults to 0 and maxBytes defaults to 8 MiB
File write or conditional edit 8 MiB maximum complete file
Conditional file edit Complete file must be UTF-8; oldText is 1–65,536 characters and newText is 0–65,536 characters
Directory listing page 1–1,000 immediate entries; pageSize defaults to 1,000
File continuation cursor Opaque, path-bound, and 4,096 characters maximum
VM browser preview Up to three HTTP/WebSocket previews per running network-enabled VM, one per port from 1–65,535 except 9222 (reserved for browser control); starts with a one-hour deadline. Keep-open can extend it to one hour from each call. Some older VMs accept only one preview at a time
VM browser preview URL Random bearer capability; application restarts preserve the URL and current deadline, reopening only while the VM is running. Reconnect interrupted requests/WebSockets. A VM stop ends a plain link; create a new preview after restart. Public v2 supports keep-open, not always-on controls; no UDP, SSH or general ingress
VM desktop Running, network-enabled Large, XL or XXL; 1280 × 800 screen; never wakes the VM. Screenshot PNG/JPEG up to 8 MiB; one action per request; ASCII typing up to 4,096 bytes; screenshot settling 0–2,000 ms
Desktop viewer Bearer URL grants viewing and input, not read-only access; one viewer at a time. Repeated request sets expiry to one hour from the request, at most 24 hours after link creation; deployment or key revocation can end it early
Cooperative connection grant Operator-selected preview only; one nonrenewable grant lasting at most 30 seconds
Cooperative connection keys Exact client_key, ssh_key, and recipient_key formats from OpenAPI; no extra fields
Cooperative sealed envelope Base64, 80–16,000 characters
Selected TCP service grant Generally enabled for an authenticated owner of an active VM; exactly one hour from requested_at, without renewal
Selected TCP service ports 1–8 unique TCP ports from 1–65,535 in strictly ascending order; no UDP or public listener
Selected TCP service request Current Unix-second requested_at, one nonzero Tailcat client_key, one canonical base64 32-byte recipient_key, and no extra fields
Selected TCP sealed envelope Base64, 80–16,000 characters; create is not mutation-retryable, and exact lookup recovers only the original live envelope
Usage window days is bounded to 1–90; defaults to 30
Wallet transaction page 1–200 newest-first entries; limit defaults to 50; pass nextCursor as before
Wallet transaction filters Inclusive from and exclusive to RFC 3339 timestamps; kind is 1–64 characters, bucket is cash, promo, or plan; before is an opaque cursor of at most 512 characters
Sandbox cost-report window Inclusive from and exclusive to RFC 3339 timestamps; defaults to the last 30 days and can span at most 400 days
Sandbox cost detail Up to 1,000 settled runs; truncated reports omitted additional runs
Sandbox analytics resolution 60–86,400 whole seconds; defaults to 300
Sandbox analytics rate limit 30 requests per minute per account
Sandbox analytics retention 30 days
Audit event page 1–200 newest-first events; defaults to 50; opaque cursor pagination
Audit event retention GET and HEAD requests for 31 days; writes and key lifecycle events for about 15 months
Audit CSV export Up to 10,000 matching rows from the web activity view
Agent run prompt 1–100,000 characters; runs share the account’s AI allowances and simultaneous-chat limit. See agent runs
Agent run question Answers up to 12,000 characters; an unanswered question expires after about 10 minutes
Webhooks Up to 10 per account; a receiver has 10 seconds to answer 2xx; six attempts over about ten and a half hours; deliveries kept 30 days
Webhook test events and resends 30 an hour per account, shared; past it 429

Free up account capacity

These are the current hosted allowances across an account’s personal workspaces. Organization VMs use separate capacity, not these allowances:

Account Running VMs Total VMs Reserved VM disk
Free Up to 2 Up to 8, but storage holds four 120 GiB: four VMs at 30 GiB each
Holding purchased credit, or an organization member’s personal VMs Up to 3 Up to 8, but storage holds four 120 GiB: four VMs at 30 GiB each
Starter or Pro subscriber All VMs the account holds, up to 8; no separate running cap Up to 8 240 GiB: eight VMs at 30 GiB each

Starter and Pro include monthly compute credit; Pro includes all Starter features, not a larger personal VM allowance. Allow about a minute for a subscription change to reach VM admission. Higher allowances do not remove credit checks or maintenance stops. Founding Starter and Pro have different monthly compute caps; regular Starter has none. Paid plans include optional Always on mode, not unlimited capacity. Account-specific allowances can differ.

Any account can buy compute credit from Usage & billing, starting at $5. Purchased credit does not expire. Credit alone does not unlock XL/XXL, Starter’s models, a higher AI allowance or more simultaneous chats. Starter or organization membership includes XL/XXL access.

On desktop, the app’s Computers page shows total VMs and reserved storage against the account’s limits. Accounts with a separate running cap also have a Running bar; otherwise the running count appears beside VMs. Each VM reserves its full declared disk size even when stopped: a 30 GiB VM containing 2 GiB of files still counts as 30 GiB toward the storage limit.

At the VM or storage limit, the app’s New computer is disabled. If a new computer’s first start is refused, the app deletes it; it held nothing yet. A computer that never started shows Not started with the reason, and Start and Delete still work. API creation reports a full account as 429 WORKSPACE_QUOTA_EXCEEDED instead.

If the running-VM limit is full, use Stop on a running VM you no longer need, or ask the agent to stop the VM you choose. Stopping ends its processes and compute billing but keeps its disk and files; the agent follows your approval settings. MCP clients can use sandbox_stop, and HTTP clients the stop route. If storage or total-VM capacity is full, stopping does not free room. Download needed files before deleting a VM you no longer need; deletion erases its disk. A failed new allocation does not mean the VMs you already have cannot be used. See Sandbox lifecycle.

Organization VM capacity

Organization VM access must be enabled with a separately configured limit: running VMs, total VMs and declared disk across the organization’s workspaces and creators. These VMs do not use their creators’ personal VM allowance, but their creators still pay compute charges from their own wallet, which may go negative: organization VMs are not refused or stopped for lack of credit. If BoxCompute covers the organization’s VM charges, each run is recorded at $0 without a wallet debit; the VM page says Covered by the organization. Suspension and frozen billing still apply. Personal VMs still need credit and are not charged to the organization quota just because their owners are members.

429 WORKSPACE_QUOTA_EXCEEDED can mean an organization limit was reached; read the message to distinguish it from personal capacity. Stop an unneeded VM for a running limit, delete one for total-VM or disk capacity, or contact [email protected] to raise the limit; only BoxCompute sets it. Stopping does not release declared disk. Buying personal credit or switching the app’s organization view does not raise this quota. See organization ownership and admin controls.

Organization membership also includes Vault, XL/XXL and always-on previews without individual grants. Own model servers and local runners are available to every hosted account, and so is changing a VM’s size. Experimental test gateways are not included just through membership. Members get agent email and Always on schedules too, but membership alone does not include a monthly compute cap; that needs founding Starter or Pro. Leaving removes membership-based access; other subscriptions or grants can still apply. This does not make VM compute free or exempt personal VMs from credit checks.

App AI allowances

AI limits are separate from VM capacity and compute credit. In the app, the meter beside the model and Usage & billing show your usage and reset times. The Chat length ring measures conversation length, not your remaining AI allowance. A longer conversation can use more AI per message. On BoxCompute AI, a chat summarises its earlier messages at about 150,000 tokens (90,000 on Claude Haiku), where the ring is full, and then continues. Chats on your own key or endpoint use its configured context window, reserving room for the reply. If a long chat exceeds your endpoint’s limit, correct its model’s context size in Settings → Model keys and send again; your saved size overrides the server’s reported figure.

  • Free: Claude Haiku 5.5 and DeepSeek V4.1 Flash are included. Requests count toward an allowance over a rolling 24 hours, not a calendar day. Claude Sonnet 5.5 needs Starter or your own Anthropic key. Claude Opus 5.5 needs Pro, a founding Starter subscription, or your own Anthropic key.
  • Starter: Claude and Everyday AI have separate allowances. Claude Sonnet and Opus count toward Claude; Haiku, DeepSeek V4.1 Flash and other everyday requests count toward Everyday AI. Opus also has its own limit. At the Claude limit, Continue on DeepSeek V4.1 Flash can continue the same chat if Everyday AI still has room. Regular Starter’s Claude allowance is smaller than founding Starter’s and covers Sonnet only; its Everyday AI allowance is the same.
  • Pro: includes Starter’s models and features and Claude Opus 5.5, with twice founding Starter’s Claude and Everyday AI allowances. Check your account’s meter for the limits and reset times that apply.
  • Five-hour sessions: each session starts with its first request and resets fully five hours later, at the time the meter shows. It is not a rolling five-hour window. A session reset does not clear weekly use.
  • Weekly renewal: Claude, Everyday AI and Opus’s own weekly limit reset fully every seven days, at the same weekday and time, from the account’s first counted AI request. The meter and Usage & billing show the renewal date; usage no longer frees up request by request as it turns seven days old.
  • Continue when it resets: if a limit stops the agent mid-job, it can carry on in the same chat after the reset.
  • Your own model key or endpoint: the provider bills that model usage, not BoxCompute AI. Image reads and computer screenshots can still use BoxCompute’s image reader and count toward its AI allowance when no eligible reader on your own model or key is available. See image-reading fallback. VM compute still costs credit.

Scheduled prompts use the same AI and simultaneous-chat limits as interactive chats. An occurrence can be skipped when no run slot is available; a schedule does not reserve capacity or bypass credit checks.

DeepSeek double-usage offers

While DeepSeek V4.1 Flash shows 2× usage, its requests during the offer count half toward the free daily allowance and Everyday AI’s five-hour and weekly limits. The model menu shows when the offer ends; the AI usage page uses the same reduced allowance count. Requests from before the offer keep their original count.

This changes BoxCompute AI allowances, not prices: billing, credit deductions, extra AI usage and cost reports keep the real cost. It does not discount your own provider’s charges or VM compute.

See where your AI allowance went

Open Menu → AI usage in the app, or follow the link in a chat’s limit notice. Starter shows Claude and Everyday AI separately, for the current five-hour session or the current AI week, with its renewal date; free accounts show a rolling 24 hours. The page breaks usage down by model and chat run, then into Thinking, Writing, New material and Re-reading the chat. Expand a run to see its biggest steps or open its chat.

These are shares of your AI allowance and token counts, not dollar charges or VM compute spend. You can also ask the agent why did I hit my limit? for the same breakdown and a link. This app view adds no public v2, SDK, CLI or hosted MCP AI-usage reporting route or tool.

Use purchased credit past an AI limit

Subscribers and organization members can opt in to Extra usage in Usage & billing, or choose Use credit in a chat’s limit notice. When a supported AI request reaches a limit, extra usage can keep the chat going at the provider’s price plus the markup shown there (30% by default). Only purchased credit pays: monthly plan credit and granted credit never do. Free accounts cannot enable extra usage just by buying credit.

Choose a monthly spending cap; the default is $10 and it resets at the start of each UTC calendar month. The app offers preset caps. A request that reaches the cap can finish above it, so it is not an exact hard-spend guarantee. With no purchased credit or once the cap is reached, AI limits stop the chat again; add credit, raise the cap or wait for your allowance to reset. Requests paid as extra usage do not consume the included AI allowance. Turning it off stops further extra-usage requests, not charges for requests already admitted.

This app setting adds no public v2, SDK, CLI or hosted MCP billing control.

Continue a chat after its AI limit resets

If an AI allowance stops a job, choose Continue when it resets in the app. The chat shows its planned continuation time and can carry on in the same chat with its selected model even when the browser is closed. You can have up to five chats waiting at once. Each choice authorizes one run, not repeated use of future allowances: if that run hits another limit, choose again to continue.

This can spend the next AI allowance and wake a billed VM. Normal model access, compute credit, capacity and chat approval settings still apply; Ask first can pause the continued run for your approval. Later usage can push the start time back, so the displayed time is not a capacity reservation.

Choose Cancel before it starts to end the wait. Sending a message that is accepted in the chat also cancels the wait; a message refused by the limit does not. Once the run starts, use the normal Stop control. An email reports its outcome unless you stop it yourself. This app workflow adds no public v2, SDK, CLI or hosted MCP continuation control.

Handle errors

Errors include a stable machine-readable code and a human-readable error string:

{ "code": "NOT_FOUND", "error": "Sandbox not found" }

Existing integrations may continue reading error; branch on code. Clients must tolerate new codes added for compatible v2 routes.

Status Meaning
400 INVALID_REQUEST for invalid input or new gVisor creation (vmSandbox: false), INVALID_PATH for an unsafe file path, INVALID_RANGE for an invalid file offset, INVALID_CURSOR for invalid continuation, BINARY_FILE for a non-UTF-8 edit, or INVALID_IDEMPOTENCY_KEY for a missing or malformed required key
401 AUTHENTICATION_REQUIRED when no bearer key is sent, or INVALID_API_KEY for a malformed, unknown, or revoked key
402 INSUFFICIENT_CREDIT because BoxCompute credit is exhausted
403 INSUFFICIENT_SCOPE because the key lacks the required scope, PERMISSION_DENIED when an ordinary organization member names another member’s VM, ACCOUNT_SUSPENDED because its account is suspended, or BILLING_ACCOUNT_FROZEN because billing is frozen. For suspension, contact [email protected]; retries or additional scopes do not restore access
404 NOT_FOUND for an active or deleted Sandbox, owned workspace, or preview that was not found, or FILE_NOT_FOUND for a missing file
408 EXECUTION_TIMEOUT because execution timed out at the Sandbox service
409 IDEMPOTENCY_CONFLICT for conflicting key reuse, WORKSPACE_QUOTA_EXCEEDED at 10 workspaces, DESTINATION_EXISTS for a rename collision, EDIT_CONFLICT when edit text is missing or ambiguous, CURSOR_STALE when a continued file or directory changed, or SANDBOX_UNAVAILABLE at the VM’s preview limit or while that port’s previous preview is closing
412 PRECONDITION_FAILED because a file changed after the caller read it
413 PAYLOAD_TOO_LARGE because a JSON body or bounded file transfer exceeds its route limit
415 UNSUPPORTED_MEDIA_TYPE because a JSON mutation or binary file upload has the wrong media type
429 RATE_LIMITED because the account’s Sandbox analytics or owner-email limit, or the shared platform email cap, was exceeded; or WORKSPACE_QUOTA_EXCEEDED because running-VM, Sandbox-count or retained workspace-storage capacity is full
501 UNSUPPORTED_FEATURE because the Sandbox runtime does not support the operation, or owner email is not configured on this deployment
502 SERVICE_UNAVAILABLE because the Sandbox service is currently unavailable or an owner email could not be sent; retry email with its original idempotency key
503 SANDBOX_UNAVAILABLE because the Sandbox runtime, retained-log store, or preview transport is currently unavailable; preview close can also return 503 after disabling the URL when transport cleanup remains pending

Additional desktop and lifecycle errors: 409 SANDBOX_STOPPED requires explicit VM start when auto-resume is disabled; 409 DESKTOP_UNAVAILABLE requires checking VM/desktop readiness; 409 DESKTOP_BUSY means no input was sent. 502 DESKTOP_INPUT_UNCERTAIN means input may have run: inspect a screenshot rather than blindly repeating it. 403 FEATURE_ACCESS_DENIED means the requested XL or XXL size is not enabled for the account, or owner email needs Starter or organization membership. See desktop controls and owner email.

Agent runs add MODEL_UNAVAILABLE, RUN_IN_PROGRESS, AI_LIMIT_REACHED and RUN_LIMIT_REACHED; see run errors.

SANDBOX_UNAVAILABLE can also describe organization access or dedicated capacity. Read both the status and message: 403 means the organization’s VMs are not enabled or the creator is no longer a member; contact [email protected] to enable them, or your organization administrator about membership, rather than polling. 429 means dedicated capacity is full; delete an unneeded VM or try later. 503 means capacity is unavailable; try later. Switching the app’s organization view does not move existing VMs or transfer account credit, but it sets the default owner in the app’s New computer → For; see personal and organization VMs. The API has no capacity selector: a VM’s owner follows its workspaceId.

A command that exits non-zero still returns a successful HTTP response. Check result.exitCode and result.timedOut. Also check stdoutTruncated and stderrTruncated before assuming output is complete.

The official SDKs raise BoxComputeError for API responses and expose its status, stable code, message, request ID when available, and retryable flag. Network failures raise BoxComputeTransportError. A transport error does not prove whether a mutation reached the service; use idempotency keys for supported create and operation-start retries.

The public v2 routes do not expose customer APIs for workspace deletion, SDK-specific lifecycle handles, streaming command output, streaming file I/O, a generally available interactive shell or PTY, shared volumes, checkpoints, or forks. Each VM browser preview exposes one HTTP/WebSocket port through a bearer URL, initially for one hour; keep-open can extend the live link. These are not UDP, SSH, permanent hosting, or general ingress. SDK 0.4.0 controls them with previews.create and previews.close, and CLI 0.12.0 with bxc sandbox preview. A separate default-off cooperative connection preview exists only for operator-selected Sandboxes and is not general SSH availability; CLI 0.12.0 opens it with bxc sandbox ssh when BOXCOMPUTE_ENABLE_SSH=1 is set. Generally enabled selected-TCP access opens 1–8 requested ports on an owned active VM to one client for one hour; it is not a public listener. CLI 0.12.0 opens it with bxc sandbox expose; the SDKs do not. Deleted-Sandbox history, logs and costs are in SDK 0.4.0 (deletedSandboxes, or deleted_sandboxes in Python) and CLI 0.12.0 (bxc deleted). Observable operations provide polling, retained output, and explicit cancellation for one structured command; they are not a general-purpose process or PTY API.

Navigation

Type to search…

↑↓ navigate↵ selectEsc close