Skip to content

VM Sandboxes (Beta)

Create and manage VM sandboxes with the public API, including command execution, file transfer, network selection, and cleanup.

Updated View as Markdown

Create a VM, upload test data, run a command, download the results, and delete the VM using the BoxCompute API. This guide is for developers who need a full virtual machine rather than a shared-kernel Sandbox for command-line tools and agent tool execution.

VM Sandboxes are available to all authenticated accounts. This beta is not intended for production workloads. The public API does not provide always-on controls; the app has Starter Always on and a Small-VM always-on preview option included with Starter. Neither guarantees uninterrupted uptime.

The walkthrough uses a small text fixture and requires no additional software inside the VM.

Last updated: November 25, 2026.

Check whether your experiment fits

Capability Current VM beta profile
Availability Available to all authenticated accounts.
Selection New creation is VM-only: omitted or true creates a VM; false returns 400 INVALID_REQUEST. An explicit vmSandbox: true requires an Idempotency-Key header; an omitted vmSandbox may create keyless, in which case the server generates the key. Completed historical idempotency responses keep their original runtime; pending historical gVisor creates are rejected.
Networking Outbound Internet access by default, limited to public IPv4 and DNS. Set blockNetwork: true to create a VM with no network interface. The choice is fixed at creation and cannot be changed later.
Resources Four compute sizes, listed below; XL and XXL are included with Starter and for organization members. Every account can change compute size in the app. All default to a 30 GiB thin-provisioned root disk containing the OS and /workspace; only written blocks consume physical capacity. diskGiB accepts whole numbers from 10–30, but customer accounts can use only 30 for now; a smaller value returns 400 INVALID_REQUEST. The chosen disk size is immutable and counts in full against the applicable personal or organization storage limit.
Lifetime A stopped VM keeps its disk until you delete it; on free accounts, retention can delete one left unused after an email warning. By default, compute stops 30 minutes after the last API call that used it; app running windows and Starter Always on can suppress idle sleep. Standard VMs cold-stop and request maintenance sleep after about 42 hours. Selected app computers marked v2 pause instead; check what Stop keeps.
Image Immutable, server-selected approved minimal Ubuntu image. No arbitrary image override, library profile, or attached volumes.
User/runtime Runs as root (UID 0) with HOME=/workspace. No SSH login. The minimal image has no compiler preinstalled, but root can install system packages with apt-get. Node.js, uv and other tool dependencies are not guaranteed.
Serving Direct HTTP requests can create bearer HTTP/WebSocket preview URLs for up to three loopback ports at once, initially for one hour; keep-open can extend a live link. Port 9222, the desktop Chrome’s DevTools port, is never previewed. No UDP, SSH endpoint, permanent hosting, or general inbound access.
Desktop Network-enabled Large, XL and XXL VMs support screenshots, input and a control-capable viewer link through the desktop HTTP API. Start the VM and desktop explicitly; desktop calls never wake it.
Storage / and /workspace share one root filesystem that is deleted with the VM. Download needed data before you delete it. An account workspace groups sandboxes; it does not preserve their files.
Lifecycle Create, status, execute, files, stop, resume an existing stopped VM, delete. CLI bxc sandbox resume retains the same disk and files; compute billing resumes. Do not depend on snapshots, checkpoints, forks, or restore.

Start with a small payload and one command at a time. A full toolchain, browser, model or concurrent agent workload may exceed the available resources.

Choose a VM size

size CPU allocation Memory Compute rate relative to Small
small (default) 0.5 CPU 1 GiB 1×
large 1.5 CPU 3 GiB 3×
xl 4 CPU 8 GiB 8×
xxl 4 CPU; bursts up to 8 16 GiB 16×

CPU allocations use shared host capacity, not dedicated cores or guaranteed throughput under contention. The size’s allocation, burst ceiling and compute rate are separate from how much CPU a workload actually uses.

XL and XXL are included with Starter. Accounts with provisioned organization access also qualify. Purchased credit alone does not unlock XL or XXL: it pays for compute, not Starter features. A free account receives 403 FEATURE_ACCESS_DENIED before allocation. Individual early-access grants do not unlock these sizes on the hosted service. In the app, these sizes appear with a Premium badge; selecting a locked size opens the Starter offer. Size access does not waive compute charges, credit checks or account capacity limits. Select sizes with raw HTTP or the hosted MCP sandbox_create tool; the released SDKs and CLI expose only Small and Large. Changing size under the same creation key conflicts; it is not a resize request.

In New computer and Change size, Large, XL and XXL are marked Desktop; Small has no desktop. On a Small VM, Open desktop or the chat’s Computer tab offers Change to Large with its hourly price. This opens the size-change confirmation; it does not resize the VM immediately.

Change compute size

Choose Change size next to a VM’s size or under Settings → Resources. Every account can resize; XL and XXL need Starter or organization membership, as when creating. The VM owner’s access and target-size eligibility apply even when an organization admin makes the change.

Resizing keeps the same disk, files, VM ID, domain configuration and schedule. A running VM stops first and starts again at the new size: processes and connections end, and the next boot is billed at the new size’s rate. A stopped VM stays stopped. The disk does not grow.

The app carries out the change on the server, even if you close the page. Reopening the computer’s page picks up its progress. If the size change fails, the app tries to restart a previously running VM at its original size. If the size changes but the restart fails, the new size remains: check the message, resolve any credit or capacity issue, then choose Start rather than creating a replacement.

The in-app agent can make the same change under your approval settings. This is not a public v2, released SDK, CLI or hosted MCP operation. A Small VM’s always-on preview stops being maintained when it starts at another size; ordinary preview links end when the VM stops.

Find a computer and its activity

Computers shows one card per computer: its system, size, status, hours run on each of the last 14 days, and this month’s hours and compute cost. Running computers with metrics support show CPU and memory without waking a stopped VM. The page also shows monthly spend and your running/computer/disk limits. On a computer’s page, Activity contains Logs and Metrics; identity and runtime details are under Settings.

Controls marked Coming soon or Soon, including Snapshots, Templates and Windows/macOS choices, are disabled. Their presence does not make those features available.

Sleep is not deletion

