CodeSandbox SDK vs Northflank

Both run each sandbox in a microVM with its own kernel, from your own image. CodeSandbox SDK is built around VMs that hibernate with their memory and wake on the next request. Northflank is a broad cloud platform with GPUs, 17 regions and your own cloud. It keeps files across a pause through volumes or filesystem snapshots that you turn on.

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.

Northflank

Northflank is a London developer platform for running services, jobs and databases on Kubernetes, and Sandboxes is its product for running untrusted code.

A Northflank sandbox is a container image deployed as a service. CPU sandboxes run in Kata microVMs with their own kernel, and GPU sandboxes run under gVisor. You create and drive them from the JavaScript or Python SDK, the CLI or the dashboard, on Northflank's cloud or inside your own. It suits teams that want one platform for apps, databases, GPUs and sandboxes.

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 rankNorthflank: price rankboat: price rank
Software factory
100 at once · 4 vCPU / 8 GB · 2,200 sessions of 8 h a month
A coding agent installs packages all over the machine. CodeSandbox SDK keeps its 20 GB disk through hibernation. On Northflank you attach volumes, or snapshot the filesystem before each pause and restore it. boat saves its disk with no setup and adds SSH and /dev/kvm.
32nd cheapest of 365
$3,731 a month
186th of 365, with limits
$1,413 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
44th cheapest of 361
$2,551 a month
6th cheapest of 361
$657 a month
Code interpreter bursts
100 at once · 1 vCPU / 2 GB · 200,000 sessions of 1 min a month
CodeSandbox SDK fits short code runs: they sleep with their memory and wake on the next request. Northflank has per-second plans from 0.1 vCPU with no start fee, but no idle auto-pause.
54th cheapest of 336
$642 a month
91st of 336, with limits
$114 a month
189th of 336, with limits
$2,000 a month
Sandboxes for your users
300 at once · 2 vCPU / 4 GB · 30,000 sessions of 23 min a month
CodeSandbox SDK wakes a user's sandbox on their next HTTP request, but caps Scale at 250 at once. Northflank does not publish its concurrency limit. boat allows 300 at once on its $100 plan.
140th of 349, with limits
$1,707 a month
94th of 349, with limits
$810 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
333rd of 349, with limits
$1,742 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 fits agent evals, and its memory forks let many runs start from one warm state. Northflank snapshots a filesystem and restores it into new sandboxes. boat fits too.
77th cheapest of 359
$1,335 a month
139th of 359, with limits
$685 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 and bill per second; Northflank boots your own container image. CI that builds Android apps or VM images needs /dev/kvm, which boat exposes and neither of the other two documents.
96th cheapest of 374
$860 a month
36th cheapest of 374
$347 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 month fits Northflank at a lower bill, with SSH. CodeSandbox SDK bills every running minute and documents no SSH. On boat, turn auto-stop off on a paid plan (default 1 hour).
316th of 371, with limits
$240 a month
124th cheapest of 371
$106 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 has a built-in desktop. On CodeSandbox SDK you add a VNC desktop to your Dockerfile; on Northflank you install a desktop and stream in your own image. boat streams a 60 fps Linux desktop with Chrome.
54th cheapest of 367
$1,236 a month
189th of 367, with limits
$367 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
83rd of 356, with limits
$359 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
94th cheapest of 343
$200 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
83rd of 327, with limits
$2,031 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
43rd of 351, with limits
$180 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
Northflank has GPU sandboxes from L4 to H100, H200 and B200. CodeSandbox SDK and boat are CPU only.
Not ranked: misses a requirement5th cheapest of 102
$692 a month
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 requirementNot ranked: misses a requirementNot ranked: misses a requirement

Key features

