CodeSandbox SDK vs Unikraft Cloud
Both run each sandbox as a Firecracker-based microVM that sleeps when idle and wakes on the next request. CodeSandbox SDK gives you a dev VM with Docker inside that you size per sandbox. Unikraft Cloud turns your Dockerfile into a small VM that boots in milliseconds and shares a flat plan pool.
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.
Unikraft Cloud
Unikraft Cloud is a microVM cloud from Unikraft Inc. It runs any Dockerfile-based workload as a minimal Linux microVM, with cold starts it states as under 10 ms and scale-to-zero.
Your Dockerfile becomes the VM image at build time. Each instance runs on a customized Firecracker VMM and can go into standby when no traffic arrives. It is a general compute platform for dense, bursty work such as HTTP services, browsers and agent fleets. It sells flat self-serve plans, plus Enterprise dedicated hosts, on-prem and bring your own cloud. You reach instances through services, the CLI and a sandbox plugin for commands and files. For SSH or a desktop, you add them to your image with its official guides.
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 | Unikraft Cloud: price rank | boat: price rank |
|---|---|---|---|
| Software factory 100 at once · 4 vCPU / 8 GB · 2,200 sessions of 8 h a month CodeSandbox SDK runs Docker inside each VM. Unikraft builds your Dockerfile into the VM image, and its docs describe no container runtime inside a running instance. boat adds SSH, systemd and /dev/kvm next to Docker. | 32nd cheapest of 365 $3,731 a month | Not ranked: misses a requirement | 5th cheapest of 365 $634 a month |
| Always-on AI employees 50 machines 24/7 · 2 vCPU / 4 GB | 50th cheapest of 361 $4,811 a month | Not ranked: misses a requirement | 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 Short code runs that sleep between calls suit both. Self-serve Unikraft runs up to 24 instances at once, and standby instances do not count against the pool. CodeSandbox SDK's Scale plan allows 250 VMs at once. | 54th cheapest of 336 $642 a month | Not ranked: misses a requirement | 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 allows 250 VMs at once on Scale, and Unikraft Pro 24 running instances, so 300 active users need Enterprise on either. On boat, 300 small sandboxes at once need the $100 plan with 2 seats. | 140th of 349, with limits $1,707 a month | Not ranked: misses a requirement | 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 Both can start copies from a memory snapshot, so many rollouts can branch from one warm state. A boat fork copies the last 1-minute disk snapshot, without memory. | 341st of 349, with limits $3,861 a month | Not ranked: misses a requirement | 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 | 77th cheapest of 359 $1,335 a month | Not ranked: misses a requirement | 10th cheapest of 359 $200 a month |
| CI runners 40 at once · 8 vCPU / 16 GB · 6,000 sessions of 12 min a month CI jobs that build Docker images fit CodeSandbox SDK. Unikraft documents no Docker inside a running instance, and its nested virtualization is Enterprise only. boat has /dev/kvm on every sandbox, and each job start counts against its plan's start limits. | 96th cheapest of 374 $860 a month | Not ranked: misses a requirement | 2nd cheapest of 374 $86 a month |
| 24/7 dev boxes 1 machine 24/7 · 4 vCPU / 8 GB Neither has a built-in SSH endpoint. On Unikraft you add sshd to your image and reach it through a TLS tunnel. CodeSandbox SDK connects through its SDK. boat gives direct SSH into every sandbox. | 316th of 371, with limits $240 a month | 121st cheapest of 371 $39 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 Neither ships a built-in desktop. CodeSandbox SDK lets you add a VNC desktop to your own Dockerfile, and Unikraft documents a VNC desktop recipe you build into your image. boat streams one at 60 fps with computer-use tools. | 54th cheapest of 367 $1,236 a month | Not ranked: misses a requirement | 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 On both you build your own browser into an image; browser companies run their browsers on Unikraft at scale. boat ships Chrome on a built-in desktop in every sandbox. | 125th of 356, with limits $741 a month | Not ranked: misses a requirement | 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 | Not ranked: misses a requirement | 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 | Not ranked: misses a requirement | 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 | Not ranked: misses a requirement | 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 | Unikraft Cloud | boat |
|---|---|---|---|
| Isolation | Firecracker microVM with its own kernel | Minimal Linux microVM on a customized Firecracker VMM; full VMs on Enterprise | Full VM with its own kernel, on AMD Ryzen 7 9700X and Ryzen 9 9950X hosts dedicated to boat; vCPUs are shared |
| Machine size | 2 to 16 cores per sandbox, up to 32 GB on Scale; 64 cores / 128 GB on Enterprise | Plan pool shared by all running instances: 2 vCPU / 4 GiB, 8 vCPU / 8 GiB or 24 vCPU / 32 GiB; per-instance maximum not published | 4 vCPU / 8 GB by default, 2 to 16 vCPU per sandbox; 16 vCPU / 32 GB needs the $100 plan or higher; disk fixed per size (51 to 251 GB) |
| Docker and image | Docker and root; built from any Dockerfile | Runs as root; the Dockerfile becomes the VM image, and the docs describe no container runtime inside a running instance | Docker with Compose, systemd and root; start from boat's image or a saved snapshot, not your own Docker image |
| Nested virtualization | Not documented | Yes, with a per-instance flag and permission, Enterprise only | Yes, /dev/kvm on every sandbox for Android emulators and VMs |
| Shell access | Terminals, commands and files through the SDK; SSH is not documented | Commands and files through the sandbox plugin and CLI; SSH with setup: run sshd in your image and connect through a TLS service port and a local tunnel | SSH built in on every sandbox, no tunnel, plus exec and files over the API |
| Sleep and wake | Hibernates with a memory snapshot after an idle timeout; an HTTP request wakes it | Standby after a 1 second idle cooldown by default; traffic wakes it in milliseconds; stateful mode keeps memory | Auto-stop timer (default 1 h, up to 30 days, or off on a paid plan) that does not watch for idle; disk saved every minute and at each stop; started again by API |
| Fork | Fork a hibernated sandbox from its memory snapshot, or a running one that shares memory with its parent | Checkpoint a running microVM's memory and volumes with a pause of a few milliseconds, then start new instances from it | Fork a running sandbox from its last 1-minute disk snapshot; memory is not copied |
| Running at once (self-serve) | 250 VMs on Scale | 24 running instances on Pro, sharing 24 vCPU / 32 GiB; up to 5,000 in standby | 100 on the $20 plan up to 2,000 on the $2,000 plan; starts per minute, hour and day are capped per plan |
| Inbound access | HTTPS host per port, public by default, signed tokens for private sandboxes; raw TCP is not documented | Services on its load balancer: HTTP on 80, HTTPS on 443, TLS-wrapped TCP on other ports, custom domains; no public IP per instance | Up to 50 HTTPS URLs, token-gated by default; raw ports on a public IPv6 address; SSH over a shared IPv4 host:port; no dedicated IPv4 |
| Desktop and browser | No built-in desktop; a headless Chromium template, and you can install a VNC desktop in your own Dockerfile | No prebuilt desktop; an official VNC/noVNC desktop recipe you build into your image | 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 | None installed; you add the agent to your own image | 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 | Network shield injects secrets into any HTTP traffic, Enterprise only, limited access | Optional AI credentials proxy on every plan, $1 per day on plus $1 per 1,000 requests; covers supported model providers; other secrets still enter the sandbox |
| Compliance | SOC 2 Type II listed on the Enterprise plan | SOC 2 Type II certified; HIPAA and audit logs on Enterprise | SOC 2 in progress; no SOC 2 report today |
| Regions | A country hint steers scheduling, but placement is not guaranteed | US, EU and Singapore by default, more metros on request | Germany, Finland and France; no US or Asia region; you cannot pick a region |
| Self-hosting | Not offered; the SDK FAQ says "not at this time" | Dedicated hosts, on-prem and your own cloud on Enterprise | No; hosted service only |
Every feature Battleships tracks (43)
| Feature | CodeSandbox SDK | Unikraft Cloud | boat |
|---|---|---|---|
| Full VM (own kernel) | Yes | Yes | Yes |
| Docker inside | Yes | No documented way | Yes |
| Nested virtualization | No documented way | Yes | Yes |
| Root | Yes | Yes | Yes |
| Systemd | Not published | Not published | Yes |
| Desktop GUI | With your own setup | With your own setup | Yes |
| Browser | With your own setup | With your own setup | Yes |
| Computer-use API | No documented way | No documented way | Yes |
| SSH | No documented way | With your own setup | Yes |
| Persistent disk | Yes | Yes | Yes |
| Pause/resume | Yes | Yes | Yes |
| Automatic snapshots | Yes | Yes | Yes |
| Fork/clone | Yes | Yes | Yes |
| Live fork (no pause) | Yes | Yes | Yes |
| Memory fork | Yes | Yes | 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 | Yes | No documented way |
| HTTPS preview URLs | Yes | Yes | Yes |
| Raw TCP inbound | No documented way | Not published | Yes |
| Public IPv4 | No documented way | No documented way | No documented way |
| Egress allowlist | No documented way | Yes | No documented way |
| Secret proxy | No documented way | Yes | Yes |
| Secret proxy for any API | No documented way | Yes | Yes |
| Preinstalled agents | No documented way | No documented way | Yes |
| Agent harness API | No documented way | No documented way | 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 | Yes | No documented way |
| Self-hosting | No documented way | Yes | 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 | Not published | Yes |
| Usage per sandbox (API) | No documented way | No documented way | Yes |
| Audit logs | Not published | Yes | No documented way |
| SSO | Yes | No documented way | No documented way |
| SOC 2 | Yes | Yes | No documented way |
| HIPAA | No documented way | Yes | 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 Unikraft Cloud is in the CPU benchmark 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. Unikraft states cold starts under 10 ms. That is its own figure and measures start time, not CPU speed.
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 Unikraft Cloud 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 | Unikraft Cloud, 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 | $39 · Hobby | $20 · $20/mo |
| One agent that never stops 4 vCPU / 8 GB, 50 GB disk, running 24/7 all month | $341 · Scale | $39 · Hobby | $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 | Not ranked: misses a requirement | $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 | Not ranked: misses a requirement | $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 | Not ranked: misses a requirement | $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 costs nothing. Scale adds a $170 monthly platform fee that is not usage credit.
Unikraft Cloud: A flat monthly fee buys a pool of running capacity: free for 2 vCPU / 4 GiB, $39 for 8 vCPU / 8 GiB, $199 for 24 vCPU / 32 GiB. Standby instances do not count against the pool. Unikraft publishes no per-hour, disk or egress price, so anything bigger is an Enterprise quote.
Unikraft Cloud: Plans cost $20, $100, $500 or $2,000 a month, and the whole plan price comes back as VM time for that month. Unused VM time expires at the end of the period. A 4 vCPU / 8 GB sandbox costs $0.036 an hour, billed per second while it runs, busy or idle. The $20 plan includes 12 starts a minute and 200 a day; extra starts cost $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 optional credentials proxy still charge while it is stopped.
Limits in those scenarios
Unikraft's pools are shared by every running instance, so one 4 vCPU / 8 GB agent fills the Team pool, and the 50-agent, user-sandbox and burst scenarios fit no self-serve plan. CodeSandbox SDK fits 50 agents at $2,500 a month but allows 250 VMs at once on Scale, so 300 user sandboxes or 1,000 jobs at once need Enterprise. Its 20 GB disk and egress have no published price beyond that. boat fits every scenario except the burst. boat never queues a start: on the $2,000 plan, starts above 90 a minute are paid extras and starts above 270 a minute fail with 429.
| Scenario | CodeSandbox SDK | Unikraft Cloud | 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
you need sandboxes with Docker inside that hibernate with their memory and wake on the next HTTP request, in the hundreds at once, and you accept that Together calls this SDK deprecated.
- A dev VM with Docker inside. Good when each sandbox needs Docker inside, built from any Dockerfile, with its own cores and memory up to 16 cores and 32 GB.
- Hundreds of sandboxes self-serve. The Scale plan runs 250 VMs at once. Unikraft's largest self-serve plan runs 24 instances at once.
- Memory forks of a running sandbox. Useful for branching many runs from one warm state: fork a running sandbox while it shares memory with its parent.
Use Unikraft Cloud when
you run many small services or browsers that sleep most of the time and must wake in milliseconds, want a free plan, need US or Asia regions or SOC 2 Type II today, or want GPUs, on-prem or your own cloud under an Enterprise contract.
- Millisecond starts and scale-to-zero. Best for many small services that sleep most of the time and must answer the next request in milliseconds.
- A free plan and regions in the US and Asia. Hobby is free. Pick US, EU or Singapore metros, while CodeSandbox SDK only takes a best-effort country hint.
- SOC 2, GPUs, arm64 and your own hardware. Compliance report today. On Enterprise: NVIDIA GPUs, arm64 hosts, dedicated hosts, on-prem or your own cloud.
Where boat fits
CodeSandbox SDK and Unikraft Cloud are both built around sandboxes that sleep fast and wake on the next request. boat fits agents that work for hours, installing tools, running Docker and emulators, opening a browser and serving things to other people.
A whole machine with SSH and /dev/kvm
CodeSandbox SDK does not document SSH or nested virtualization. On Unikraft, SSH needs sshd in your image and a tunnel, Docker inside a running instance is not documented, and /dev/kvm needs an Enterprise contract. boat has SSH, systemd, Docker and /dev/kvm on every plan.
Desktop and agents installed
On both you bring your own agent, browser and desktop recipe. boat installs seven coding agents you drive from outside and streams a 60 fps desktop. Its optional paid proxy keeps model keys out.
boat's own limits
boat has no wake on request, no memory snapshot and no custom Docker image. It has no US or Asia region and no SOC 2 report today. Starts are capped per plan, so 1,000 short jobs at once do not fit even the $2,000 plan.
Use boat when your agents need a whole machine to work in: SSH, Docker, /dev/kvm, a built-in desktop and browser, and coding agents you drive from outside, with up to 100 sandboxes at once from the $20 plan. Compare it one to one: boat vs CodeSandbox SDK and boat vs Unikraft Cloud.
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 Unikraft Cloud?
For one agent, no. A 4 vCPU / 8 GB agent that never stops is $341 a month on CodeSandbox SDK and $39 on Unikraft's Team pool. boat comes to $26. For 50 agents, CodeSandbox SDK fits at $2,500 a month, no self-serve Unikraft plan is big enough, and boat comes to $317.
Which is faster?
By design, Unikraft starts faster: it states cold starts under 10 ms, while CodeSandbox SDK resumes hibernated VMs in about 0.5 to 2 s. Neither is in the CPU benchmark we use. 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.
Can CodeSandbox SDK or Unikraft Cloud run Docker?
CodeSandbox SDK runs Docker with root inside each VM. Unikraft uses your Dockerfile to build the VM itself, and its docs do not describe a container runtime inside a running instance. boat sandboxes have Docker, systemd and /dev/kvm ready to use.
Can I SSH into either one?
CodeSandbox SDK does not document SSH; it connects through its SDK, Node and browser clients. On Unikraft, yes with setup: add an SSH server to your image, expose it as a TLS service and connect through a local tunnel. Every boat sandbox takes SSH directly, with no tunnel.
How many sandboxes can run at once?
CodeSandbox SDK's Scale plan allows 250 VMs at once. Unikraft's Pro plan allows 24 running instances sharing 24 vCPU and 32 GiB, with up to 5,000 in standby. Beyond that both need Enterprise. boat's plans run 100 to 2,000 sandboxes at once, with starts capped per plan.
Is boat SOC 2 compliant?
SOC 2 is in progress, and boat has no SOC 2 report today. Unikraft says it is SOC 2 Type II certified, and CodeSandbox lists SOC 2 Type II on its Enterprise plan. boat's live status is at status.ascii.dev and its data retention policy at docs.boat.dev/data-retention.
Try boat
Install the CLI, then run boat new.
7-day free trial
More comparisons
- boat vs CodeSandbox SDK
- boat vs Unikraft Cloud
- 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