A standard VM can stop compute while retaining its disk. By default, it stops 30 minutes after the last API call that used it (what counts), or at once with the HTTP stop route. Maintenance sleep is requested after about 42 hours of continuous uptime, even if the VM is active. A cold stop keeps the disk, but processes, shells and open connections stop. Save progress to disk and make long-running applications restartable.

Some selected organization computers in the app show v2 after their size. For these computers, Stop pauses memory and running programs as well as keeping the disk; Start picks up where they left off. Read the Stop confirmation for that computer rather than assuming every VM cold-stops. Their Activity → Metrics view explains that per-VM CPU, memory and network series are not recorded yet. This app label does not change the public /api/v2 contract or make pause/snapshot controls generally available.

On a free account, stopped VMs can be deleted once you stop using BoxCompute. After 14 days in which you have not used the app, run an agent, called the API or CLI, or used any of your VMs, BoxCompute emails you the VMs’ names and a deletion date at least seven days later. If you are still away on that date, each stopped VM unused for 21 days is deleted with its disk, and its deletion history shows deletedVia: retention. Coming back at any point cancels the deletion. Your account, chats and Assets stay. This never applies to Starter, accounts that have ever paid (a credit top-up counts), accounts with an early-access grant, organization members, organization VMs, or VMs with a computer schedule or an always-on preview.

In the app, Stop keeps the computer’s files; reopening its page or Terminal does not wake it. Choose Start before opening a new terminal. Other API execution or file calls can still wake a VM unless it has autoResume: false. If Stop reports that the VM is still stopping, check its status before retrying.

For app computer schedules, each selected weekday is the day the running window starts. A window that crosses midnight stops the next morning: 21:00–06:30 Monday–Friday stops on Tuesday–Saturday, not the following Monday. Running windows suppress idle sleep until their stop time; Starter also offers Always on without a timed window.

If you need more time before a scheduled stop, choose Stop later on the computer’s page, in its ⋯ menu or in Schedule. It moves that stop just once, up to a day ahead and before the next scheduled start; the weekly times stay unchanged. Saving a new schedule clears the one-time extension. The computer keeps using credit while it runs. The page and schedule dialog show the week’s running windows, including overnight stops. These are app controls, not additional public v2 or SDK scheduling routes.

Resume the same Sandbox with bxc sandbox resume SANDBOX_ID or the HTTP start route. Resume requires sandbox:create and available credit, retains the same disk and files, and restarts compute billing. Wait for availability before restarting applications; do not create a replacement just because the VM is asleep.

App agent workflows

These workflows use the BoxCompute app, not additional public v2 API or SDK controls. On a first visit, Have you used AI before? tailors the first tasks and the agent’s explanations. Choose Not really, ChatGPT or Claude, or I code with AI, then pick a first task or enter your own. If a task needs a detail, such as what a page is for or which repository to use, answer on the pick screen. Choosing an answer or submitting your own starts the job; it does not just fill the composer. You can watch the agent use a browser, build a landing page, write posts, build an app or run a repository. Connecting GitHub is optional. Malaysian non-coding paths offer Bahasa Melayu and English.

The app creates the initial workspace and prepares its computer. A browser first task starts a Large computer so you can watch, then asks for desktop control permission. The first run keeps navigation out of the way; choose Show me around to open the rest of the app and its tour. Choose Run your own agent? Just take the computer on the first screen to open Computers instead. If an AI limit interrupts a job, you can opt in to continue that chat after the reset.

If you belong to several organizations, choose one from the organization heading in Menu. Organization admins can open Overview to inspect the organization’s VMs and stop or delete them, and Billing for their compute spend, plus Audit log for changes and VM problems; ordinary members see Members and the shared VM list in Computers. Personal hides organization pages. The choice is remembered in that browser, but does not move workspaces, credit or VMs. A new workspace, or New computer → For, chooses who a new VM belongs to; For starts at the organization shown in Menu. See personal and organization VMs.

Arrange your agents

Drag an agent up or down the rail with a mouse to change its place. On a phone, long-press an agent and choose Rearrange agents…; on a computer, right-click for the same menu. In that list, drag by the handle, or focus a handle and use Space, the arrow keys, then Space again. The order is saved for the workspace, including its agent pickers and phone app; new agents join at the end. If saving fails, the previous saved order returns and the list explains why.

Set your theme and fonts

Open Settings → Appearance to choose Light, Dark or System, which follows your device. Light and dark each keep their own palette, accent, background, text colour and contrast; both have live previews. Choose the default interface and code fonts, system fonts, or a font installed on your device.

Appearance stays in that browser, not your account’s other devices. Use Copy theme code, then Import in another browser to copy a light or dark theme’s colours. Import also accepts a Codex app theme code. Fonts stay as configured in the receiving browser.

Choose a chat view

Open Settings → Appearance → Chat view and choose Simple for messenger bubbles with the agent’s work folded into one plain-language line. Expand it to see the steps, then their technical details. Technical, the default, shows every step and command. The choice stays in that browser, like the theme; it changes presentation, not the agent’s permissions or work.

Keep an unfinished message

Each chat keeps its own draft when you switch chats or pages. New-chat drafts are kept separately for each agent. Text and quoted answers can survive a reload or closed tab in the same browser, for up to two weeks; signing out clears them. Attachments stay only in the current tab’s memory: after a reload or reopening the tab, attach them again. Drafts do not sync to another browser or device, and disabled or full browser storage can prevent text from surviving a reload. Sending clears the submitted draft.

Quote, copy or branch an answer

To reply to a specific part of an agent’s answer, select the text and type in the reply card beside it. Enter or the arrow adds the quote and your reply to the composer, marked With reply; it does not send them. Repeat for other parts, then use the composer’s Send to submit them together. Add to message adds just the quote while the card is empty. You can collect up to five quotes, or send one alone to ask the agent to explain it. Only answer text can be quoted, not tool output or your own messages.

Choose Copy under a finished answer to copy its Markdown without tool calls or thoughts. A code block has its own Copy button for just the code. On a computer, earlier answers show their actions on hover or keyboard focus; the newest answer and answers on touch screens show them without hovering.

