CodeSandbox SDK vs Freestyle
Both keep memory while a machine sleeps and can fork a running one. CodeSandbox SDK runs Firecracker VMs that hibernate after an idle timeout and wake on an HTTP request. Freestyle gives each agent a whole Linux VM with systemd, Docker and nested virtualization, which pauses with its memory and wakes on the next request.
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.
Freestyle
Freestyle sells full Linux virtual machines for AI agents, built for long running, complex tasks.
Each Freestyle VM is a KVM virtual machine with its own kernel, booted from a base snapshot. The default Ubuntu image has systemd, Docker and coding agent CLIs preinstalled. VMs can be paused with their memory, snapshotted while running, forked and woken by the next request. Every VM starts behind a default-deny firewall. You drive it from a TypeScript SDK, a CLI or an API.
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 | Freestyle: price rank | boat: price rank |
|---|---|---|---|
| Software factory 100 at once · 4 vCPU / 8 GB · 2,200 sessions of 8 h a month Both fit. Freestyle adds systemd, SSH and /dev/kvm; CodeSandbox SDK runs Docker on every VM with a 20 GB disk. boat has Docker, systemd, /dev/kvm and a 51 GB disk saved every minute. | 32nd cheapest of 365 $3,731 a month | 31st cheapest of 365 $3,311 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 | 49th cheapest of 361 $4,195 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: a CodeSandbox SDK VM hibernates with its memory and wakes on a request, and a Freestyle VM pauses with its memory and wakes on the next request. boat's start limits make big bursts a compromise. | 54th cheapest of 336 $642 a month | 46th cheapest of 336 $482 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 Freestyle Pro allows 400 VMs at once, enough for 300 users. CodeSandbox SDK's Scale plan stops at 250. boat allows 100 to 2,000 at once by plan, within per-plan start limits. | 140th of 349, with limits $1,707 a month | 26th cheapest of 349 $1,358 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 | 341st of 349, with limits $3,861 a month | 116th of 349, with limits $6,600 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 Freestyle Pro allows 400 VMs at once, and CodeSandbox SDK's Scale plan 250. boat starts a fresh VM per task from a saved snapshot, within its start limits. | 77th cheapest of 359 $1,335 a month | 68th cheapest of 359 $1,046 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 Freestyle's own docs say sustained high-CPU jobs suit other providers better. CodeSandbox SDK is not in the public CPU benchmark we use. boat runs CI jobs on full VMs with Docker and /dev/kvm. | 96th cheapest of 374 $860 a month | 169th of 374, with limits $625 a month | 2nd cheapest of 374 $86 a month |
| 24/7 dev boxes 1 machine 24/7 · 4 vCPU / 8 GB Freestyle is a plain VM with systemd and SSH that you can leave on. CodeSandbox SDK connects through its SDK, with no SSH documented. boat has built-in SSH and needs auto-stop turned off (default 1 h). | 316th of 371, with limits $240 a month | 102nd cheapest of 371 $151 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 desktop. Freestyle's official guides install GNOME or headed Chromium with noVNC. On CodeSandbox SDK you add a VNC desktop to your own template. boat streams a built-in 60 fps desktop with computer-use tools. | 54th cheapest of 367 $1,236 a month | 51st cheapest of 367 $940 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 On Freestyle you install Chromium from its official guide and connect over CDP. CodeSandbox SDK has a headless Chromium template. boat has Chrome on a built-in desktop. | 125th of 356, with limits $741 a month | 99th of 356, with limits $482 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 | 110th cheapest of 343 $482 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 | 183rd of 327, with limits $6,560 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 | 28th cheapest of 351 $482 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 | Freestyle | boat |
|---|---|---|---|
| Isolation | Firecracker microVM with its own kernel | Full KVM VM with its own kernel on bare metal; Freestyle says it oversubscribes hosts | Full VM with its own kernel, on hosts dedicated to boat (AMD Ryzen 7 9700X and Ryzen 9 9950X); vCPUs are shared |
| Nested virtualization | Not documented | Yes, full KVM support inside the VM | Yes: /dev/kvm, so Android emulators and VMs run inside |
| Systemd and SSH | Terminals, commands and files through the SDK; SSH and systemd not documented | Systemd is pid 1; SSH access | Built-in SSH, root and systemd |
| Disk | 20 GB disk per VM; more on request, price not published | A disk that stays, billed on its allocated size, also while paused (60,000 GiB-hours free a month) | 51 GB disk on the default size, saved every minute and at each stop; kept at least 14 days while stopped |
| Sleep and wake | Hibernates with a memory snapshot after an idle timeout (up to one day); resumes in about 0.5 to 2 s; an HTTP request can wake it | Pause keeps memory; a VM paused by an idle timeout wakes on the next request; no idle timeout unless you set one | Auto-stop timer (default 1 hour), not idle detection; resume boots the machine again |
| Fork | Fork a hibernated sandbox from its snapshot, or a running one sharing its memory | Clone a running VM without pausing it; snapshots capture memory and disk | Fork a running sandbox from its last 1-minute snapshot (disk only) |
| Biggest machine | 16 cores / 32 GB on Scale, up to 64 cores / 128 GB on Enterprise | Up to 32 vCPU / 64 GiB on Pro, 64 / 128 with Enterprise custom limits | Up to 16 vCPU / 32 GB on the $100 plan and above |
| Desktop, browser and computer use | Headless Chromium template; you can install a VNC desktop in your own Dockerfile | Official guides install GNOME or headed Chromium with noVNC; you drive the browser with Playwright or CDP | Linux desktop and Chrome streamed at 60 fps, with computer-use tools installed |
| Coding agents | You install your own agent in the template and run it through the commands API | claude, codex, opencode and openclaw installed, driven through exec, a PTY or the Claude Agent SDK | Seven harnesses installed, with a prompt, steer and events API |
| Keeping API keys out of the sandbox | Secrets go in as environment variables; no credentials proxy documented | Credentials injected at the edge for HTTPS headers, Postgres and S3 | Optional AI credentials proxy ($1 a day plus $1 per 1,000 requests); 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 not documented | HTTPS on style.dev names or your own domain, forward auth, firewall ingress rules, a public IPv6 per VM | SSH, up to 50 HTTPS URLs per sandbox (token-gated by default), raw ports over public IPv6 |
| Outbound rules | No egress allowlist or static egress IP documented | Default-deny firewall with allow rules by IP, VM, VPC or exact domain | Open internet; filter inside the VM with nftables |
| Regions | A country hint steers scheduling, for example to Europe, but placement is not guaranteed | Not published | Germany, Finland and France; you cannot pick a region; no US or Asia region |
Every feature Battleships tracks (43)
| Feature | CodeSandbox SDK | Freestyle | boat |
|---|---|---|---|
| Full VM (own kernel) | Yes | Yes | Yes |
| Docker inside | Yes | Yes | Yes |
| Nested virtualization | No documented way | Yes | Yes |
| Root | Yes | Yes | Yes |
| Systemd | Not published | Yes | 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 | With your own setup | Yes |
| SSH | No documented way | Yes | 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 | Yes | 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 | 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 | No documented way | No documented way |
| Self-hosting | No documented way | No documented way | No documented way |
| BYOC | No documented way | No documented way | No documented way |
| Open source | No documented way | No documented way | No documented way |
| Scoped API keys | Not published | Yes | 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 | Yes | No documented way |
| SOC 2 | Yes | Not published | No documented way |
| HIPAA | No documented way | Not published | No documented way |
| EU data residency | No documented way | Not published | No documented way |
| Zero data retention | Not published | Not published | Yes |
Performance
In StarSling's run of 3 October 2026 (run 37073680030), the V8 Web Tooling Benchmark at 4 vCPU / 8 GB, median of 5 sandboxes: boat did 28.06 runs per second (2nd of 15, shared) and Freestyle 10.22 (14th). CodeSandbox SDK is not in that run, so we cannot say how it compares at CPU work. Every boat sandbox in that 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 Freestyle at 2.0 s and CodeSandbox SDK at 11.76 s median with 100 at once (6 November 2026), each at its default size; boat is not in ComputeSDK. Providers ran on different hardware in different regions.
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 is 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 | Freestyle, 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 | $27 · Free | $20 · $20/mo |
| One agent that never stops 4 vCPU / 8 GB, 50 GB disk, running 24/7 all month | $341 · Scale | $159 · Free | $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 | $2,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 | $581 · Pro | $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,305 · Pro · with limits | $8,800 · $2000/mo · with limits |
CodeSandbox SDK: CodeSandbox SDK sells VM credits at $0.01486 each, and a 4 vCPU / 8 GB VM burns 20 an hour, about $0.30. Billing is per started minute while the VM runs, including idle time before it hibernates. A hibernated VM costs nothing. The Scale plan adds a $170 monthly platform fee that is not usage credit.
Freestyle: Freestyle bills per second for the vCPU ($0.04032 per hour), RAM ($0.0129 per GiB-hour) and disk allocated to a VM, busy or idle, after monthly allowances. A paused VM bills only storage. Hobby and Pro set a $50 or $500 monthly minimum that counts as usage, and on Free the allowances are hard stops and no card is needed.
Freestyle: Plans cost $20, $100, $500 or $2,000 a month. The whole plan price comes back as VM time for that month, and it does not carry over. A default sandbox costs $0.036 an hour, billed per second while it runs, busy or idle. A stopped sandbox has no compute charge, but saved snapshots above the included count and the AI credentials proxy still charge. The $20 plan includes 200 starts a day; extra starts cost $0.03 to $0.07.
Limits in those scenarios
CodeSandbox SDK's Scale plan allows 250 VMs at once, so 300 users at once needs an Enterprise plan; it publishes no price for disk beyond 20 GB or for egress, and Together's docs call this SDK deprecated. Freestyle Pro allows 400 VMs at once, which fits 300 users but not 1,000 short jobs at the same moment. On Freestyle Free the monthly allowances are hard stops, so an agent that runs all month needs Hobby or Pro. boat's plans allow 100 to 2,000 at once; at 1,000 jobs at once its $2,000 plan charges for starts above 90 a minute, refuses them above 270, and never queues a start, so none of the three fits that one on a self-serve plan.
| Scenario | CodeSandbox SDK | Freestyle | 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 |
|
|
|
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, or when you fork many runs from one warm state, and you accept that Together calls this SDK deprecated.
- Forks that share memory. For branching many runs from one warm state: fork a running sandbox while it shares memory with its parent.
- Hibernates on its own, wakes on request. A VM hibernates after its idle timeout with its processes kept, and an HTTP request wakes it in about 0.5 to 2 seconds.
- Any Dockerfile as a template. Templates build from any Dockerfile you write, and every VM runs Docker with root.
Use Freestyle when
you need a whole Linux machine with systemd and nested virtualization that pauses with its memory, a default-deny firewall per VM, or more than 16 vCPU in one machine.
- A whole Linux machine. Freestyle VMs have systemd, SSH, Docker and nested virtualization, with an official Android emulator guide.
- Bigger machines and more at once. Pro VMs go up to 32 vCPU / 64 GiB, and Pro allows 400 VMs at once.
- Live clones and a default-deny firewall. Freestyle clones a running VM without pausing it, and each VM starts with no network until you allow it.
Where boat fits
Look at boat if your agents do real work for hours: builds, tests, Docker and emulators. CodeSandbox SDK is a sandbox SDK whose VMs hibernate with memory, and Freestyle is a whole machine that pauses with its memory. boat gives you a whole machine with a disk saved every minute, a desktop and agents installed. boat does not keep memory across a stop, and it tops out at 16 vCPU.
More CPU work per second where measured
In StarSling's run of 3 October 2026, boat did 28.06 runs per second and Freestyle 10.22; CodeSandbox SDK is not in that run. That boat sandbox ran on a Ryzen 9 9950X host, and boat does not promise a CPU model. Freestyle has /dev/kvm; CodeSandbox SDK does not document it.
Agents you drive from outside
On CodeSandbox SDK you install the agent and run it through the commands API, and on Freestyle you start a CLI through exec and parse its output. boat has one API to prompt, steer and follow seven installed agents.
A desktop with no setup
Freestyle's guides install a desktop for you to keep in your own snapshot, and on CodeSandbox SDK you build one into a template. boat streams a 60 fps desktop in every sandbox.
Use boat when your agents do CPU-heavy work for hours: builds, tests, Docker, emulators, a desktop and a browser, with an API to drive the agents inside. Compare it one to one: boat vs CodeSandbox SDK and boat vs Freestyle.
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 Freestyle?
No. Freestyle costs less in every scenario we priced: one agent on workdays is $27 against $193, one agent running all month $159 against $341, and 50 agents in parallel $2,139 against $2,500. Freestyle also fits 300 users at once at $581, which CodeSandbox SDK's Scale plan does not. boat costs $20, $26 and $317 in the first three.
Which is faster, CodeSandbox SDK or Freestyle?
For CPU work we cannot compare them: Freestyle did 10.22 runs per second in StarSling's run of 3 October 2026, and CodeSandbox SDK is not in that run. boat did 28.06 on a Ryzen 9 9950X host. For start time, ComputeSDK measured Freestyle at 2.0 s and CodeSandbox SDK at 11.76 s median with 100 at once.
Can CodeSandbox SDK or Freestyle run Docker and Android emulators?
Both run Docker. Freestyle documents nested virtualization and an Android emulator guide. CodeSandbox SDK does not document /dev/kvm. boat exposes /dev/kvm in every sandbox.
Do they keep memory when a sandbox sleeps?
Yes, both do. CodeSandbox SDK hibernates after its idle timeout and wakes on an HTTP request. Freestyle pauses when you ask or when an idle timeout you set runs out, and wakes on the next request. boat keeps the disk and boots the machine again on resume.
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.
Where do CodeSandbox SDK and Freestyle run?
Freestyle does not publish its regions. CodeSandbox SDK takes a country hint, for example to Europe, but does not guarantee placement. boat runs on machines in Germany, Finland and France, and you cannot pick a region.
Try boat
Install the CLI, then run boat new.
7-day free trial
More comparisons
- boat vs CodeSandbox SDK
- boat vs Freestyle
- 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