FeatureCodeSandbox SDKNorthflankboat
IsolationFirecracker microVM with its own kernelKata microVM with its own kernel for CPU; gVisor for GPUFull VM with its own kernel, on hosts dedicated to boat (AMD Ryzen 7 9700X and Ryzen 9 9950X); vCPUs are shared
What survives a stopDisk and memory: hibernates with a memory snapshot and resumes with processes still runningAttached volumes (billed while paused); the rest of the disk resets unless you snapshot it before the pause and restore from it; processes resetThe disk, saved every minute and at each stop with no setup, kept at least 14 days; memory and processes are not saved
ForkFork a hibernated sandbox from its memory snapshot, or a running one that shares memory with its parentFilesystem snapshots of a running or terminating sandbox, opt-in; restore into a new sandbox; no memoryFork a running sandbox from its last 1-minute disk snapshot; memory is not copied
Wake on requestYes; an HTTP request to a host wakes itNo; no idle auto-pause either, a sandbox runs until you pause itNo; you start a stopped sandbox by API
Custom imagesTemplates build from any DockerfileAny container imageStart from boat's image or a saved snapshot; you cannot boot your own Docker image
Shell accessTerminals, commands and files through the SDK; SSH is not documentedSDK, browser terminal or SSHSSH, plus exec and files over the API
Nested virtualizationNot documentedNot documented inside a sandboxYes, /dev/kvm on every sandbox for Android emulators and VMs
Desktop and browserNo built-in desktop; a headless Chromium template, and you can install a VNC desktop in your own DockerfileNo built-in desktop; a guide runs Playwright browser agents from your own image; a desktop and stream you install yourselfBuilt-in desktop and Chrome streamed at 1920x1080, 60 fps, with computer-use tools; no GPU
Coding agentsYou install your own agent in the template and run it through the commands APIHarnesses with Claude Code, Codex, Cursor, OpenCode, Pi, OMP or Devin CLI and a lifecycle API; you talk to the agent through a terminal or SSHSeven harnesses installed, including Claude Code and Codex, with a prompt, steer and events API
Keeping API keys out of the sandboxSecrets passed in as environment variables; no credentials proxy documentedHeader injection for listed hosts in the network policy API (documented for your own cluster); otherwise env vars or filesOptional credentials proxy ($1 a day while on, plus $1 per 1,000 requests): real keys of supported model providers stay outside; other secrets still enter the sandbox
Inbound accessHTTPS host per port, public by default, signed tokens for private sandboxes; raw TCP is not documentedHTTP ports, private by default; public TCP and UDP through a separate load balancer with a stable IPUp to 50 HTTPS URLs, token-gated by default; raw ports on the public IPv6 address (some sandboxes also have IPv4); the IP changes at each resume
Outbound rulesNo egress allowlist documentedNetwork policies with allow lists by IP, CIDR or domain; static egress IPsOpen internet; no provider-side allowlist
GPUsNoL4, A100, H100, H200, B200, RTX PRO 6000 and moreNo
RegionsA country hint steers scheduling, but placement is not guaranteed17 regions in North America, South America, Europe, Asia, Australia and Africa; one per projectGermany, Finland and France; you cannot pick a region; no US or Asia region
Self-hostingNot offered; the SDK FAQ says "not at this time"Bring your own cloud, or the control plane in your VPC on EnterpriseNo
Every feature Battleships tracks (43)
FeatureCodeSandbox SDKNorthflankboat
Full VM (own kernel)YesYesYes
Docker insideYesYesYes
Nested virtualizationNo documented wayNo documented wayYes
RootYesNot publishedYes
SystemdNot publishedNot publishedYes
Desktop GUIWith your own setupNo documented wayYes
BrowserWith your own setupWith your own setupYes
Computer-use APINo documented wayNo documented wayYes
SSHNo documented wayYesYes
Persistent diskYesWith your own setupYes
Pause/resumeYesYesYes
Automatic snapshotsYesYesYes
Fork/cloneYesYesYes
Live fork (no pause)YesYesYes
Memory forkYesNo documented wayNo documented way
Custom image (Docker or snapshot)YesYesYes
≥24 h sessionsYesYesYes
Idle auto-stopYesNo documented wayNo documented way
Wake on requestYesNo documented wayNo documented way
HTTPS preview URLsYesYesYes
Raw TCP inboundNo documented wayYesYes
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 wayNo documented wayNo documented way
GPUNo documented wayYesNo documented way
WindowsNo documented wayNo documented wayNo documented way
Arm64No documented wayYesNo documented way
Self-hostingNo documented wayYesNo documented way
BYOCNo documented wayYesNo 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 wayYesYes
Audit logsNot publishedYesNo documented way
SSOYesYesNo documented way
SOC 2YesYesNo documented way
HIPAANo documented wayYesNo documented way
EU data residencyNo documented wayYesNo documented way
Zero data retentionNot publishedNot publishedYes