Choose Branch in new chat under an answer to explore another direction without changing the original conversation. The new Branch · … chat keeps history up to that answer, in the same workspace, on the same agent and model. Both chats use the same computer: files are shared, not copied or restored to their earlier state. The branch does not copy the original’s approval mode; check approvals before continuing. Its divider links back to the original while that chat still exists.

Wait for a reply to finish before branching from it; you can branch from an earlier answer while a later reply runs. Some agent CLI histories and older answers cannot branch; use Branch in new chat only where the app offers it. Chats on your own runner cannot branch. These are app controls, not new public v2, SDK, CLI or hosted MCP operations.

Refer to another chat (early access)

This is available only on accounts with chat references enabled; Starter, Pro or organization membership alone does not unlock it. In an enabled account, type @ in the message box to find and select chats from the same workspace. Scroll the list for older chats or type to search. If Chats and Agents tabs are shown, Tab switches between them. You can attach up to three chats per message. They appear as chips before sending and links above the sent message.

An agent with chat tools can read a selected chat’s stored messages, or search for earlier work when you ask about it, such as “the price list we made last week.” Search is on by default for enabled accounts. In Settings → Account, turn off Let agents search my other chats to stop the agent searching on its own. It can still read a chat you explicitly select with @.

References never read another account’s or workspace’s chats, or isolated contact conversations. They use conversation text, not the other chat’s computer files, thoughts or tool output. Long chats can be excerpted rather than copied in full; some models receive excerpts from at most two selected chats instead of using chat tools. This does not move files or merge chats. These app controls add no public v2, SDK, CLI or hosted MCP chat-search surface.

Ask another agent for help (early access)

This needs agent-help and chat-reference access enabled on your account, plus Starter, Pro or organization membership; a paid plan alone does not unlock it. In a supported agent chat, type @, open Agents and pick a helper in the same workspace. You can select up to three. You can also ask your agent to involve another agent when its specialty fits the task.

The helper works in its own chat, labelled with who asked; you can open it and continue there. The answer comes back to the asking chat, even if its current reply has finished. Helpers can use the same computer, so they can change the same files: this is not an isolated copy. Their work uses normal AI allowances, compute credit and approvals. Answer a helper’s questions in its own chat; the asking agent cannot approve them for you. Stopping the asking run stops the helper runs it started.

At most three helpers can work at once, with six asks per request chain. Helpers cannot ask more helpers. This is unavailable in chat-only models, agent CLI sessions, own-runner or isolated contact chats, schedules and API runs. It adds no public v2, SDK, CLI or hosted MCP delegation controls.

Choose the computer for a chat

In chats that use BoxCompute computers, every account can use the computer chip beside the model in the web composer; on a phone-sized screen, open the model menu. The menu lists computers in this workspace. Picking a stopped one starts billed compute when you send, subject to normal credit and capacity checks.

In an existing chat, a selection changes the next reply, not a reply already running. Undo restores the previous choice. Files stay on their original computer; moving the chat does not copy them. Start new chats on … too sets the workspace default, but chats that already ran keep their computer. Files, uploads and workbench tabs can still address the default computer: check which computer you are using before editing or running commands.

Own-runner chats have no picker, and isolated contact chats stay on their own computer. Some agent CLI sessions cannot change computer after their first reply. This web-app picker is not in the phone app or public v2, SDK, CLI or hosted MCP controls.

Save reusable skills

Open Menu → Skills to keep steps your agents should repeat. New skill creates one; Install accepts a public GitHub source, a skills.sh link, an npx skills add command or a text-only skill ZIP. Review Preview, files and warnings before installing. For a source with several skills, open one or use Install all for those not already installed. Imported skills do not update themselves when the source changes.

A skill uses the Agent Skills format: SKILL.md with a name, description and instructions, plus optional text files. Choose this workspace, selected workspaces or all workspaces. It is one account-owned copy, so editing it affects every workspace where it is enabled. Use the switch to turn it off, Versions → Restore for one of the ten retained versions, or Delete to remove it. The account limit is 100 skills; each has a 40 KB SKILL.md and up to 40 supporting files totalling 256 KiB. Binary files are not kept.

You can also ask a supported agent to save or update steps in chat. Ask first requires approval to save; installing someone else’s skill always asks, even in Full access. Saving and installing from chat are unavailable to scheduled and API runs. Isolated contact chats get built-in skills only. Loading instructions alone does not start a computer; following steps that use commands or files can.

Never put passwords or keys in skills: every chat using one can read it. Secret checks and warnings do not make a third-party skill safe; inspect its scripts and permissions. These app controls add no public v2, released SDK, CLI or hosted MCP skill-management surface.

Continue a chat on another model

Pick another model in an existing chat’s composer to keep the conversation and use that model for the next reply. You can move onto a model at one of your own providers and back. If a reply is still running, it finishes on its original model; the composer says which model takes over afterwards. Choosing a model before a new chat has been saved can still open a new chat. This switches BoxCompute model conversations, not a separate agent CLI’s session history.

A long conversation is summarised before it goes to a smaller model, and the app shows Summarising the chat while this happens. A summary is not a verbatim copy of the history. On your own provider, that provider writes the summary and bills its model usage. BoxCompute reserves room for the reply within your model’s context window. If the provider reports no size, it assumes 32,768 tokens. In Settings → Model keys, you can edit any model’s context size, even one reported by the server; your saved figure takes precedence. Use the provider’s real limit, not an inflated advertised window. If a long chat is refused for exceeding it, correct the size, save and send again.

Speak instead of typing (early access)

If your account has voice-input access, choose the composer’s Dictate microphone and allow microphone permission. Done puts the transcribed words in the draft to check before sending; Send transcribes and sends them with anything already typed. If the message cannot send yet, it stays in the draft. Cancel or Esc discards the recording. At two minutes it stops as Done does. Transcription counts toward your normal AI allowance and appears as Voice input in AI usage. Organization membership alone does not unlock this early access. This is web-app dictation, not a live voice conversation or a new public v2 transcription endpoint.

Work with files and GitHub

Opening a chat, viewing its Files list or following a VM file’s download link does not start a stopped computer. The list says Computer stopped; choose Start before opening its VM files. While it boots, the list says Computer starting; Files unavailable means refresh to try again, not that your files are gone. Commands and other actions that start a computer still incur normal compute charges.

