CodeSandbox SDK vs smol machines
Both give each sandbox its own microVM with its own kernel. CodeSandbox SDK is strongest at VMs that hibernate with their memory, wake on the next HTTP request and build from your own Dockerfile. smol machines is strongest at an open-source engine you can run anywhere, live branches of a running machine, outbound allowlists and credentials kept out of the guest.
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.
smol machines
smol machines makes isolated Linux microVMs that run the same way on your laptop, in their hosted cloud, or on your own servers.
The core is smolvm, an open-source microVM engine built on libkrun. Each machine has its own guest kernel. smol cloud is the paid hosted service. It runs machines behind a REST API, Node, Python and Rust SDKs, and a managed agents API. It is for developers who want one VM model from local development to production, with live branching of running machines.
- Uptime SLA
- 99.95% on Pro, Startup and Enterprise
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 | smol machines: price rank | boat: price rank |
|---|---|---|---|
| Software factory 100 at once · 4 vCPU / 8 GB · 2,200 sessions of 8 h a month Both run Docker inside the VM. Neither documents SSH. smol cloud has nested virtualization on Startup and Enterprise. boat adds SSH and /dev/kvm on every plan, plus installed coding agents you drive by API. | 32nd cheapest of 365 $3,731 a month | 105th of 365, with limits $604 a month | 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 | 41st cheapest of 361 $1,038 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 Both fit short code runs. CodeSandbox SDK wakes hibernated VMs with their memory and bills per started minute. smol machines has a one-minute minimum and a /code endpoint for Python and JavaScript. | 54th cheapest of 336 $642 a month | 16th cheapest of 336 $140 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 smol machines fits 300 user sandboxes at once on Startup. CodeSandbox SDK's Scale plan allows 250 VMs at once, so 300 needs Enterprise. boat fits too, with a desktop and up to 50 HTTPS URLs per user, and with start limits per plan. | 140th of 349, with limits $1,707 a month | 12th cheapest of 349 $531 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 Both fork a running sandbox with its memory, so many rollouts start from one prepared state. A boat fork copies the disk from the last 1-minute snapshot and boots fresh. | 341st of 349, with limits $3,861 a month | 119th of 349, with limits $6,978 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 | 77th cheapest of 359 $1,335 a month | 49th cheapest of 359 $670 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 CI jobs that build Android apps or boot VMs need nested virtualization. smol cloud exposes it on Startup ($150 a month plus usage) and Enterprise. CodeSandbox SDK does not document it. boat exposes /dev/kvm on every plan. | 96th cheapest of 374 $860 a month | 69th cheapest of 374 $514 a month | 2nd cheapest of 374 $86 a month |
| 24/7 dev boxes 1 machine 24/7 · 4 vCPU / 8 GB A box that runs all day bills by the hour on all three. A hibernated CodeSandbox SDK VM costs nothing. A stopped smol machine still pays for its disk. A stopped boat sandbox has no compute charge, but saved snapshots above the included count and the optional credentials proxy still charge. | 316th of 371, with limits $240 a month | 230th of 371, with limits $29 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. On CodeSandbox SDK you add a VNC desktop to your own Dockerfile. On smol cloud you install a desktop and a screen stream in your own image. boat streams a built-in desktop at 60 fps with computer-use tools. | 54th cheapest of 367 $1,236 a month | 135th of 367, with limits $156 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 CodeSandbox SDK has a headless Chromium template. smol's guide runs Playwright or Puppeteer on a headless Chromium image. boat ships Chrome on a built-in desktop. | 125th of 356, with limits $741 a month | 58th of 356, with limits $136 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 | 97th cheapest of 343 $242 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 | 145th of 327, with limits $4,344 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 | 59th of 351, with limits $377 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 | smol machines | boat |
|---|---|---|---|
| Isolation | Firecracker microVM with its own kernel | libkrun microVM with its own guest kernel | Full VM with its own kernel, on AMD Ryzen 7 9700X and Ryzen 9 9950X hosts dedicated to boat; vCPUs are shared |
| Biggest machine | 16 cores / 32 GB on Scale, 64 cores / 128 GB on Enterprise | 32 vCPU / 32 GB on Startup, 16 vCPU / 24 GB on Pro, 8 vCPU / 16 GB on Standard | 16 vCPU / 32 GB on the $100 plan and above |
| Pause and resume | Hibernates with a memory snapshot and resumes with processes running; an HTTP request wakes it; no charge while hibernated; after a period of inactivity the snapshot is archived and resume takes longer | A stop keeps /workspace and the image, and empties /tmp and memory; stopped disk bills at $0.0001/GB-hour; checkpoints save a running machine with its RAM; the next command starts it again | Disk saved every minute and at each stop, kept at least 14 days; memory is not saved, so a resume is like a reboot; no compute charge while stopped |
| Fork | Fork a hibernated sandbox from its memory snapshot, or a running one that shares memory with its parent | Branch a running machine with its memory and processes; checkpoints capture RAM to durable storage | Fork a running sandbox from its last 1-minute disk snapshot; memory is not copied |
| Docker, root and image | Docker and root; templates build from any Dockerfile | Docker inside the machine, with its data on the ext4 disk; machines start from OCI images | Docker, systemd and root; start from boat's image or a saved snapshot, not your own Docker image |
| Nested virtualization | Not documented | Yes on Startup ($150/month plus usage) and Enterprise; refused on Standard and Pro | Yes on every plan: /dev/kvm for Android emulators and VMs |
| Shell access | Terminals, commands and files through the SDK; SSH is not documented | Command API, sessions and a WebSocket terminal capped at one hour per connection; no SSH route documented | SSH, plus exec and files over the API |
| Inbound access | HTTPS host per port, public by default, signed tokens for private sandboxes; raw TCP and a public IP are not documented | Up to 16 published ports via token URLs or an authenticated connect route, plus a TCP tunnel route; no dedicated IP | Up to 50 HTTPS URLs, token-gated by default; raw ports on the sandbox's public IPv6 address; no static IPv4, and the IP changes at each resume |
| Outbound rules | No outbound allowlist documented | Blocked, open, or an allowlist of hosts and CIDR ranges | Open internet, no provider-side allowlist |
| Desktop and browser | No built-in desktop; a headless Chromium template, and you can install a VNC desktop in your own Dockerfile | You set it up: run Chromium from an OCI image (official guide); no hosted desktop or computer-use route in the cloud API | Built-in Linux 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 agents API: Claude Code, Codex, OpenCode or any command as the harness, with turns, cancel, event stream, pause/resume, rewind and branch | 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 | Stored credentials bound to a machine: the guest sees a placeholder, and the real value is swapped in on HTTPS to allowed hosts; plain env secrets are readable | Optional credentials proxy ($1 a day while on, plus $1 per 1,000 requests): real keys of supported model providers stay outside; other secrets enter the sandbox |
| Regions | A country hint steers scheduling, for example to Europe, but placement is not guaranteed | No region choice in the cloud API | Germany, Finland and France; no region choice; snapshot copies can be stored outside the EU |
| Self-hosting | Not offered; the SDK FAQ says "not at this time" | Open-source smolvm runs on your laptop or your own servers, with the same .smolmachine artifact | No; hosted service only |
Every feature Battleships tracks (43)
| Feature | CodeSandbox SDK | smol machines | boat |
|---|---|---|---|
| Full VM (own kernel) | Yes | Yes | Yes |
| Docker inside | Yes | Yes | Yes |
| Nested virtualization | No documented way | Yes | Yes |
| Root | Yes | Not published | Yes |
| Systemd | Not published | Not published | Yes |
| Desktop GUI | With your own setup | No documented way | 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 | No documented way | Yes |
| Persistent disk | Yes | Yes | Yes |
| Pause/resume | Yes | Yes | Yes |
| Automatic snapshots | Yes | No documented way | 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 | Yes | Yes |
| Agent harness API | No documented way | Yes | Yes |
| MCP server | No documented way | Yes | No documented way |
| GPU | No documented way | No documented way | 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 | Yes | No documented way |
| Scoped API keys | Not published | Not published | Yes |
| Spend limits | Not published | Yes | Yes |
| Usage per sandbox (API) | No documented way | Yes | Yes |
| Audit logs | Not published | Not published | No documented way |
| SSO | Yes | Yes | No documented way |
| SOC 2 | Yes | No documented way | No documented way |
| HIPAA | No documented way | No documented way | No documented way |
| EU data residency | No documented way | No documented way | No documented way |
| Zero data retention | Not published | Not published | Yes |
Performance
Neither CodeSandbox SDK nor smol machines 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. For start time, ComputeSDK measured CodeSandbox SDK at its default size: 11.76 s median with 100 starts at once (6 November 2026). smol machines publishes a boot time under 200 ms for smolvm. Start time is not CPU speed, and boat is not in a start-time benchmark.
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 smol machines 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 | smol machines, 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 | $25 · Standard | $20 · $20/mo |
| One agent that never stops 4 vCPU / 8 GB, 50 GB disk, running 24/7 all month | $341 · Scale | $93 · Standard | $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 | $1,139 · Pro | $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 | $465 · Startup | $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 | $1,389 · Startup | $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.
smol machines: smol cloud charges $0.04 for every hour a machine runs, plus $0.05 per active vCPU-hour and $0.0162 per active GB-hour of memory, with a one-minute minimum. Disk bills at $0.0001 per GB-hour, also while stopped. Pro ($20 a month) and Startup ($150 a month) are fees on top of usage, not credit. New accounts get $100 of credit once.
smol machines: 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
CodeSandbox SDK's Scale plan allows 250 VMs at once, so 300 user sandboxes and 1,000 short jobs at once need Enterprise. Each VM has a 20 GB disk, and the price for more disk and for egress is not published. smol machines caps machines by plan: 20 on Standard, 100 on Pro and 1,000 on Startup, and a stopped machine still holds a slot. So 50 agents needs Pro, and 1,000 short jobs needs Startup. boat allows 100 sandboxes at once on the $20 plan, 300 on $100 and 2,000 on $2,000. 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, so 1,000 jobs at once do not fit on boat either.
| Scenario | CodeSandbox SDK | smol machines | boat |
|---|---|---|---|
| One coding agent, workdays |
| None for this scenario | None for this scenario |
| One agent that never stops |
| None for this scenario | None for this scenario |
| 50 agents in parallel |
| None for this scenario | None for this scenario |
| Sandboxes for your users |
| None for this scenario | None for this scenario |
| 1,000 short jobs at once |
| None for this scenario |
|
Which one should you use?
Use CodeSandbox SDK when
your sandboxes sleep between visits and should wake on the next HTTP request with their memory intact, when you need your own Dockerfile image, and when you accept that Together calls this SDK deprecated.
- Hibernation with memory, woken by a request. Good for previews and code runs used in bursts: an idle VM sleeps with its memory and wakes on the next HTTP request.
- Nothing billed while asleep. A hibernated CodeSandbox SDK VM costs nothing. A stopped smol machine still pays for its disk.
- Your own Dockerfile, bigger machines and SOC 2 on Enterprise. Templates build from any Dockerfile. Enterprise offers up to 64 cores and 128 GB and lists a compliance report.
Use smol machines when
you want one open-source VM engine from your laptop to your own servers, fan out live branches of a running machine, limit outbound traffic to a list of hosts, or keep secrets out of the guest.
- Open source, from laptop to your own servers. Teams that want one VM engine locally, in a hosted cloud and on their own servers can use the open-source smolvm.
- Big bursts and many user sandboxes. Startup holds up to 1,000 machines, so 300 user sandboxes or 1,000 short jobs at once fit. CodeSandbox SDK's Scale plan allows 250.
- Outbound allowlists and credentials kept out of the guest. Teams that must limit which hosts a machine reaches, or keep secrets out of the guest as placeholders, get both on smol cloud.
Where boat fits
CodeSandbox SDK and smol machines are both good at small VMs that sleep, wake and fork fast. boat fits agents that work for hours and need a whole machine: Docker, emulators, SSH, a desktop and a browser, with coding agents installed.
SSH and /dev/kvm on every plan
Neither documents SSH on its hosted VMs, so every tool goes through an SDK or exec call, and smol's terminal drops each connection after one hour. smol cloud has nested virtualization on Startup and Enterprise. boat has SSH and /dev/kvm on every plan.
A desktop and agents installed
On both, a computer-use agent needs a desktop, Chromium and a screen stream that you install in your own image. boat streams a 60 fps desktop with Chrome and has seven coding agents installed. smol also has a managed agents API.
boat's own limits
boat has no memory hibernation, no memory fork, no outbound allowlist and no custom Docker image. Sandboxes run only in Germany, Finland and France. Starts are capped per plan: on the $20 plan, 12 a minute and 200 a day are included.
Use boat when your agents work for hours on a whole machine: Docker, /dev/kvm on every plan, SSH, a built-in desktop and browser, up to 50 HTTPS URLs and installed coding agents, at $0.036 an hour for 4 vCPU / 8 GB. Compare it one to one: boat vs CodeSandbox SDK and boat vs smol machines.
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 smol machines?
No. smol machines costs less in all five scenarios on this page. One coding agent on workdays is about $193 a month on CodeSandbox SDK and $25 on smol machines. 50 agents in parallel is $2,500 against $1,139. boat costs less than both in four of the five. For 1,000 short jobs at once, smol fits at $1,389 on Startup, and boat refuses starts above 270 a minute.
Which is faster, CodeSandbox SDK or smol machines?
Neither is in the CPU benchmark we use, so we cannot say which is faster. 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. smol machines publishes a boot time under 200 ms for smolvm, which is a start time, not CPU speed.
Can CodeSandbox SDK and smol machines run Docker?
Yes, both run Docker inside the VM. smol's guide says Docker data must live on the machine's ext4 disk. smol cloud exposes nested virtualization on Startup and Enterprise. CodeSandbox SDK does not document it. boat exposes /dev/kvm on every plan.
Can I SSH into either one?
Neither documents SSH. CodeSandbox SDK connects through its SDK with terminals, commands and files. smol cloud uses a command API and a WebSocket terminal capped at one hour per connection. Every boat sandbox has SSH as well as an exec and files API.
Can I self-host either one?
smol machines, yes: the smolvm engine and SDK are open source and run on macOS, Linux and Windows hosts. CodeSandbox SDK's FAQ says self-hosting is not offered at this time. boat is a hosted service only.
Is CodeSandbox SDK still maintained?
CodeSandbox is now part of Together AI. Together's docs call this SDK deprecated and name together-sandbox, which your organization must ask Together to enable, as its successor. The last SDK release was 2.4.2 in December 2025. Self-serve sign-up still runs through CodeSandbox.
Try boat
Install the CLI, then run boat new.
7-day free trial
More comparisons
- boat vs CodeSandbox SDK
- boat vs smol machines
- 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