Performance

CodeSandbox SDKNot measured
NorthflankNot measured
boat28.06 runs/s

Neither CodeSandbox SDK nor Northflank is in the public CPU benchmarks we use, so we cannot say which is faster. In StarSling's run of 3 October 2026 (run 37073680030), boat did 28.06 runs/s on the V8 Web Tooling Benchmark at 4 vCPU / 8 GB, second of 15. Every boat sandbox in this run ran on an AMD Ryzen 9 9950X host. boat also places some sandboxes on AMD Ryzen 7 9700X hosts, which this run did not measure. For start time, ComputeSDK measured each at its default size, one at a time, in its latest published run: Northflank 83 ms and CodeSandbox SDK 2.33 s. boat is not in ComputeSDK.

V8 Web Tooling Benchmark at a 4 vCPU / 8 GB target, runs per second, higher is better. Source: StarSling's run of 3 October 2026 (run 37073680030), median of 5 sandboxes. Providers ran on different hardware in different regions. StarSling gives a shared rank when the run cannot separate two providers. Every boat sandbox in this run ran on an AMD Ryzen 9 9950X host. boat also places some sandboxes on AMD Ryzen 7 9700X hosts, which this run did not measure. CodeSandbox SDK and Northflank 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 monthNorthflank, 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$30 · Developer Sandbox (free tier)$20 · $20/mo
One agent that never stops
4 vCPU / 8 GB, 50 GB disk, running 24/7 all month
$341 · Scale$106 · Developer Sandbox (free tier)$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,290 · Developer Sandbox (free tier)$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$359 · Developer Sandbox (free tier) · 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$684 · Developer Sandbox (free tier) · with limits$8,800 · $2000/mo · with limits

CodeSandbox SDK: You buy VM credits at $0.01486 each, and each size burns a fixed number per hour: 20 for a 4 vCPU / 8 GB VM, about $0.30. Billing is per started minute while the VM runs, including idle time before it hibernates. A hibernated VM has no VM charge. Larger teams pay a $170 monthly Scale platform fee, which is not usage credit. Prices as checked on 28 September 2026; CodeSandbox's pricing pages blocked our automated check on 8 November 2026.

Northflank: Northflank bills per second for the plan size you pick: 4 vCPU / 8 GB is $0.1333 an hour. There is no monthly fee and no start fee. There is no idle auto-pause, so a sandbox bills until you pause it. Volumes cost $0.11657 per GiB a month, also while paused, and outbound traffic costs $0.06 per GB.

Northflank: Plans cost $20, $100, $500 or $2,000 a month, and the whole plan price comes back as VM time for that month. A 4 vCPU / 8 GB sandbox costs $0.036 an hour, billed per second while it runs, busy or idle. The $20 plan includes 200 starts a day; each extra start costs $0.03 to $0.07. A stopped sandbox has no compute charge and keeps its disk for at least 14 days. Saved snapshots above the included count and the credentials proxy, while it is on, still charge.

Limits in those scenarios

CodeSandbox SDK's Scale plan allows 250 VMs at once, so the user-sandboxes (300) and 1,000-job scenarios need Enterprise. Each VM has a 20 GB disk, and the price of more disk and of egress is not published. On Northflank, files outside attached volumes survive a pause only if you snapshot them first, and Northflank does not publish how many sandboxes can run at once, so 300 or 1,000 at a time is not confirmed. boat does not fit the 1,000-job burst: the $2,000 plan includes 90 starts a minute and 2,400 a day, extra starts are paid, and starts above 270 a minute fail with 429. boat never queues a start. Below about $20 of use a month, Northflank's plan with no monthly fee costs less than boat.