Open supported files from chat links, Files or Assets in the app’s viewer instead of downloading them. Images can zoom; PDFs, Markdown, web pages, Word documents, spreadsheets and code have their own views. Web-page previews do not run scripts. Unsupported formats still download; a supported format can still exceed its viewer’s size limit. Download remains available.

Choose Edit for complete UTF-8 text files up to 2 MiB, including code, Markdown, HTML and CSV/TSV. Save or Ctrl/⌘-S writes back to the same asset or VM path; asset links and VM file permissions stay intact. If another tab or the agent changed it, choose Load latest or explicitly Overwrite rather than losing the newer version silently. Closing unsaved edits asks first.

PDFs up to 8 MiB that are not encrypted or XFA can also use Edit to add text, highlights, drawings, pictures, signatures and form entries. Existing PDF words cannot be rewritten. Covering text is not redaction: the original content remains recoverable. Word and Excel files stay view-only.

Reading a VM file requires its computer to be running; the viewer asks you to start a sleeping one rather than waking it for the read. Assets can be viewed without starting a VM. Videos play from Assets; a video still on a VM downloads instead. These viewer and editor controls are app-only, not new public v2 file routes.

Connect GitHub under Connectors, then ask the agent to work on a repository you have granted access to. It uses the connection rather than asking you to paste a personal access token or sign in with gh auth in the VM. You can ask it to check out into another already-running computer in the same workspace without waking the default computer.

The agent’s checkout is a repository snapshot with no Git remote. To get newer commits, ask for another checkout into a new directory rather than running git pull. This app workflow does not add GitHub checkout controls to the public v2 API, SDKs, CLI or hosted MCP server.

Keep a computer on

Open a computer’s Schedule, select Always on, then Save schedule. Starter subscribers and organization members have this mode. This replaces its timed window, prevents idle sleep and can start a stopped computer. After a platform maintenance sleep, it starts the same computer again automatically, subject to capacity and the applicable credit rules. This is not uninterrupted uptime: each restart ends ordinary programs, shells and connections. Ask the in-app agent to use start_service for an application that should return on boot; see managed services.

An explicit stop by you or the agent, a credit stop or account suspension is not overridden. Start it again yourself, or save Always on again when ready. If access ends, Always on is removed and default idle sleep applies again. Purchased credit alone does not unlock this mode. Founding members’ 100-hour monthly compute cap does not waive credit checks. Always on schedules do not create a public URL; browser previews are separate. These schedule controls are app-only.

Use an app terminal

In a chat or on a computer’s Terminal page, choose Full screen to expand the connected shell without reconnecting or losing its screen. Use Exit full screen to return; Esc remains available to terminal programs such as vim. This fills the browser window, not the browser’s own full-screen mode.

The × on a shell’s tab closes that shell after confirmation; Delete on a focused tab does the same. Closing the viewer only disconnects. Closing a shell does not stop the computer or delete its files.

If a connection drops, the app shows Reconnecting… and makes bounded automatic retries while keeping the screen. It does not resend input typed before the drop. If retries are exhausted or the server refuses the connection, use Reconnect. A shell that ended must be closed and a new one opened; automatic reconnect does not restart an ended shell or wake a stopped computer.

On a touch screen, the terminal key row adds Esc, Tab, Ctrl, Alt, Shift, Home, End, PgUp, PgDn and arrows. Tap Ctrl then c to interrupt; modifiers apply to the next key only, including a letter on the phone keyboard. Hold an arrow to repeat it. In full screen, the phone’s terminal menu provides text size, theme, Paste and Close shell; in landscape, shell tabs move into that menu.

Ask an agent to use the desktop

Use a running, network-enabled Large, XL or XXL computer for tasks that need the visible screen. The agent requests permission to control the same desktop you see in Desktop; it does not create, resize or wake a computer to get control. It can double-click, hover, drag and use keyboard shortcuts. Fresh desktops open windows as full-screen tabs; an already-running desktop keeps its layout.

On a fresh desktop start, the BoxCompute wallpaper and top-bar Apps, Terminal and Browser buttons give you clickable ways to open programs. Apps lists installed application entries, including programs you install. Existing computers receive these controls the next time their desktop starts; an already-running desktop is not changed.

Each approved session lasts up to 60 minutes, 100 inputs or 120 screenshots, whichever comes first. At a limit, the agent can ask once for another session on the same computer. Approval resets the counters without restarting Chrome or losing its profile. Denial, no answer or cancellation ends desktop control for that run. Ending control leaves the computer running and billing normally; stop the VM separately when you no longer need it.

The agent’s Chrome supports WebGL using CPU rendering. If a site needs WebGPU, ask the agent to enable it: this closes its managed Chrome windows and reopens Chrome with the same profile. Save unsaved browser work first. WebGPU rendering can use several times more CPU, so enable it only when needed. Closing Chrome does not end desktop input or screenshots; the agent can reopen it. These app session controls are separate from public desktop API controls.

Chat from Slack (early access)

If Slack early access is enabled for your account, switch to the BoxCompute workspace that should receive the chats, then open Settings → Slack → Connect Slack and approve the connection in Slack. If Settings says Slack is not set up yet, connecting is not available. Your Slack workspace may require an administrator to approve the app. Each teammate connects their own BoxCompute account.

Mention @BoxCompute in a thread, or message it directly, to ask your account’s agent to work and post its answer there. Each Slack thread becomes a chat in BoxCompute, marked with Slack’s logo and linked back to the thread. Your later replies in that thread can continue the chat without another mention; replies addressed to someone else are not requests to the agent.

The agent uses the connected workspace’s default agent, tools and approval mode. Use trusted channels: thread messages become the agent’s input. Open the linked BoxCompute chat to answer questions or approvals. Slack attachments and images are not read. Disconnecting in Settings removes your connection, not the app from Slack or the chats it created.

Control the desktop on a touch screen

