CodeSandbox SDK vs Sprites

Both give each sandbox its own Firecracker VM that sleeps when idle and wakes on a request. CodeSandbox SDK builds the image from any Dockerfile and forks a running VM with its memory. Sprites gives you one fixed 8 vCPU machine with coding agents preinstalled and bills only the CPU and memory it uses.

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.

Sprites

Sprites is Fly.io's product for agents: persistent Linux computers you create by API or CLI, which sleep when idle and wake on the next request.

Each Sprite is a Firecracker microVM with 8 vCPU, memory that scales from 2 GB to 16 GB as needed, and a 100 GB ext4 disk backed by object storage. It runs one managed Ubuntu image with Claude Code, Codex, Gemini CLI and Cursor preinstalled. It gets an HTTPS URL that wakes it, and it bills only for the CPU and memory it uses while awake. It is built for coding agents, dev environments and user code that sit idle most of the time.

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 rankSprites: price rankboat: price rank
Software factory
100 at once · 4 vCPU / 8 GB · 2,200 sessions of 8 h a month
CodeSandbox SDK fully fits full-stack agent builds, with your own Dockerfile image. Sprites only partly fits. Neither documents systemd or /dev/kvm. boat adds both, plus SSH and up to 50 HTTPS URLs.
32nd cheapest of 365
$3,731 a month
101st of 365, with limits
$546 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
214th of 361, with limits
$1,166 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. Sprites costs less here ($140 against $642 a month), but it is only a partial fit for this workload.
54th cheapest of 336
$642 a month
99th of 336, with limits
$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
Both wake a user's sandbox on their next HTTP request. CodeSandbox SDK allows 250 VMs at once on Scale. Sprites does not publish its cap on pay as you go.
140th of 349, with limits
$1,707 a month
61st of 349, with limits
$428 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 can fork a running VM with its memory, which suits branching rollouts. Its per-started-minute billing and 250-VM cap push its cost to $3,861 a month here.
341st of 349, with limits
$3,861 a month
114th of 349, with limits
$6,540 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 fully fits agent evals and can fork a warm VM per run. Sprites only partly fits: it has no documented fork command and one fixed image.
77th cheapest of 359
$1,335 a month
130th of 359, with limits
$545 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
Both fit CI runners. Sprites costs less at $476 a month against $860. boat adds /dev/kvm for Android and VM image builds, at $86.
96th cheapest of 374
$860 a month
63rd cheapest of 374
$476 a month
2nd cheapest of 374
$86 a month
24/7 dev boxes
1 machine 24/7 · 4 vCPU / 8 GB
A 24/7 dev box costs $27 a month on Sprites and $240 on CodeSandbox SDK. boat costs $26 and has SSH and systemd built in.
316th of 371, with limits
$240 a month
120th cheapest of 371
$27 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
Computer-use agents need a screen. Neither ships a built-in desktop: on CodeSandbox SDK you add a VNC desktop to your own Dockerfile, and on Sprites you install a display server, a browser and a stream. boat streams a 60 fps desktop with Chrome.
54th cheapest of 367
$1,236 a month
132nd of 367, with limits
$136 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
236th of 356, with limits
$122 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
279th of 343, with limits
$206 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
139th of 327, with limits
$4,113 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
243rd of 351, with limits
$223 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 SDKSpritesboat
IsolationFirecracker microVM with its own kernelFirecracker microVM with its own kernelFull VM with its own kernel, on AMD Ryzen 7 9700X and Ryzen 9 9950X hosts dedicated to boat; vCPUs are shared
Machine size2 to 16 cores self-serve, up to 32 GB on Scale; up to 64 cores and 128 GB on EnterpriseFixed 8 vCPU; memory scales from 2 GB to 16 GB as needed and bills on useYou choose: 2 to 16 vCPU and 4 to 32 GB; 16 vCPU / 32 GB needs the $100 plan or higher
ImageBuilt from a template or any DockerfileOne managed Ubuntu 25.10 image; you install on top of itboat's image or a saved snapshot; not your own Docker image
Disk20 GB per VM; more on request, price not publishedFixed 100 GB disk51 GB to 251 GB, fixed per size; saved every minute and at each stop, kept at least 14 days after a stop
Idle and wakeHibernates with a memory snapshot after an idle timeout of up to one day; an HTTP request wakes itPauses about 30 seconds after activity stops; a request wakes it in 100 to 500 ms with memory, or 1 to 2 s after a cold stopRuns until auto-stop (1 hour by default, up to 30 days, or off on paid plans) and bills its full size, busy or idle; a resume is like a reboot
ForkFork a hibernated sandbox from its memory snapshot, or a running one that shares memory with its parentNo fork command in the CLI or API docs; release notes mention an admin fork of a Sprite's storage (April 2026); checkpoints restore in placeFork a running sandbox from its last 1-minute disk snapshot; memory is not copied
Inside the machineRoot and Docker; nested virtualization not documentedRoot and Docker (a user reports docker exec fails for containers that do not run as root); services run through the services API, not systemd; no /dev/kvm in the docsRoot, Docker, systemd and /dev/kvm for emulators and VMs
Reaching the sandboxTerminals, commands and files through the SDK; an HTTPS host per port, public by default; SSH and raw TCP are not documentedOne HTTPS URL to one HTTP port, private by default; other ports and SSH (a server you install) through the sprite proxy CLISSH through a shared IPv4 host and port; HTTPS URLs for up to 50 ports, token-gated; raw ports on a public IPv6 address; no dedicated IPv4
Outbound rulesNo outbound allowlist documentedOptional DNS-based domain allowlist set from outside; private IPs always blockedOpen internet, no provider-side allowlist
Keeping keys out of the sandboxSecrets passed in as environment variables; no credentials proxy documentedConnectors gateway holds the token for GitHub, OpenRouter, Slack or any HTTP API, with path allow and block listsOptional paid credentials proxy ($1 per day on, plus $1 per 1,000 requests) for model providers and any HTTPS API; other secrets enter the sandbox
Coding agentsYou install your own agent in the template and run it through the commands APIClaude Code, Codex, Gemini CLI and Cursor preinstalled, run through exec or a consoleSeven agents preinstalled, with a prompt, steer and events API to drive them from outside
Desktop and browserNo built-in desktop; a headless Chromium template, and you can install a VNC desktop in your own DockerfileNo desktop or browser built in; you install a browser, a display server and a stream yourselfBuilt-in Linux desktop and Chrome streamed at 1920x1080, 60 fps, with computer-use tools
Integrations and statusTypeScript SDK; Together calls it deprecated and names together-sandbox as its successorRemote MCP server, agent plugins, and backends for Claude Managed Agents and Cursor Cloud AgentsREST API, CLI and SDKs
ComplianceSOC 2 Type II listed on the Enterprise planSOC 2 Type II and a HIPAA packageSOC 2 in progress; no SOC 2 report today; no HIPAA BAA
RegionsA country hint steers scheduling, for example to Europe, but placement is not guaranteedNo region option when you create a SpriteGermany, Finland and France; no US or Asia region; you cannot pick one
Every feature Battleships tracks (43)
FeatureCodeSandbox SDKSpritesboat
Full VM (own kernel)YesYesYes
Docker insideYesYesYes
Nested virtualizationNo documented wayNo documented wayYes
RootYesYesYes
SystemdNot publishedNo documented wayYes
Desktop GUIWith your own setupNo documented wayYes
BrowserWith your own setupNo documented wayYes
Computer-use APINo documented wayNo documented wayYes
SSHNo documented wayWith your own setupYes
Persistent diskYesYesYes
Pause/resumeYesYesYes
Automatic snapshotsYesYesYes
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 requestYesYesNo documented way
HTTPS preview URLsYesYesYes
Raw TCP inboundNo documented wayNo documented wayYes
Public IPv4No documented wayNo documented wayNo documented way
Egress allowlistNo documented wayYesNo documented way
Secret proxyNo documented wayYesYes
Secret proxy for any APINo documented wayYesYes
Preinstalled agentsNo documented wayYesYes
Agent harness APINo documented wayNo documented wayYes
MCP serverNo documented wayYesNo documented way
GPUNo documented wayNo documented wayNo 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 wayNo documented wayNo documented way
Open sourceNo documented wayNo documented wayNo documented way
Scoped API keysNot publishedNot publishedYes
Spend limitsNot publishedNot publishedYes
Usage per sandbox (API)No documented wayNo documented wayYes
Audit logsNot publishedNot publishedNo documented way
SSOYesYesNo documented way
SOC 2YesYesNo documented way
HIPAANo documented wayYesNo documented way
EU data residencyNo documented wayNo documented wayNo documented way
Zero data retentionNot publishedNot publishedYes