ScenarioCodeSandbox SDKNorthflankboat
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

your sandboxes sleep between visits and wake on the next HTTP request with their memory intact, or when many runs should fork from one warm state, and you accept that Together calls this SDK deprecated.

  • Sleeps with its memory. For sandboxes used in short bursts: an idle VM hibernates with its memory and has no VM charge until it wakes.
  • Wakes on the next request. For previews and user sandboxes: an HTTP request to a host wakes a hibernated VM with its processes still running.
  • Forks that share memory. For rollouts and test variants: fork a running or hibernated sandbox and every copy starts from the same live state.

Use Northflank when

you need GPUs next to the agent, regions outside Europe, outbound allow lists, compliance reports, or sandboxes inside your own cloud account next to the rest of your apps.

  • GPU sandboxes. For agents that train or run models: Northflank has GPU sandboxes from L4 to H100, H200 and B200.
  • Regions around the world. For users far from Europe: Northflank runs in 17 regions, in the US, Asia, Australia, South America and Africa too.
  • Your own cloud, and one platform. For teams that must run in their own AWS, GCP or Azure account, next to their services, jobs and databases, with compliance reports.

Where boat fits

If your agents work for hours on one machine, installing tools, running Docker, a browser and servers, look at boat. It is a full VM that saves its disk every minute with no setup, with seven agents and a desktop installed. boat has no GPU and runs only in Germany, Finland and France.

A whole machine with /dev/kvm and SSH

Neither CodeSandbox SDK nor Northflank documents nested virtualization, so Android emulators and VM-based tests are not documented there. CodeSandbox SDK also documents no SSH. boat has SSH, systemd, Docker and /dev/kvm.

Agents and a desktop you drive from outside

Neither has a built-in desktop, so a computer-use agent needs one you build. On CodeSandbox SDK you bring the agent; Northflank Harnesses start one you reach by terminal or SSH. boat has a 60 fps desktop and an API to prompt and steer agents.

The disk, saved with no setup

On Northflank you attach volumes, or snapshot the filesystem before each pause and restore it. CodeSandbox SDK keeps a 20 GB disk, with no published rate for more. boat saves 51 GB or more every minute and at each stop. A machine failure loses writes after the last good snapshot.

Use boat when your agents work on one machine for hours or days and should find their files as they left them with no snapshot setup: installs, Docker, emulators, a desktop and a browser, with the agent driven from your code. Compare it one to one: boat vs CodeSandbox SDK and boat vs Northflank.

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

No. Northflank comes out lower in every scenario we priced. One agent on workdays is $30 a month on Northflank against $193. One agent that never stops is $106 against $341, and 50 agents in parallel $1,290 against $2,500. On Northflank, files outside volumes need a snapshot to survive a pause. boat comes to $20, $26 and $317 for those three.

Which is faster, CodeSandbox SDK or Northflank?

Neither is in the public CPU benchmarks we use, so we cannot say. For start time one at a time, ComputeSDK measured Northflank at 83 ms and CodeSandbox SDK at 2.33 s, each at its default size. boat is not in ComputeSDK.

Do they keep files when a sandbox stops?

CodeSandbox SDK hibernates with its disk and memory, so processes are still running when it resumes. Northflank keeps files on attached volumes, and the rest of the disk if you snapshot it before the pause; processes reset. boat keeps the disk on every stop for at least 14 days with no setup, but not memory.

Can I run Docker and Android emulators in each?

Both run Docker inside the sandbox. Neither documents nested virtualization, so Android emulators and nested VMs are not documented there. boat exposes /dev/kvm for them.

Do CodeSandbox SDK or Northflank have GPUs?

Northflank does, with GPU sandboxes under gVisor from L4 to H100, H200, B200 and more. CodeSandbox SDK and boat are CPU only.

Is CodeSandbox SDK still maintained?

CodeSandbox is now part of Together AI. Together's docs call this SDK deprecated and name together-sandbox as its successor. The last SDK release was 2.4.2 in December 2025. Self-serve sign-up still runs through CodeSandbox.

Try boat

Install the CLI, then run boat new.

7-day free trial

More comparisons