The app’s Desktop viewer uses Trackpad mode by default on touch screens: move one finger to move the pointer, then tap to click where it is. Tap then drag to hold the left button; use two fingers to scroll or a quick two-finger tap to right-click. Pinch to zoom from 1× to 4×; the zoomed view follows the pointer. To touch items directly instead, choose Tap to click in the ⋯ menu. The browser remembers this choice.

Choose Full screen on a phone, or Full window on a laptop, to expand the viewer without reconnecting. This fills the browser window, leaving Esc available to the VM. Upright on a phone, the full-screen view starts at 2× with a trackpad and Click and Right-click buttons below the screen. In landscape, the controls float over the screen.

Choose Keyboard to open the phone’s keyboard. The extra key row adds Esc, Tab, Ctrl, Alt, Super, Shift, navigation keys, Del and arrows; modifiers apply to the next key or click only. Type text sends a whole string, optionally followed by Enter, and is the way to paste text from your device: your device’s clipboard is not pasted into the VM automatically. These controls do not start a stopped VM.

Text copied on the VM can come back to this device. An automatic clipboard write is allowed only within five seconds of your own key or click in the viewer; text copied by an app or agent, or received when connecting, waits under Copy from computer in the viewer’s ⋯ menu. If the browser refuses, choose Copy here; if that fails, copy the selected text by hand. To paste from your device into the VM, continue to use Type text.

At desktop width, the full-page viewer shows a tools panel beside the screen and connects automatically once the desktop is running and free. Use Type it or ⌘/Ctrl+Enter to send a whole string, Copy for the newest text copied on the computer, and the key/window buttons for shortcuts your browser would otherwise intercept. Disconnect leaves the computer running and billed; Stop desktop closes its desktop apps, not its files. Phones and the chat panel keep the inline viewer.

Share a secret through Vault

Vault is included with Starter and for organization members. Open Settings → Vault → Add secret to save a key or password under a name such as stripe_key. Values are stored encrypted and are not shown again; use Replace to change one. You can keep up to 100 secrets per account. Never paste a secret into chat. Accounts with a separate Vault grant also have access; Starter and organization members need no separate grant.

In a supported app agent chat on a BoxCompute computer, the agent can request a secret in a masked card. Save puts it in your vault; Don’t share declines. The agent receives the name and save outcome, not the value. It can pass a saved secret to a command as an environment variable for that command only. Ask first asks before each such command; Full access permits it without another prompt. Vault is not available to local runner chats or always-on managed services, and has no public v2 API, SDK or CLI controls.

Tool text that echoes a saved value is masked before it reaches the agent or chat, but this is not protection from a command you do not trust: the command can read its environment. Transformed values, screenshots, the computer’s Terminal, retained command/process logs and files can still expose it. Deleting a vault entry does not erase copies already written on a computer. If Vault access ends, including when a plan lapses, saved values remain masked and can still be deleted, but cannot be added or used by new runs.

Chat on your ChatGPT plan

In the web app’s model menu, choose Codex Sub under Your ChatGPT subscription to chat with OpenAI’s Codex CLI on your BoxCompute computer. This is available to every account where chats use BoxCompute computers, not a separate early-access grant. BoxCompute charges no AI fee for these turns; your ChatGPT plan’s limits apply and the computer uses normal compute credit.

If the chat asks you to sign in, choose Get a sign-in code, copy the code, and open OpenAI’s page from the card. Enter it on OpenAI’s page, then return and send your message again. Your ChatGPT account may need device-code sign-in enabled in Settings → Security. Do not paste sign-in credentials into chat.

Codex chats use at least a Large computer; an existing Small computer is raised to Large when next stopped, keeping its files and sign-in. Large costs three times Small while running. Codex Sub accepts messages you type, not schedules or agent API runs, and cannot be your account’s default model. The phone app does not list it yet.

Install Claude Code, Codex, Qwen Code or OpenClaw

  1. Open a running computer’s Overview → Agents on this computer.
  2. Choose Install for Claude Code, Codex CLI or Qwen Code. Installation uses the vendor’s official installer or package; Claude Code follows its latest channel.
  3. After installation, choose Open terminal. Run claude for Claude Code, codex login --device-auth for Codex or qwen -i /auth for Qwen Code, then complete the provider’s sign-in. ChatGPT must allow device-code sign-in in its security settings for that Codex flow. Qwen Code signs in with a Qwen Plus or Pro account or takes an Alibaba Coding Plan key.

You sign in with your own Claude or ChatGPT account. Credentials stay in the VM; do not paste them into chat. The provider bills agent usage, while BoxCompute bills VM compute. This differs from the CLI agent skill, which connects an agent on your own computer to remote Sandbox tools.

A stopped computer must be started before installing or checking agents; opening this section does not wake it. Installation status is not sign-in status. Claude Code lists 4 GiB RAM as a requirement: use XL or larger to meet it, subject to size eligibility. A Small VM can run short of memory. Stop preserves the installed agent and credentials; delete erases them with the disk. This is not a qualification of every agent workload.

OpenClaw is not in Agents on this computer: ask the agent in a chat to install it in a computer. It runs OpenClaw’s official installer for the latest release under /workspace/.boxcompute/runtimes/openclaw, then replies with a setup link. The link opens the computer’s Terminal in a new tab and runs OpenClaw’s own openclaw onboard setup; enter any provider credentials there, not in chat. The agent’s links for Claude Code and Codex sign-in work the same way. A link never wakes a stopped computer: choose Start first.

Schedule an agent prompt

Every account can use Menu → Schedules, or ask the agent to schedule a prompt. Choose the agent, prompt, timezone, and either a one-time local date or recurring weekdays and time. Each occurrence starts a new chat rather than adding to an existing conversation. You can keep up to 20 schedules per account.

Review approvals: agent-created schedules use Ask first; Full access requires your explicit confirmation in the app’s Schedules page. With Ask first, a scheduled run can wait for you to approve starting a computer or another platform action. Its approvals and questions stay open for an hour by default, with a reminder email once one has waited about two minutes. Full access avoids platform approval prompts, but the agent’s own questions can still wait for your answer.

A busy previous run or full simultaneous-chat allowance can skip an occurrence rather than queue it. The end-of-run email says the run did not finish if its last approval or question expired unanswered. For an approval on an Ask first schedule, it links to Schedules so you can review Full access; it does not change that setting for you. Schedules use normal AI limits, compute credit and VM lifecycle rules, not an always-on VM reservation. See app AI allowances.

