Skip to content NewFaster GitHub Actions runners: a machine for every job in under a second.Faster GitHub Actions runnersSee how →
Products / Sandboxes

A Linux machine per agent. Running in ~150 ms.

Isolated microVMs with their own kernel. Run code, keep files between steps, open a shell any time, and share what you build on a live HTTPS URL.

Firecracker microVMsBilled per second$0 CPU while paused
zsh · bonyalive
$ bonya create web ✓ sb-4f1c9a2b3c4d5e running · 142 ms $ bonya exec web -- npm ci added 312 packages in 9s $ bonya session create web dev -- npm run dev ✓ session dev running $ bonya preview create web 3000 → https://pv-7m2qx9….tv.bonya.ai · private $ bonya snapshot create web --name deps-ready ✓ snp-k3v8q0zt1m2n4p saved # idle? it pauses on its own. the next request wakes it.
api.bonya.aiCLI docs →
~150ms
From create call to a running sandbox, measured on our cluster
~2.5s
To wake a saved sandbox with its files, measured on our cluster
16vCPU
Largest size, with 32 GB of memory. The smallest is 1 vCPU, 1 GB
$0CPU
While a sandbox is paused. The next request wakes it
Built for

Computers for agents and the code they write.

One per task, created in about 150 ms and deleted when the work is done.

AI app builders

Turn a prompt into a live app.

The agent builds the app in its sandbox and hands back a link. If the sandbox paused, a visit to the link wakes it.

$ bonya preview create app 3000 \ --auth public → https://pv-7m2qx9….tv.bonya.ai
Coding agents

Give every agent its own computer.

Clone the repo, install, run the tests and keep the dev server up between steps.

$ bonya create agent $ bonya exec agent -- make test ✓ 214 passed · 41 s
Evals and rollouts

Fork a prepared machine for every attempt.

Prepare one machine, then fork it for every run. Each copy starts with the same files and installed packages.

$ bonya fork base # run 1 $ bonya fork base # run 2 $ bonya fork base # run 3 ✓ 3 copies of base
Code interpreters

Run your users' code without the risk.

Each run gets its own kernel and the network you allow, so untrusted code stays inside its machine.

POST …/sb-4f1c/exec { "command": ["python", "main.py"], "timeout_ms": 30000 } → exit 0 · 1.4 s
See it work

Give the agent a task.

Pick a task and watch what the agent does with its sandbox. A scripted example of real bonya commands.

AI
Coding agentwith a Bonya sandbox
sandbox · sb-4f1c9a2b3c4d5erunning
What makes it a computer

Not a snippet runner.

A full Linux machine.

A writable disk, any container image, and a size from 1 to 16 vCPU. Install what you need with pip, npm or apt.

small1 vCPUmedium2large4xlarge8xxlarge16

State that stays.

Files persist between steps and across pauses. Named sessions keep processes running after you disconnect, and you can attach again later.

bonya session attach web dev

Branch a running machine.

Save a named snapshot and start new sandboxes from it, or fork one into copies that each go their own way.

bonya fork web
In every sandbox
  • Streaming execstdout and stderr as they arrive, stdin, env, timeouts
  • Files APIread, write, upload, download, list and rename
  • Network controlopen, allowlist by domain or air-gapped, changed live
  • Secretsnamed secret sets attached at create, not pasted into code
  • Templatesimage, size and settings saved for your organization
  • Own kernelFirecracker microVM; image sandboxes run under gVisor · How we isolate
Pause and wake

Waiting costs nothing.

Agents spend a lot of time waiting on people, reviews and other jobs. Idle sandboxes pause on their own and CPU billing stops. The next request wakes them with their files intact.

  • A command, an API call or a visit to its preview URL wakes it, on any node
  • Activity means calls, open streams, preview traffic or a keepalive. A leftover background process does not keep it awake
  • Hold it awake with a keepalive, or pause it yourself, warm or cold
~1.2–1.7 sTo save a sandbox to storage, measured on our cluster
~2.4–2.7 sTo wake a saved sandbox with its files, measured on our cluster
sb-4f1c9a2b3c4d5emedium · 2 vCPU · 4 GBrunning
CPU2 vCPU · billed
Memory4 GB · in use
Fileson disk
Processesrunning
BillingCPU + memory + disk

Your agent runs commands, edits files, keeps a session open and serves a preview.

Previews

Share a running app, not a screenshot.

Expose any port on a sandbox and get an HTTPS URL. Agents that build web apps hand back a link people can click.

  • Private by default: the creator's browser gets a time-limited grant
  • Public when you say so, with --auth public
  • A visit to the URL wakes a paused sandbox
  • Create, list and delete from the CLI, the SDKs or the API
$ bonya preview create web 3000 --auth public → https://pv-7m2qx9….tv.bonya.ai
https://pv-7m2qx9….tv.bonya.ai
served from sb-4f1c9a2b3c4d5e · port 3000public
Interfaces

Start the way you work.

The bonya CLI, SDKs for Python, TypeScript and Go, the MCP server for AI agents, or plain HTTPS from any language. The web console shows the same sandboxes.

$ bonya login # opens your browser $ bonya create web $ bonya exec web --env CI=1 -- npm test $ bonya console web # interactive shell $ bonya preview create web 3000 $ bonya snapshot create web --name green $ bonya list $ bonya delete web
CLI · SDKs · MCP · REST · consoleAll developer tools →
Coding agent

Let your coding agent drive it.

It can use the Bonya MCP server, the bonya CLI or the API for you.

Use the bonya CLI to create a sandbox, clone this repo into it, run the tests, start the dev server in a session, and send me a preview URL for port 3000.
Needs BONYA_API_KEY or bonya login
Pricing

Three cents for a ten-minute task.

CPU, memory and disk, billed per second from credit. No seats. CPU stops billing while a sandbox is paused.

All rates
CPU$0.080per vCPU-hour
Memory$0.055per GB-hour
Disk$0.00007per GB-hour
10 min · 1 vCPU · 2 GB
≈ $0.03
See pricing →
FAQ

Sandbox questions.

Anything else, ask us directly.

Talk to our team
How are sandboxes isolated?

Each sandbox is a Firecracker microVM with its own kernel. Sandboxes created from a container image run under gVisor. Network policy and limits are enforced outside the workload, where code inside cannot change them.

What happens to my processes when a sandbox pauses?

A warm pause keeps memory, so processes carry on where they were when it wakes. Later, a still-idle sandbox is saved to storage: files and installed packages are kept, and processes start again on wake. If a process must keep running, hold the sandbox awake with a keepalive.

What counts as activity?

API calls, open streams such as an attached session or exec, traffic to a preview URL, and a keepalive. A process left running in the background does not keep a sandbox awake on its own.

What is the difference between a snapshot and a fork?

A snapshot is a named copy of a sandbox's files that you can start new sandboxes from, any time later. A fork copies a sandbox straight into one or more new sandboxes.

Which languages can I use?

Anything that runs on Linux runs inside a sandbox. To drive sandboxes, use the bonya CLI, the Python, TypeScript or Go SDK, the MCP server, or the REST API at api.bonya.ai from any language.

Start your first sandbox.

Free on the Solo plan. Running in about 150 ms.