Performance

CodeSandbox SDKNot measured
SpritesNot measured
boat28.06 runs/s

Neither CodeSandbox SDK nor Sprites 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. A Sprite always has 8 vCPU, so a fair test would also need a matching shape.

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 Sprites 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 monthSprites, 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$23 · Pay-as-you-go$20 · $20/mo
One agent that never stops
4 vCPU / 8 GB, 50 GB disk, running 24/7 all month
$341 · Scale$92 · Pay-as-you-go$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,120 · Pay-as-you-go$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$314 · Pay-as-you-go · 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$1,134 · Pay-as-you-go · 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 costs nothing. Scale adds a $170 monthly platform fee that is not usage credit.

Sprites: Sprites bills measured CPU time at $0.0385 per CPU-hour and actual memory at $0.021875 per GB-hour, only while the Sprite is awake. Storage costs about $0.50 per GB-month for hot data while awake and about $0.02 per GB-month for cold data while it is kept. Pay as you go has no plan fee. Optional plans buy fixed allowances that are not credit.

Sprites: 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 sandboxes for your users and 1,000 jobs at once need Enterprise. Each VM has a 20 GB disk, with no published price for more disk or for egress. Sprites does not publish how many can run at once on pay as you go, and creates 10 a minute without a plan, so those two scenarios are not confirmed either. boat caps sandboxes at once per plan (100 on $20, 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.

ScenarioCodeSandbox SDKSpritesboat
One coding agent, workdays
  • disk beyond 20 GiB: price unknown
  • egress price not published
None for this scenarioNone for this scenario
One agent that never stops
  • disk beyond 20 GiB: price unknown
  • egress price not published
None for this scenarioNone for this scenario
50 agents in parallel
  • egress price not published
  • how many machines can run at once: limit not published, probably fine at 50 (the typical published limit is 50)
None for this scenario
Sandboxes for your users
  • Scale: max 250 concurrent
  • egress price not published
  • not confirmed: how many machines can run at once (you need 300; the typical published limit is 50)
None for this scenario
1,000 short jobs at once
  • Scale: max 250 concurrent
  • egress price not published
  • not confirmed: how many machines can run at once (you need 1,000; the typical published limit is 50)
  • 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

you need your own Dockerfile image, forks that carry a running VM's memory, or machines bigger than 8 vCPU, and you accept that Together calls this SDK deprecated.

  • Your own image. Teams with a specific stack can build each sandbox from any Dockerfile instead of installing on top of a fixed image.
  • Forks that share memory. Good for branching many runs from one warm state: fork a running VM, and the copy starts with its memory.
  • Bigger machines when you need them. You pick from 2 to 16 cores self-serve, and Enterprise goes up to 64 cores and 128 GB.

Use Sprites when

your agents sit idle most of the day and should wake on a request, you want coding agents preinstalled, you need a domain allowlist on outbound traffic, or you need a HIPAA package.

  • Pay for what the machine really uses. Sprites bills measured CPU time and actual memory only while awake, so a mostly idle agent costs little.
  • Agents and limits ready to go. Claude Code, Codex, Gemini CLI and Cursor come preinstalled, with a domain allowlist and API connectors that keep tokens outside.
  • Plugs into agent platforms. Teams on Claude Managed Agents or Cursor Cloud Agents can use Sprites as the machine behind them, next to the rest of Fly.io.

Where boat fits

CodeSandbox SDK and Sprites are both built around sandboxes that sleep between bursts of work. boat fits agents that work for hours on one machine and need SSH, systemd, emulators, a screen or servers others can reach, driven from your own code.

A full machine that stays up

boat runs systemd, Docker, SSH and /dev/kvm, and runs until auto-stop (1 hour by default, or off on a paid plan). CodeSandbox SDK documents neither SSH nor nested virtualization. A Sprite runs services without systemd and pauses 30 seconds after work stops unless a Tasks API hold, renewed every hour, keeps it awake.

Agents you drive from outside

boat installs seven coding agents and lets you prompt, steer and follow them through one API. An optional paid proxy keeps model keys out. On CodeSandbox SDK you install the agent yourself. Sprites preinstalls four agents that you run through exec.

boat's own limits

boat bills its full size while it runs, busy or idle, and a mostly idle Sprite can cost less. boat has no memory hibernation, no custom Docker image, no outbound allowlist and no HIPAA BAA. Starts are capped per plan, and sandboxes run only in Germany, Finland and France.

Use boat when your agents need a full machine for hours: systemd, Docker, /dev/kvm, SSH, up to 50 HTTPS URLs, a built-in desktop and browser, forks, and an API to drive the agents inside from outside. Compare it one to one: boat vs CodeSandbox SDK and boat vs Sprites.

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 Sprites?

Not in the scenarios we priced. One coding agent on workdays is $193 a month on CodeSandbox SDK, $23 on Sprites and $20 on boat. One agent that never stops is $341 against $92, and $26 on boat. 50 agents in parallel are $2,500 against $1,120, and $317 on boat. Sprites bills used CPU and memory, so a mostly idle agent can cost less than these estimates.

Which is faster, CodeSandbox SDK or Sprites?

Neither is in the CPU benchmark we use, so we cannot say. Sprites' docs say a paused Sprite wakes in 100 to 500 ms with its memory. 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 and Sprites run Docker?

Both run Docker inside the VM, and CodeSandbox SDK builds the whole sandbox from any Dockerfile. On Sprites, a user reports that docker exec fails for containers that do not run as root, and services run through the Sprites services API, not systemd. boat runs Docker, systemd and /dev/kvm.

Can I fork a sandbox on either?

CodeSandbox SDK can fork a hibernated sandbox from its memory snapshot or a running one that shares its memory. The Sprites docs show no fork command; checkpoints restore the disk in place. boat forks a running sandbox from its last 1-minute disk snapshot, without its memory.

Can I SSH into CodeSandbox SDK or Sprites?

CodeSandbox SDK connects through its SDK clients with terminals, commands and files, and does not document SSH. On Sprites you install an SSH server, run it as a service and tunnel it through the sprite proxy CLI. Every boat sandbox has SSH through a shared IPv4 host and port. boat does not sell a dedicated IPv4.

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