CodeSandbox SDK vs Ona
CodeSandbox SDK is a self-serve API that starts Firecracker VMs from code. They hibernate with their memory and wake on the next request. Ona, formerly Gitpod and now part of OpenAI, is a cloud dev environment platform for engineers and its Codex Agent. Since Ona Cloud shut down on October 31, 2026, Ona sells only Enterprise, through sales, on runners in your own AWS or GCP account.
The companies and products
CodeSandbox SDK
CodeSandbox SDK is an API from CodeSandbox, now a Together AI company, that starts sandboxed development VMs on the same infrastructure as the CodeSandbox editor.
Each sandbox is a Firecracker microVM built from a template or any Dockerfile. When it goes idle, it hibernates with a memory snapshot, and it resumes or forks from that snapshot in seconds. You drive it from a TypeScript SDK through terminals, commands, files and HTTPS hosts. Together's docs call it the deprecated offering and point new users to its successor, the together-sandbox SDK.
Ona
Ona, formerly Gitpod, is a platform for cloud dev environments and background coding agents, and is now part of OpenAI.
Ona is a different kind of product from boat: a dev-environment platform, not a sandbox API. Each task or developer gets an isolated VM built from a Dev Container config. People open it in a browser IDE, VS Code or JetBrains, and Ona's Codex Agent can plan, code, test and open pull requests in it. Ona has a built-in web browser that its AI can drive, prebuilds and Enterprise warm pools. It is built for engineering teams who want the same governed environment for every developer and agent. Since Ona Cloud shut down on October 31, 2026, every customer runs it in their own AWS or GCP account on an Enterprise contract.
Which use cases each one fits
For each use case, Battleships prices every sandbox provider on the same workload and sorts them from the cheapest monthly bill up. “32nd cheapest of 365” means 31 of the other 364 providers run that workload, with every feature it needs, for less. “With limits” means the provider runs it but misses something, so it is listed after every full match. Open a use case for its whole ranking and what each provider misses.
| Use case and its workload | CodeSandbox SDK: price rank | Ona: price rank | boat: price rank |
|---|---|---|---|
| Software factory 100 at once · 4 vCPU / 8 GB · 2,200 sessions of 8 h a month | 32nd cheapest of 365 $3,731 a month | 334th of 365, with limits $7,315 a month | 5th cheapest of 365 $634 a month |
| Always-on AI employees 50 machines 24/7 · 2 vCPU / 4 GB An always-on assistant on Ona needs auto-stop set to Never, because background work does not count as activity. CodeSandbox SDK has no hard session cap and hibernates after its idle timeout. On boat, turn auto-stop off on a paid plan (default 1 hour). | 50th cheapest of 361 $4,811 a month | 147th of 361, with limits $8,504 a month | 6th cheapest of 361 $657 a month |
| Code interpreter bursts 100 at once · 1 vCPU / 2 GB · 200,000 sessions of 1 min a month CodeSandbox SDK fits short code runs, with VMs that hibernate with their memory and wake on the next request. Ona is a dev environment built for people and agents, not quick bursts. | 54th cheapest of 336 $642 a month | 326th of 336, with limits $5,320 a month | 189th of 336, with limits $2,000 a month |
| Sandboxes for your users 300 at once · 2 vCPU / 4 GB · 30,000 sessions of 23 min a month CodeSandbox SDK wakes a user's sandbox on their next HTTP request, but caps Scale at 250 VMs at once. Ona is built for your own engineers, and its per-user policy defaults to 10 running environments. boat allows 300 at once on its $100 plan. | 140th of 349, with limits $1,707 a month | 325th of 349, with limits $5,988 a month | 3rd cheapest of 349 $209 a month |
| RL rollouts 1,000 at once · 2 vCPU / 4 GB · 1,000,000 sessions of 3 min a month CodeSandbox SDK's memory forks let many rollouts branch from the same running state. Ona has no way to copy an environment. A boat fork copies the disk only. | 341st of 349, with limits $3,861 a month | 277th of 349, with limits $9,773 a month | 39th of 349, with limits $2,000 a month |
| Agent evals 250 at once · 4 vCPU / 8 GB · 15,000 sessions of 20 min a month CodeSandbox SDK and boat both fit evals: you start and fork machines from code on self-serve plans. On Ona the SDK is on Enterprise, its only plan, sold through sales. | 77th cheapest of 359 $1,335 a month | 332nd of 359, with limits $5,768 a month | 10th cheapest of 359 $200 a month |
| CI runners 40 at once · 8 vCPU / 16 GB · 6,000 sessions of 12 min a month CodeSandbox SDK and boat can fork a warm machine for each run. Ona has no fork; each run starts from a prebuild, and Enterprise warm pools hand out an environment in about 10 seconds. | 96th cheapest of 374 $860 a month | 366th of 374, with limits $5,461 a month | 2nd cheapest of 374 $86 a month |
| 24/7 dev boxes 1 machine 24/7 · 4 vCPU / 8 GB Ona is the most complete dev box here, with Dev Containers, prebuilds and browser, VS Code and JetBrains IDEs. boat is a full VM you reach over SSH, HTTPS or a desktop. CodeSandbox SDK documents no SSH. | 316th of 371, with limits $240 a month | 371st of 371, with limits $5,140 a month | 19th cheapest of 371 $26 a month |
| Computer-use agents 50 at once · 4 vCPU / 8 GB · 20,000 sessions of 15 min a month Ona has a built-in web browser its AI can drive, but no full desktop for other apps. On CodeSandbox SDK you add a VNC desktop to your Dockerfile. boat streams a 60 fps desktop with Chrome for computer use. | 54th cheapest of 367 $1,236 a month | 355th of 367, with limits $5,691 a month | 7th cheapest of 367 $200 a month |
| Browser-use agents 50 at once · 2 vCPU / 4 GB · 30,000 sessions of 10 min a month | 125th of 356, with limits $741 a month | 219th of 356, with limits $5,346 a month | 7th cheapest of 356 $200 a month |
| Scraping & bots (startup scale) 50 at once · 1 vCPU / 2 GB · 100,000 sessions of 3 min a month | 119th cheapest of 343 $871 a month | 220th of 343, with limits $5,468 a month | 6th cheapest of 343 $90 a month |
| Mass scraping & bots (undetectable) 1,000 at once · 1 vCPU / 2 GB · 3,000,000 sessions of 2 min a month | 194th of 327, with limits $7,390 a month | 261st of 327, with limits $14,360 a month | 73rd of 327, with limits $1,800 a month |
| Parallel red teaming 200 at once · 2 vCPU / 4 GB · 5,000 sessions of 30 min a month | 29th cheapest of 351 $505 a month | 150th of 351, with limits $5,228 a month | 3rd cheapest of 351 $200 a month |
| GPU eval jobs 10 at once · 8 vCPU / 32 GB · 500 sessions of 30 min a month | Not ranked: misses a requirement | Not ranked: misses a requirement | Not ranked: misses a requirement |
| macOS agents 5 at once · 4 vCPU / 8 GB · 1,000 sessions of 20 min a month | Not ranked: misses a requirement | Not ranked: misses a requirement | Not ranked: misses a requirement |
Key features
| Feature | CodeSandbox SDK | Ona | boat |
|---|---|---|---|
| Isolation | Firecracker microVM with its own kernel | Isolated VM with dedicated compute, built from a Dev Container config | Full VM with its own kernel, on hosts dedicated to boat (AMD Ryzen 7 9700X and Ryzen 9 9950X); vCPUs are shared |
| Driving it from code | TypeScript SDK on self-serve plans | Python, TypeScript and Go SDK and a CLI on Enterprise, Ona's only plan, sold through sales | API, SDK and CLI on every plan, self-serve from $20 a month, including the trial |
| Pause and resume | Hibernates with a memory snapshot and resumes with processes running in about 0.5 to 2 s | Disk persists across stops, on your cloud bill; Enterprise archives a stopped environment after 3 days by default (1 to 30 days) | Disk saved every minute and at each stop, kept at least 14 days; memory is not saved, so a resume is like a reboot |
| Fork | Fork a hibernated sandbox from its memory snapshot, or a running one that shares memory with its parent | No environment copy; you can create a project from an environment's config, and warm pools start new ones in about 10 seconds | Fork a running sandbox from its last 1-minute disk snapshot; memory is not copied |
| Wake on request | Yes; an HTTP request to a host wakes a hibernated VM | No | No; you start a stopped sandbox by API |
| Idle stop | Hibernates after an idle timeout (30 minutes by default on paid plans, up to 1 day) and bills until then | Stops after 30 minutes without SSH, IDE or agent activity by default; background processes do not count; can be set to Never | Auto-stop 1 hour after create or resume by default; set up to 30 days, or off on a paid plan; the timer does not watch for idle |
| Docker and nested virtualization | Docker and root, built from any Dockerfile; nested virtualization not documented | Docker and root inside the Dev Container; nested virtualization not documented | Docker, root, systemd and /dev/kvm on every sandbox |
| Shell and IDE | Terminals, commands and files through the SDK; SSH is not documented | Browser IDE, VS Code and JetBrains, plus SSH | SSH, plus exec and files over the API |
| Desktop and browser | No built-in desktop; a headless Chromium template, and you can install a VNC desktop in your own Dockerfile | A built-in web browser that Ona's AI can drive; no full graphical desktop for other apps | Built-in desktop and Chrome streamed at 1920x1080, 60 fps, with computer-use tools |
| Coding agents | You install your own agent in the template and run it through the commands API | Managed Codex Agent, started from chat, Slack, a pull request comment, a Linear issue or an automation; Claude Code you install yourself | Seven harnesses installed, including Claude Code and Codex, with a prompt, steer and events API |
| Keeping API keys out of the sandbox | Secrets passed in as environment variables; no credentials proxy documented | Secrets injected as environment variables or files; OIDC can swap them for short-lived cloud credentials | Optional credentials proxy ($1 a day while on, plus $1 per 1,000 requests): real keys of supported model providers stay outside; other secrets still enter the sandbox |
| Inbound access | HTTPS host per port, public by default, signed tokens for private sandboxes; raw TCP is not documented | HTTPS URL per port for you, your organization or everyone; SSH; raw TCP and a public IP are not documented | Up to 50 HTTPS URLs, token-gated by default; raw ports on the public IPv6 address (some sandboxes also have IPv4) |
| GPUs | None | GPU instance types on Enterprise runners in your own cloud, such as one NVIDIA A10G with 16 vCPU and 64 GB | None |
| Regions and deployment | A country hint steers scheduling, but placement is not guaranteed | Enterprise runners in your own AWS or GCP account, in many regions; Ona Cloud shut down on October 31, 2026 | Germany, Finland and France; you cannot pick a region; no US or Asia region |
Every feature Battleships tracks (43)
| Feature | CodeSandbox SDK | Ona | boat |
|---|---|---|---|
| Full VM (own kernel) | Yes | Yes | Yes |
| Docker inside | Yes | Yes | Yes |
| Nested virtualization | No documented way | No documented way | Yes |
| Root | Yes | Yes | Yes |
| Systemd | Not published | Not published | Yes |
| Desktop GUI | With your own setup | No documented way | Yes |
| Browser | With your own setup | Yes | Yes |
| Computer-use API | No documented way | No documented way | Yes |
| SSH | No documented way | Yes | Yes |
| Persistent disk | Yes | Yes | Yes |
| Pause/resume | Yes | Yes | Yes |
| Automatic snapshots | Yes | No documented way | Yes |
| Fork/clone | Yes | No documented way | Yes |
| Live fork (no pause) | Yes | No documented way | Yes |
| Memory fork | Yes | No documented way | No documented way |
| Custom image (Docker or snapshot) | Yes | Yes | Yes |
| ≥24 h sessions | Yes | Yes | Yes |
| Idle auto-stop | Yes | Yes | No documented way |
| Wake on request | Yes | No documented way | No documented way |
| HTTPS preview URLs | Yes | Yes | Yes |
| Raw TCP inbound | No documented way | No documented way | Yes |
| Public IPv4 | No documented way | No documented way | No documented way |
| Egress allowlist | No documented way | No documented way | No documented way |
| Secret proxy | No documented way | No documented way | Yes |
| Secret proxy for any API | No documented way | No documented way | Yes |
| Preinstalled agents | No documented way | Yes | Yes |
| Agent harness API | No documented way | Yes | Yes |
| MCP server | No documented way | No documented way | No documented way |
| GPU | No documented way | Yes | No documented way |
| Windows | No documented way | No documented way | No documented way |
| Arm64 | No documented way | No documented way | No documented way |
| Self-hosting | No documented way | No documented way | No documented way |
| BYOC | No documented way | Yes | No documented way |
| Open source | No documented way | No documented way | No documented way |
| Scoped API keys | Not published | Not published | Yes |
| Spend limits | Not published | Yes | Yes |
| Usage per sandbox (API) | No documented way | No documented way | Yes |
| Audit logs | Not published | No documented way | No documented way |
| SSO | Yes | Yes | No documented way |
| SOC 2 | Yes | Yes | No documented way |
| HIPAA | No documented way | No documented way | No documented way |
| EU data residency | No documented way | Yes | No documented way |
| Zero data retention | Not published | Not published | Yes |
Performance
Neither CodeSandbox SDK nor Ona is in the public CPU benchmarks we use, so we cannot say which is faster. In StarSling's run of 3 October 2026 (run 37073680030), boat did 28.06 runs/s on the V8 Web Tooling Benchmark at 4 vCPU / 8 GB, second of 15. Every boat sandbox in this run ran on an AMD Ryzen 9 9950X host. boat also places some sandboxes on AMD Ryzen 7 9700X hosts, which this run did not measure. For start time, ComputeSDK measured CodeSandbox SDK at its default size: 11.76 s median with 100 starts at once (6 November 2026) and 2.33 s one at a time in its latest published run. Ona and boat are not in ComputeSDK.
V8 Web Tooling Benchmark at a 4 vCPU / 8 GB target, runs per second, higher is better. Source: StarSling's run of 3 October 2026 (run 37073680030), median of 5 sandboxes. Providers ran on different hardware in different regions. StarSling gives a shared rank when the run cannot separate two providers. Every boat sandbox in this run ran on an AMD Ryzen 9 9950X host. boat also places some sandboxes on AMD Ryzen 7 9700X hosts, which this run did not measure. CodeSandbox SDK and Ona are not in the public benchmarks we use, so we cannot say which is faster.
Pricing in five scenarios
Each bill is priced from the providers' public price lists by the open Battleships engine, with the cheapest plan that runs the scenario. Start limits, per-start fees and plan minimums are in the price, boat's included.
| Scenario | CodeSandbox SDK, a month | Ona, a month | boat, a month |
|---|---|---|---|
| One coding agent, workdays 4 vCPU / 8 GB, 50 GB disk, 8 hours a day, 22 days a month, files kept between days | $193 · Scale | $5,030 · Enterprise (AWS Marketplace 12-month contract) · with limits | $20 · $20/mo |
| One agent that never stops 4 vCPU / 8 GB, 50 GB disk, running 24/7 all month | $341 · Scale | $5,140 · Enterprise (AWS Marketplace 12-month contract) · with limits | $26 · $20/mo |
| 50 agents in parallel 50 machines of 4 vCPU / 8 GB at once, 8-hour sessions, 1,100 sessions a month, Docker inside | $2,500 · Scale | $6,521 · Enterprise (AWS Marketplace 12-month contract) · with limits | $317 · $20/mo × 3 seats |
| Sandboxes for your users 2 vCPU / 4 GB, 30,000 sessions of 10 minutes a month, up to 300 at once | $815 · Scale · with limits | $5,432 · Enterprise (AWS Marketplace 12-month contract) · with limits | $200 · $100/mo × 2 seats |
| 1,000 short jobs at once 2 vCPU / 4 GB, 1,000 at once, 3 minutes each, 200,000 jobs a month | $1,632 · Scale · with limits | $5,955 · Enterprise (AWS Marketplace 12-month contract) · with limits | $8,800 · $2000/mo · with limits |
CodeSandbox SDK: You buy VM credits at $0.01486 each, and each size burns a fixed number per hour: 20 for a 4 vCPU / 8 GB VM, about $0.30. Billing is per started minute while the VM runs, including idle time before it hibernates. A hibernated VM has no VM charge. Larger teams pay a $170 monthly Scale platform fee, which is not usage credit. Prices as checked on 28 September 2026; CodeSandbox's pricing pages blocked our automated check on 8 November 2026.
Ona: Ona Cloud and Core shut down on October 31, 2026, so the Ona prices here use its Enterprise listing on AWS Marketplace: a 12-month, $60,000 contract (about $5,000 a month) for one unit that the listing does not define. The compute runs on your own AWS bill. Real Enterprise prices are negotiated with sales.
Ona: Plans cost $20, $100, $500 or $2,000 a month, and the whole plan price comes back as VM time for that month. A 4 vCPU / 8 GB sandbox costs $0.036 an hour, billed per second while it runs, busy or idle. The $20 plan includes 200 starts a day; each extra start costs $0.03 to $0.07. A stopped sandbox has no compute charge and keeps its disk for at least 14 days. Saved snapshots above the included count and the credentials proxy, while it is on, still charge.
Limits in those scenarios
CodeSandbox SDK's Scale plan allows 250 VMs at once, so 300 user sandboxes and 1,000 short jobs need Enterprise, and the price of disk beyond 20 GB is not published. No Ona scenario fits as published, because Ona sells only Enterprise, through sales. Ona publishes no Enterprise concurrency limit, so the table assumes 3 environments at once. boat does not fit the 1,000-job burst: the $2,000 plan includes 90 starts a minute and 2,400 a day, extra starts are paid, and starts above 270 a minute fail with 429. boat never queues a start.
| Scenario | CodeSandbox SDK | Ona | boat |
|---|---|---|---|
| One coding agent, workdays |
|
| None for this scenario |
| One agent that never stops |
|
| None for this scenario |
| 50 agents in parallel |
|
| None for this scenario |
| Sandboxes for your users |
|
| None for this scenario |
| 1,000 short jobs at once |
|
|
|
Which one should you use?
Use CodeSandbox SDK when
your code starts short-lived sandboxes that sleep between visits and wake on the next HTTP request with their memory intact, and you accept that Together calls this SDK deprecated.
- Memory hibernation and wake on request. For sandboxes that sleep between visits: an HTTP request wakes a hibernated VM with its processes still running.
- Forks that share memory. For branching many runs from one warm state, such as rollouts or test variants, without booting and setting up again.
- Self-serve sandbox API. For teams that want to start machines from code today: the SDK works on self-serve plans, with no sales call.
Use Ona when
your engineers want a governed cloud IDE shared with a Codex agent, inside your own AWS or GCP account, outside the EU, or with a GPU.
- A full cloud IDE for your team. For engineers who work in the same environments as their agents: browser, VS Code and JetBrains IDEs with Dev Containers, prebuilds and warm pools.
- Runs in your own cloud. For teams whose environments must run inside their own AWS or GCP account, in many regions.
- GPU environments. For agents that need a GPU: Enterprise runners can use GPU instance types, such as an A10G VM with 16 vCPU and 64 GB.
Where boat fits
If your code starts and drives the agents, look at boat. CodeSandbox SDK is a sandbox API built around VMs that hibernate, and Ona is a dev platform for people and its Codex Agent. boat gives each agent a full VM with /dev/kvm, a desktop, open ports and installed agents, on self-serve plans. boat runs only in Germany, Finland and France, has no GPU and limits starts per plan.
A whole machine with a screen
Neither CodeSandbox SDK nor Ona documents /dev/kvm, so Android emulators and nested VMs are not documented there. Ona's AI drives a built-in browser, but there is no full desktop for other apps. On CodeSandbox SDK you install a VNC desktop yourself. boat streams a 60 fps desktop on every sandbox.
Work that is kept and forks while running
Ona stops an agent after 30 idle minutes unless set to Never, has no fork, and archives a stopped environment after 3 days by default. boat saves the disk every minute, keeps a stopped sandbox's disk for at least 14 days, and forks it while it runs. A boat resume is like a reboot.
Agents driven from outside
On CodeSandbox SDK you build the agent harness yourself. Ona's managed agent is Codex, and its SDK is on Enterprise. boat installs seven harnesses with a prompt, steer and events API. Its optional paid credentials proxy keeps model keys out of the sandbox.
Use boat when your code starts and drives the agents and you want to begin self-serve: full VMs with /dev/kvm, a desktop and open ports, installed coding agents, and a disk saved every minute that forks while running. Compare it one to one: boat vs CodeSandbox SDK and boat vs Ona.
boat's own limits
- Plans start at $20 a month. The plan price comes back as VM time for that month. Unused time does not carry over. Source
- Starts (create, fork, resume): the $20 plan includes 12 a minute, 60 an hour and 200 a day. The $2,000 plan includes 90 a minute, 600 an hour and 2,400 a day. Extra starts cost $0.03 to $0.07. A start fails with 429 above 3 times the included starts per minute, or 6 times per hour or per day. Source
- A stopped sandbox has no compute charge. boat keeps its disk for at least 14 days. A saved snapshot keeps it longer; extra saved snapshots and the AI credentials proxy are paid. Source
- Auto-stop defaults to 1 hour. You can turn it off on a paid plan. The trial allows 2 hours at most. Source
- boat saves the disk every minute and at each stop. Memory, running programs and /tmp are not saved: a resume is like a reboot. A machine failure loses writes after the last good snapshot. Source
- Machines run in Germany, Finland and France only. Snapshot copies can be stored outside the EU. Source
- Public IPv6 and outbound IPv4. No dedicated IPv4. The IP changes at each resume. Source
- Hosts are AMD Ryzen 7 9700X and Ryzen 9 9950X. vCPUs are shared. No GPU. You cannot boot your own Docker image. Source
Questions people ask
Is CodeSandbox SDK cheaper than Ona?
In every scenario we priced, yes. One coding agent on workdays is $193 on CodeSandbox SDK against $5,030 on Ona, and 50 agents in parallel come to $2,500 against $6,521. Ona is priced from its Enterprise listing on AWS Marketplace, so a real quote may differ. On boat the same two cost $20 and $317 a month.
Which is faster, CodeSandbox SDK or Ona?
Neither is in the public CPU benchmarks we use, so we cannot say. In StarSling's run of 3 October 2026, boat did 28.06 runs/s on the V8 Web Tooling Benchmark at 4 vCPU / 8 GB, on an AMD Ryzen 9 9950X host. boat also places some sandboxes on slower hosts.
Can CodeSandbox SDK and Ona run Docker?
Yes, both run Docker with root inside the machine: CodeSandbox SDK builds from any Dockerfile and Ona runs a Dev Container. Neither documents nested virtualization. boat exposes /dev/kvm for Android emulators and VMs.
Is CodeSandbox SDK still maintained?
CodeSandbox is now part of Together AI. Together's docs call this SDK deprecated and name together-sandbox as its successor. The last SDK release was 2.4.2 in December 2025. Self-serve sign-up still runs through CodeSandbox.
Is Ona the same as Gitpod?
Yes. Gitpod renamed itself Ona in 2025 and moved toward background coding agents, and Ona is now part of OpenAI. Its hosted service, Ona Cloud, shut down on October 31, 2026, so new customers go through sales.
Can I SSH into CodeSandbox SDK or Ona?
Ona supports SSH, along with its browser IDE, VS Code and JetBrains. CodeSandbox SDK connects through its SDK clients with terminals, commands and files; SSH is not documented. Every boat sandbox has SSH as well as an exec and files API.
Try boat
Install the CLI, then run boat new.
7-day free trial
More comparisons
- boat vs CodeSandbox SDK
- boat vs Ona
- E2B vs CodeSandbox SDK
- Daytona vs CodeSandbox SDK
- Modal vs CodeSandbox SDK
- Vercel Sandbox vs CodeSandbox SDK
- Cloudflare Sandbox vs CodeSandbox SDK
- Blaxel vs CodeSandbox SDK
- Runloop vs CodeSandbox SDK
- Tensorlake vs CodeSandbox SDK
- Morph Cloud vs CodeSandbox SDK
- CodeSandbox SDK vs Northflank