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 workloadCodeSandbox SDK: price rankOna: price rankboat: 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 requirementNot ranked: misses a requirementNot 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 requirementNot ranked: misses a requirementNot ranked: misses a requirement

Key features

FeatureCodeSandbox SDKOnaboat
IsolationFirecracker microVM with its own kernelIsolated VM with dedicated compute, built from a Dev Container configFull VM with its own kernel, on hosts dedicated to boat (AMD Ryzen 7 9700X and Ryzen 9 9950X); vCPUs are shared
Driving it from codeTypeScript SDK on self-serve plansPython, TypeScript and Go SDK and a CLI on Enterprise, Ona's only plan, sold through salesAPI, SDK and CLI on every plan, self-serve from $20 a month, including the trial
Pause and resumeHibernates with a memory snapshot and resumes with processes running in about 0.5 to 2 sDisk 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
ForkFork a hibernated sandbox from its memory snapshot, or a running one that shares memory with its parentNo environment copy; you can create a project from an environment's config, and warm pools start new ones in about 10 secondsFork a running sandbox from its last 1-minute disk snapshot; memory is not copied
Wake on requestYes; an HTTP request to a host wakes a hibernated VMNoNo; you start a stopped sandbox by API
Idle stopHibernates after an idle timeout (30 minutes by default on paid plans, up to 1 day) and bills until thenStops after 30 minutes without SSH, IDE or agent activity by default; background processes do not count; can be set to NeverAuto-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 virtualizationDocker and root, built from any Dockerfile; nested virtualization not documentedDocker and root inside the Dev Container; nested virtualization not documentedDocker, root, systemd and /dev/kvm on every sandbox
Shell and IDETerminals, commands and files through the SDK; SSH is not documentedBrowser IDE, VS Code and JetBrains, plus SSHSSH, plus exec and files over the API
Desktop and browserNo built-in desktop; a headless Chromium template, and you can install a VNC desktop in your own DockerfileA built-in web browser that Ona's AI can drive; no full graphical desktop for other appsBuilt-in desktop and Chrome streamed at 1920x1080, 60 fps, with computer-use tools
Coding agentsYou install your own agent in the template and run it through the commands APIManaged Codex Agent, started from chat, Slack, a pull request comment, a Linear issue or an automation; Claude Code you install yourselfSeven harnesses installed, including Claude Code and Codex, with a prompt, steer and events API
Keeping API keys out of the sandboxSecrets passed in as environment variables; no credentials proxy documentedSecrets injected as environment variables or files; OIDC can swap them for short-lived cloud credentialsOptional 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 accessHTTPS host per port, public by default, signed tokens for private sandboxes; raw TCP is not documentedHTTPS URL per port for you, your organization or everyone; SSH; raw TCP and a public IP are not documentedUp to 50 HTTPS URLs, token-gated by default; raw ports on the public IPv6 address (some sandboxes also have IPv4)
GPUsNoneGPU instance types on Enterprise runners in your own cloud, such as one NVIDIA A10G with 16 vCPU and 64 GBNone
Regions and deploymentA country hint steers scheduling, but placement is not guaranteedEnterprise runners in your own AWS or GCP account, in many regions; Ona Cloud shut down on October 31, 2026Germany, Finland and France; you cannot pick a region; no US or Asia region
Every feature Battleships tracks (43)
FeatureCodeSandbox SDKOnaboat
Full VM (own kernel)YesYesYes
Docker insideYesYesYes
Nested virtualizationNo documented wayNo documented wayYes
RootYesYesYes
SystemdNot publishedNot publishedYes
Desktop GUIWith your own setupNo documented wayYes
BrowserWith your own setupYesYes
Computer-use APINo documented wayNo documented wayYes
SSHNo documented wayYesYes
Persistent diskYesYesYes
Pause/resumeYesYesYes
Automatic snapshotsYesNo documented wayYes
Fork/cloneYesNo documented wayYes
Live fork (no pause)YesNo documented wayYes
Memory forkYesNo documented wayNo documented way
Custom image (Docker or snapshot)YesYesYes
≥24 h sessionsYesYesYes
Idle auto-stopYesYesNo documented way
Wake on requestYesNo documented wayNo documented way
HTTPS preview URLsYesYesYes
Raw TCP inboundNo documented wayNo documented wayYes
Public IPv4No documented wayNo documented wayNo documented way
Egress allowlistNo documented wayNo documented wayNo documented way
Secret proxyNo documented wayNo documented wayYes
Secret proxy for any APINo documented wayNo documented wayYes
Preinstalled agentsNo documented wayYesYes
Agent harness APINo documented wayYesYes
MCP serverNo documented wayNo documented wayNo documented way
GPUNo documented wayYesNo documented way
WindowsNo documented wayNo documented wayNo documented way
Arm64No documented wayNo documented wayNo documented way
Self-hostingNo documented wayNo documented wayNo documented way
BYOCNo documented wayYesNo documented way
Open sourceNo documented wayNo documented wayNo documented way
Scoped API keysNot publishedNot publishedYes
Spend limitsNot publishedYesYes
Usage per sandbox (API)No documented wayNo documented wayYes
Audit logsNot publishedNo documented wayNo documented way
SSOYesYesNo documented way
SOC 2YesYesNo documented way
HIPAANo documented wayNo documented wayNo documented way
EU data residencyNo documented wayYesNo documented way
Zero data retentionNot publishedNot publishedYes

Performance

CodeSandbox SDKNot measured
OnaNot measured
boat28.06 runs/s

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.

ScenarioCodeSandbox SDK, a monthOna, a monthboat, 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.

ScenarioCodeSandbox SDKOnaboat
One coding agent, workdays
  • disk beyond 20 GiB: price unknown
  • egress price not published
  • negotiated / enterprise price
  • different kind of product: CI runner
  • needs talk to sales: plan "Enterprise (AWS Marketplace 12-month contract)" is negotiated with sales
  • egress price not published
None for this scenario
One agent that never stops
  • disk beyond 20 GiB: price unknown
  • egress price not published
  • negotiated / enterprise price
  • different kind of product: CI runner
  • needs talk to sales: plan "Enterprise (AWS Marketplace 12-month contract)" is negotiated with sales
  • egress price not published
None for this scenario
50 agents in parallel
  • egress price not published
  • Enterprise (AWS Marketplace 12-month contract): max 3 concurrent (not published; assumed like its other plans)
  • negotiated / enterprise price
  • different kind of product: CI runner
  • needs talk to sales: plan "Enterprise (AWS Marketplace 12-month contract)" is negotiated with sales
None for this scenario
Sandboxes for your users
  • Scale: max 250 concurrent
  • egress price not published
  • Enterprise (AWS Marketplace 12-month contract): max 3 concurrent (not published; assumed like its other plans)
  • negotiated / enterprise price
  • different kind of product: CI runner
  • needs talk to sales: plan "Enterprise (AWS Marketplace 12-month contract)" is negotiated with sales
None for this scenario
1,000 short jobs at once
  • Scale: max 250 concurrent
  • egress price not published
  • Enterprise (AWS Marketplace 12-month contract): max 3 concurrent (not published; assumed like its other plans)
  • negotiated / enterprise price
  • different kind of product: CI runner
  • needs talk to sales: plan "Enterprise (AWS Marketplace 12-month contract)" is negotiated with sales
  • 2,400 starts/day included, paid above that (needs ~6,667)
  • 600 starts/hour included, paid above that (needs ~1,000)
  • starts above 90/min are paid, and starts above 270/min fail with 429

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