Ask for an email when work finishes

Every Starter subscriber or organization member can ask the app agent to email me when it’s done, including with the chat closed. It sends a plain-text notification only to your BoxCompute account address, without a further approval prompt; it cannot email someone else or attach files. Replies are not read. Shared app/API/MCP limits are 10 per rolling minute, 100 per 24 hours and 1,000 per 30 days per account. All accounts together also share a 500-email rolling 24-hour cap; a refusal can happen below your own limit. No separate early-access grant is needed. Scripts can use the owner-email HTTP route.

After finishing a report, research or digest, an eligible account’s agent can offer to email it; it emails the result only after you agree. For a recurring report, ask the schedule to email the result each run. Free accounts can receive a scheduled run’s notification link, but emailing the result itself requires Starter or organization membership.

Open Menu → Emails to review the subject, time, delivery status and the chat, API key or connected app that sent each email. Select a subject to read its saved text, or open the originating chat. Older emails may have no saved text. You can still read your history after sending access ends, but sending again requires Starter or organization membership.

To give agents tools from another service, every account can now add a trusted remote MCP server through Menu → MCP servers, without early access. This is separate from connecting an external AI app to BoxCompute’s own hosted MCP server.

Connect your own model server

Every account can open Settings → Model keys → Other providers → Connect a provider to use one provider key across several models. Presets include OpenRouter, OpenCode Zen and Go, Ollama Cloud, OpenAI, Groq, Together, Moonshot and the Z.ai Coding Plan. Choose Other server for your own OpenAI-compatible server.

  1. Choose a provider, or enter your server’s public HTTPS base address on port 443, and add its API key if required. Keep keys out of chat.
  2. Choose Find models, then select the models to turn on. Suitable models are selected automatically when they fit the account’s remaining allowance; use search to narrow a large list. If the server lists no models, enter each model’s name and context size instead.
  3. Connect the selected models. Saving checks tool calling on your key; prose-only models cannot run the agent. Models appear under their provider in the chat’s model picker. Use the provider’s model controls to turn more on or off later.

Give the provider a name when connecting, or choose Rename beside it later. The name appears beside its models in chat and model selectors, so models with the same name at different providers can be told apart. Clearing the name restores its default; renaming does not move chats or change their models.

You can connect up to 10 providers and turn on 100 models in total. Provider and model-key checks share a limit of ten per hour. Previously saved endpoints keep their chats and are grouped under providers. Turning a model off stops its chats from taking new messages until you turn it on again; removing a provider does not silently move chats to a different model.

BoxCompute connects from the internet, not your local network: localhost, private addresses and redirects are not supported. Never expose an unauthenticated model server. The provider bills its model usage, not BoxCompute AI; VM compute is still billed separately.

For image reads and computer screenshots on a connected Chat Completions model (or OpenAI’s own API), BoxCompute checks whether that model can read images. If it can, the model reads them on your provider connection. Otherwise, the reader uses your saved DeepSeek key when present, or BoxCompute’s image reader when no such key is saved. Reads on your provider or DeepSeek key use that provider’s billing; reads on BoxCompute’s reader count toward your BoxCompute AI allowance and can stop at its limit. Other servers’ Responses API models use the separate image reader rather than being checked for image support.

These are app settings, not new public v2, SDK, CLI or hosted MCP provider-management controls.

Before you start

You need an active API key and Bash, curl, jq and Python 3 on your development machine. Run the examples in the same shell, in a new directory for your test files. Python is used only to generate unique request keys; it is not required inside the VM for this walkthrough.

Use https://api.boxcompute.ai/api/v2 as the API base URL. See the OpenAPI reference for request and response schemas.

Create an API key and send it as Authorization: Bearer <API_KEY>. Keep the key on your development machine or integration controller, not in the VM, test fixture, source repository, or logs. Disable shell tracing and load the key securely into BOXCOMPUTE_API_KEY before running the examples. No model-provider credential is needed for these offline experiments.

Required scopes: sandbox:read for workspace listing, sandbox status and file reads; sandbox:create for creation; sandbox:execute for execution and file uploads and browser previews; sandbox:delete for cleanup. Workspace bootstrap additionally needs workspace:create. Billing/credit checks still apply.

Run your first integration test

1. Select an owned workspace

BASE='https://api.boxcompute.ai/api/v2'
: "${BOXCOMPUTE_API_KEY:?Load your API key securely first}"
curl --fail-with-body -sS "$BASE/workspaces" \
  -H "Authorization: Bearer $BOXCOMPUTE_API_KEY"

HTTP 200 returns {"workspaces":[...]}. Deliberately select an owned workspace; do not silently use the first result. Set WORKSPACE_ID to its returned id. The workspace must belong to your account. You do not need a separate tenant ID or tenant header.

If you need a new workspace, run the following optional request. HTTP 201 returns {"workspace":{...}}; use its id in the next step. Skip this request when using an existing workspace. You can create up to 10 workspaces per account.

WORKSPACE_KEY="workspace-$(python3 -c 'import uuid; print(uuid.uuid4())')"
curl --fail-with-body -sS -i "$BASE/workspaces" \
  -H "Authorization: Bearer $BOXCOMPUTE_API_KEY" \
  -H 'Content-Type: application/json' \
  -H "Idempotency-Key: $WORKSPACE_KEY" \
  --data '{"name":"Integration tests"}'

2. Create once; recover with the same key and body

Running this step allocates a VM. Keep the request body, key and returned sandbox ID for recovery; do not generate a new key on retry.

WORKSPACE_ID='REPLACE_WITH_RETURNED_WORKSPACE_ID'
CREATE_KEY="vm-$(python3 -c 'import uuid; print(uuid.uuid4())')" # Generate ONCE
jq -n --arg workspaceId "$WORKSPACE_ID" \
  '{workspaceId:$workspaceId,vmSandbox:true,blockNetwork:false,size:"small"}' > vm-create.json

create_vm() {
  curl --fail-with-body -sS --connect-timeout 10 --max-time 30 \
    -o vm-create-response.json -w '%{http_code}\n' "$BASE/sandboxes" \
    -H "Authorization: Bearer $BOXCOMPUTE_API_KEY" \
    -H 'Content-Type: application/json' \
    -H "Idempotency-Key: $CREATE_KEY" \
    --data-binary @vm-create.json
}
create_vm && jq . vm-create-response.json

The initial response is 202, with a sandbox object normally in pending. After a successful response, record sandbox.id. On a transport timeout, the outcome is unknown: retry create_vm with the unchanged key/body. While work is pending, replays return 202. Once provisioning converges, the same request returns 201 with the same public sandbox ID. Repeat at a modest interval (for example 10 seconds), with a bounded overall wait; do not loop forever or allocate a replacement on every error. A 202 is durable acceptance, not proof of eligibility or readiness. Provisioning failures can leave it pending. If the account has reached its Sandbox-count, running-VM or workspace-storage limit, the VM becomes expired and replaying the same key and body returns 429 WORKSPACE_QUOTA_EXCEEDED with the reason. Stopped Sandboxes still count toward the count and storage limits: delete one you no longer need before retrying with a new creation key. For the running-VM limit, stopping a VM is enough. If it is still pending after five minutes, stop waiting, save the ID and error response for support, and use step 5 to delete it. Five minutes is a suggested client wait limit, not a provisioning-time guarantee. Do not change the key to try to resolve a stuck request.

workspaceId, optional name (1–80 trimmed characters), vmSandbox, optional size, and blockNetwork configure public creation:

{
  "workspaceId": "ws_REDACTED",
  "name": "Integration tests",
  "vmSandbox": true,
  "size": "small",
  "blockNetwork": false
}

size is VM-only and defaults to "small" (0.5 vCPU / 1,024 MiB RAM); "large" selects 1.5 vCPU / 3,072 MiB RAM; Starter’s "xl" and "xxl" sizes are listed in the size table. All default to the 30 GiB root disk, and the choice is fixed when the VM is created: replaying the same key with the same body returns the recorded VM, and changing size for that key returns 409 IDEMPOTENCY_CONFLICT.

This walkthrough keeps the default 30 GiB disk, the only size customer accounts can choose for now; a smaller diskGiB returns 400 INVALID_REQUEST. The disk includes the OS and /workspace, cannot be resized later, and counts toward storage even when stopped. See the HTTP disk contract.

blockNetwork is optional and defaults to false, which gives the VM outbound Internet access limited to public IPv4 and DNS. Set it to true for a VM with no network interface. The choice is fixed when the VM is created: replaying the same key with the same body returns the recorded VM, and changing blockNetwork for that key returns 409 IDEMPOTENCY_CONFLICT. A creation key recorded before network selection existed keeps its original blocked intent when replayed.

Outbound TCP port 25 is blocked for all Sandboxes; direct SMTP connections time out. In network-enabled VMs, use a mail provider’s authenticated submission on 465/587 or HTTPS API instead. This does not give a blockNetwork: true VM network access.

Do not send image, backend, cpu, memoryMiB, workspaceMiB, timeoutSeconds, libraries, or volumes. Use size to select the VM compute profile; the others are not public controls, and unknown fields are discarded.

VM creation requires Idempotency-Key: 1–255 visible ASCII characters, no spaces. Keys are account-wide across mutations. Changed normalized input or reuse for a different mutation gives 409 IDEMPOTENCY_CONFLICT. Completed receipts are retained for 24 hours after completion. A replay is a saved creation receipt, not current status; even a deleted VM’s receipt can replay.

3. Inspect status, then execute bounded work

SANDBOX_ID='REPLACE_WITH_RETURNED_SANDBOX_ID'
curl --fail-with-body -sS "$BASE/sandboxes/$SANDBOX_ID" \
  -H "Authorization: Bearer $BOXCOMPUTE_API_KEY"

HTTP 200 returns {"sandbox":{...}} with id, workspaceId, name, state, vmSandbox, createdAt and nullable lastUsedAt. VM responses also include blockNetwork for the recorded network intent. Timestamps are Unix milliseconds. States are cold, pending, running, expired; require vmSandbox:true and running before your test. Status can lag changes in VM availability, so handle errors from execute and file requests even after a running response. The response does not include an expiry timestamp. Compute can sleep, and free accounts’ unused VMs can be deleted, as described above.

curl --fail-with-body -sS "$BASE/sandboxes/$SANDBOX_ID/execute" \
  -H "Authorization: Bearer $BOXCOMPUTE_API_KEY" \
  -H 'Content-Type: application/json' \
  --data '{"argv":["/bin/echo","beta integration"],"cwd":"/workspace","timeoutSeconds":10,"maxOutputBytes":4096}'

HTTP 200 wraps result containing stdout, stderr, exitCode, timedOut, stdoutTruncated and stderrTruncated. For this echo, expect stdout:"beta integration\n", empty stderr, exit code 0, and all flags false. Check the result, not only HTTP success: nonzero exit codes also return 200. Use structured argv, not a command field. Shell syntax requires an explicit shell, and interpolating untrusted inputs into shell text is unsafe.

cwd defaults to /workspace and must stay there or below it. Optional env is a string map (up to 64 valid environment variable names). argv has 1–64 nonempty entries, each at most 8,192 characters. Execution timeout accepts 1–900 seconds (default 120). Output is bounded to 1–1,048,576 bytes (default 262,144). Start with short timeouts, small output and one task at a time. Execute is not idempotent: retrying after a lost response can run the work again.

4. Stage fixtures and retrieve exact bytes

Uploads are raw bytes, not JSON, base64 or multipart. The per-upload limit is 8 MiB. File paths must be absolute under /workspace, at most 4,096 characters, without ./.. components or NUL. Create parent directories with execute if needed. This tiny fixture stays in the existing workspace directory.

printf '0123456789abcdefghijklmnopqrstuvwxyz\n' > fixture.txt
curl --fail-with-body -sS -i -X PUT \
  "$BASE/sandboxes/$SANDBOX_ID/files/content?path=%2Fworkspace%2Ffixture.txt" \
  -H "Authorization: Bearer $BOXCOMPUTE_API_KEY" \
  -H 'Content-Type: application/octet-stream' \
  --data-binary @fixture.txt
# Expect 204 with no body.

curl --fail-with-body -sS -D full.headers -G \
  "$BASE/sandboxes/$SANDBOX_ID/files/content" \
  -H "Authorization: Bearer $BOXCOMPUTE_API_KEY" \
  --data-urlencode 'path=/workspace/fixture.txt' -o full.txt
cmp fixture.txt full.txt

curl --fail-with-body -sS -D range.headers -G \
  "$BASE/sandboxes/$SANDBOX_ID/files/content" \
  -H "Authorization: Bearer $BOXCOMPUTE_API_KEY" \
  --data-urlencode 'path=/workspace/fixture.txt' \
  --data-urlencode 'offset=7' --data-urlencode 'maxBytes=11' -o range.txt
printf '789abcdefgh' > expected-range.txt
cmp expected-range.txt range.txt

Both reads return 200, including partial reads, not 206. Use query offset (default 0) and maxBytes (1–8,388,608; default 8,388,608), not an HTTP Range header. Inspect X-BoxCompute-Offset, X-BoxCompute-Next-Offset, X-BoxCompute-File-Size, and X-BoxCompute-EOF. A default read is only a full download if EOF is true. For larger files, repeat using the returned next offset and X-BoxCompute-Next-Cursor as the cursor query parameter, appending chunks until EOF. A file changed between pages can return 409 CURSOR_STALE; restart the download rather than mixing versions. Stop the writer before exporting a database; byte-range transport alone does not make a live database backup consistent.

Optional: publish a browser preview

If the VM is network-enabled and an HTTP/WebSocket service is listening on a loopback port, direct HTTP clients can create one bearer preview URL for at most one hour:

curl --fail-with-body -sS -X POST "$BASE/sandboxes/$SANDBOX_ID/previews" \
  -H "Authorization: Bearer $BOXCOMPUTE_API_KEY" \
  -H 'Content-Type: application/json' \
  --data '{"port":3000}'

Record the returned preview.previewId, preview.url, and preview.expiresAt. Anyone who has the URL can reach the service, so do not log or publish it. Close it when finished; closing does not stop the guest process or VM:

curl --fail-with-body -sS -X DELETE \
  "$BASE/sandboxes/$SANDBOX_ID/previews/$PREVIEW_ID" \
  -H "Authorization: Bearer $BOXCOMPUTE_API_KEY"

A VM can have up to three previews at once, one per port. This feature is temporary HTTP/WebSocket access, not UDP, SSH, permanent hosting, or general ingress. The app’s Starter always-on preview option does not add a public API control. See VM browser previews in the HTTP API reference for the distinction and cleanup semantics. You can inspect the current link with GET /api/v2/sandboxes/:id/previews, using the same sandbox:execute scope. A VM stop ends this plain preview; after restarting the VM and server, create a new preview instead of reusing the old URL.

5. Download results; delete explicitly

Compute can sleep, but the disk remains until you delete the Sandbox or, on a free account, retention deletes it. Download your results as soon as the test finishes. If the VM runtime is no longer available, an execute or file request returns 503 SANDBOX_UNAVAILABLE and the sandbox state becomes expired. Using that sandbox ID again does not automatically create a replacement VM. A 503 alone is not proof that the VM is gone: transport failures also use that code.

curl --fail-with-body -sS -i -X DELETE "$BASE/sandboxes/$SANDBOX_ID" \
  -H "Authorization: Bearer $BOXCOMPUTE_API_KEY"
# Expect 204 with no body; a subsequent status GET returns 404.

Delete the VM when you are finished, or to cancel a pending creation. Deletion removes this sandbox and its associated storage, not the parent workspace or sibling sandboxes. A repeated DELETE after removal returns 404. Treat workspace contents as disposable: files are not exported for you when the VM is deleted. Read-only deletion history remains for about 15 months and retained logs can remain available for about 30 days, but neither includes files or a restore path.

Troubleshooting

Errors have shape {"code":"...","error":"..."}. Useful distinctions: 401 invalid/missing key; 403 INSUFFICIENT_SCOPE, ACCOUNT_SUSPENDED or frozen billing account; 402 INSUFFICIENT_CREDIT; 404 NOT_FOUND for missing/foreign resources or FILE_NOT_FOUND for missing files; 408 EXECUTION_TIMEOUT; 413 PAYLOAD_TOO_LARGE; 415 UNSUPPORTED_MEDIA_TYPE; 502 SERVICE_UNAVAILABLE; 403 FEATURE_ACCESS_DENIED or PERMISSION_DENIED (an organization VM you may not change); 409 SANDBOX_STOPPED or SANDBOX_UNAVAILABLE; 429 WORKSPACE_QUOTA_EXCEEDED, RATE_LIMITED or SANDBOX_UNAVAILABLE (an organization’s dedicated capacity is full); 503 SANDBOX_UNAVAILABLE.

  • For 401 or INSUFFICIENT_SCOPE, check your key’s status and scopes.
  • For ACCOUNT_SUSPENDED, contact [email protected]; replacing the key or adding scopes will not restore access.
  • For 402, check your account credit before retrying.
  • For 409 IDEMPOTENCY_CONFLICT, check whether you changed the request body or reused a key for another operation. Recover the original request first.
  • For 429 WORKSPACE_QUOTA_EXCEEDED, read the reason. The running-VM limit clears when you stop a VM; the Sandbox-count and storage limits need a deletion, which releases both its slot and retained workspace storage. Waiting or repeatedly replaying the same creation does not release account capacity. For RATE_LIMITED, wait for Retry-After.
  • For 503, inspect sandbox status. If it is expired, delete it; do not retry execution expecting a fresh VM.
  • For repeated 5xx errors or a stuck creation, contact BoxCompute with the sandbox ID, time of the request, HTTP status and error code. Never include your API key or sensitive file contents in a support report.

Integrations

See Hermes Agent with VM Sandboxes for the app-managed /hermes setup flow, provider choices, readiness check and VM lifecycle guidance. This does not add Hermes-specific controls to the public v2 API.

Navigation

Type to search…

↑↓ navigate↵ selectEsc close