CodeSandbox SDK vs Together Code Sandbox

Both come from Together AI. CodeSandbox SDK is the older, self-serve one: its VMs hibernate with their memory and wake on the next HTTP request. Together Code Sandbox is its successor, which Together must enable for your organization. It saves memory when a sandbox ends and starts new sandboxes from that snapshot.

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.

Together Code Sandbox

Together AI is a cloud for running and training AI models, and Code Sandbox is its product for running code in isolated VMs.

You build a snapshot from a Docker image or Dockerfile on Together's builder, then start sandboxes from it and run commands and file operations through the together-sandbox SDK or CLI. When a sandbox ends you can save its disk, and its memory too, as a new snapshot to start more sandboxes from. It is aimed at model-generated code, agent tool calls and reinforcement learning rollouts, and Together must enable it for your organization. The pricing page also lists Code Interpreter at $0.03 per 60-minute session.

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 rankTogether Code Sandbox: price rankboat: price rank
Software factory
100 at once · 4 vCPU / 8 GB · 2,200 sessions of 8 h a month
32nd cheapest of 365
$3,731 a month
67th of 365, with limits
$528 a month
5th cheapest of 365
$634 a month
Always-on AI employees
50 machines 24/7 · 2 vCPU / 4 GB
An assistant that lives on its machine all month needs a lasting disk. CodeSandbox SDK keeps one and hibernates when idle. A Together sandbox runs until you terminate it or its ttl ends, so your backend starts and stops it. On boat, paid plans can turn auto-stop off, and a default sandbox that runs 730 h costs $26.
50th cheapest of 361
$4,811 a month
107th of 361, with limits
$1,095 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 run short code through an API. CodeSandbox SDK VMs hibernate and wake on the next request. Together's pricing page also lists Code Interpreter at $0.03 per 60-minute session.
54th cheapest of 336
$642 a month
318th of 336, with limits
$2,190 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 and allows 250 VMs at once on Scale. On Together every port URL is public unless you set an experimental access policy. boat's HTTPS URLs are token-gated by default.
140th of 349, with limits
$1,707 a month
231st of 349, with limits
$900 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 can start many rollouts from a memory snapshot. CodeSandbox SDK can also fork a running sandbox. On Together the parent stops first. A boat fork copies the last 1-minute disk snapshot, without memory.
341st of 349, with limits
$3,861 a month
309th of 349, with limits
$21,900 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 runs evals on its VMs. Together documents a Harbor guide for agent evals. boat has a Harbor integration too, and seven coding agents with an API to prompt, steer and follow each run.
77th cheapest of 359
$1,335 a month
260th of 359, with limits
$450 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 VM images need /dev/kvm. boat exposes it on every sandbox. Neither CodeSandbox SDK nor Together documents it.
96th cheapest of 374
$860 a month
253rd of 374, with limits
$180 a month
2nd cheapest of 374
$86 a month
24/7 dev boxes
1 machine 24/7 · 4 vCPU / 8 GB
316th of 371, with limits
$240 a month
226th of 371, with limits
$22 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 desktop and a browser. boat streams one at 60 fps, built in. On CodeSandbox SDK you add a VNC desktop to your own Dockerfile. On Together you build the desktop and browser into your own image.
54th cheapest of 367
$1,236 a month
105th of 367, with limits
$600 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
boat ships Chrome on a built-in desktop in every sandbox. On CodeSandbox SDK you start from a headless Chromium template. On Together you install a browser in your own image.
125th of 356, with limits
$741 a month
195th of 356, with limits
$900 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
181st of 343, with limits
$180 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
126th of 327, with limits
$3,600 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
95th of 351, with limits
$150 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 SDKTogether Code Sandboxboat
Status and accessSelf-serve through CodeSandbox; Together's docs call it the deprecated SDK; last release 2.4.2 (December 2025)The successor; the SDK and CLI must be enabled for your organization by TogetherSign up with a card (7-day trial), then start a sandbox from the API, CLI or dashboard
IsolationFirecracker microVM with its own kernelA VM per sandbox on Together's infrastructureFull 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 Enterprise0.1 to 16 cores, 1 to 8 GB of memory per core; disk size not configurable2, 4, 8 or 16 vCPU at 2 GB per vCPU; disk fixed per size, 51 to 251 GB; 16 vCPU needs the $100 plan or higher
Saving stateHibernates with a memory snapshot when idle; resumes with processes still running; after a period of inactivity the snapshot is archived and resume takes longerEnd a sandbox with a snapshot of its disk, or disk and memory; a new sandbox resumes with processes runningDisk saved every minute and at each stop, kept at least 14 days; memory is not saved, so a resume is like a reboot
ForkFork a hibernated sandbox from its memory snapshot, or a running one that shares memory with its parentThe parent stops first, then you start many sandboxes from its snapshot, with memory if you askFork a running sandbox and the original keeps running; the fork uses the last 1-minute disk snapshot, without memory
Idle and wakeHibernates after an idle timeout of up to one day; an HTTP request to a host wakes itRuns until you terminate it or its ttl ends; ttl counts from creation; no idle detection and no wake on requestAuto-stop 1 hour after creation or resume by default, up to 30 days or off on paid plans; the timer does not watch for idle; started again by API
Docker and rootDocker and root; built from any DockerfileCommands run as user 1000 by default, root per exec on request; Docker inside a sandbox is not documentedDocker with Compose, systemd and root on every machine; start from boat's image or a saved snapshot, not your own Docker image
Nested virtualizationNot documentedNot documentedYes, /dev/kvm for Android emulators and VMs
Shell accessTerminals, commands and files through the SDK; SSH is not documentedCommands, interactive shells and files through the SDK and CLI; SSH is not documentedSSH, plus exec and files over the API
Reaching the sandboxHTTPS host per port, public by default, signed tokens for private sandboxes; raw TCP is not documentedA URL per port, open to everyone by default; an experimental policy limits access by IP or requires a tokenHTTPS URLs for up to 50 ports, token-gated by default; raw ports on a public IPv6 address; no dedicated IPv4
Desktop and browserNo built-in desktop; a headless Chromium template, and you can install a VNC desktop in your own DockerfileNo built-in desktop or stream; install a browser or virtual display in your own imageBuilt-in Linux desktop and Chrome streamed at 1920x1080, 60 fps, with computer-use tools
Coding agentsYou install your own agent in the template and run it through the commands APIYou install your agent in your image and run it through execs; a Harbor guide for agent evalsSeven harnesses preinstalled, including Claude Code, Codex and OpenCode, with a prompt, steer and events API
Keeping API keys out of the sandboxSecrets passed in as environment variables; no credentials proxy documentedNo credentials proxy documentedOptional AI credentials proxy ($1 a day plus $1 per 1,000 requests); with it on, supported providers' real keys stay outside; other secrets enter the sandbox
Hosted code interpreterNo separate product; run code in a VMCode Interpreter listed at $0.03 per 60-minute sessionNo separate product; run code through exec in a sandbox
ComplianceSOC 2 Type II listed on the Enterprise planTogether's trust center lists a SOC 2 Type 2 reportSOC 2 in progress; no SOC 2 report today
Every feature Battleships tracks (43)
FeatureCodeSandbox SDKTogether Code Sandboxboat
Full VM (own kernel)YesYesYes
Docker insideYesNot publishedYes
Nested virtualizationNo documented wayNo documented wayYes
RootYesYesYes
SystemdNot publishedNot publishedYes
Desktop GUIWith your own setupNot publishedYes
BrowserWith your own setupNot publishedYes
Computer-use APINo documented wayNot publishedYes
SSHNo documented wayNo documented wayYes
Persistent diskYesWith your own setupYes
Pause/resumeYesYesYes
Automatic snapshotsYesNo documented wayYes
Fork/cloneYesYesYes
Live fork (no pause)YesNo documented wayYes
Memory forkYesYesNo 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 wayNo documented wayYes
Public IPv4No documented wayNo documented wayNo documented way
Egress allowlistNo documented wayNo documented wayNo documented way
Secret proxyNo documented wayNo documented wayYes
Secret proxy for any APINo documented wayNo documented wayYes
Preinstalled agentsNo documented wayNo documented wayYes
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 publishedYesYes
Usage per sandbox (API)No documented wayYesYes
Audit logsNot publishedNot publishedNo documented way
SSOYesYesNo documented way
SOC 2YesYesNo documented way
HIPAANo documented wayNo documented wayNo documented way
EU data residencyNo documented wayNot publishedNo documented way
Zero data retentionNot publishedNot publishedYes

Performance

CodeSandbox SDKNot measured
Together Code SandboxNot measured
boat28.06 runs/s

Neither CodeSandbox SDK nor Together Code Sandbox 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.

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 Together Code Sandbox 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 monthTogether Code Sandbox, 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$5 · Together pay-as-you-go (prepaid credits; Code Interpreter only) · with limits$20 · $20/mo
One agent that never stops
4 vCPU / 8 GB, 50 GB disk, running 24/7 all month
$341 · Scale$22 · Together pay-as-you-go (prepaid credits; Code Interpreter only) · with limits$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$264 · Together pay-as-you-go (prepaid credits; Code Interpreter only) · with limits$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$900 · Together pay-as-you-go (prepaid credits; Code Interpreter only) · 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$6,000 · Together pay-as-you-go (prepaid credits; Code Interpreter only) · 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.

Together Code Sandbox: Together lists Code Sandbox at $0.0446 per vCPU-hour and $0.0149 per GiB-hour, about $0.30 an hour at 4 vCPU / 8 GB, from prepaid credits. Your organization must have it enabled first. Billing granularity, snapshot storage and egress prices are not published. The tables use the Code Interpreter line ($0.03 per 60-minute session), because Code Sandbox needs enablement.

Together Code Sandbox: 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 the user-sandboxes and 1,000-job scenarios need Enterprise. Each VM has a 20 GB disk, with no published price for more. The Together column uses the Code Interpreter line, because Code Sandbox needs enablement; Code Interpreter's machine size is not published. Code Sandbox goes up to 16 cores, and Together publishes no concurrency or start limits for it. On boat the limit that bites is starts: boat never queues a start, and 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 short jobs at once do not fit on boat either.

ScenarioCodeSandbox SDKTogether Code Sandboxboat
One coding agent, workdays
  • disk beyond 20 GiB: price unknown
  • egress price not published
  • Together pay-as-you-go (prepaid credits; Code Interpreter only): sessions capped at 1 h
  • not confirmed: persistent disk
  • machine size not published
  • different kind of product: code interpreter
None for this scenario
One agent that never stops
  • disk beyond 20 GiB: price unknown
  • egress price not published
  • Together pay-as-you-go (prepaid credits; Code Interpreter only): sessions capped at 1 h
  • not confirmed: persistent disk
  • machine size not published
  • different kind of product: code interpreter
None for this scenario
50 agents in parallel
  • egress price not published
  • Together pay-as-you-go (prepaid credits; Code Interpreter only): sessions capped at 1 h
  • not confirmed: persistent disk
  • machine size not published
  • different kind of product: code interpreter
None for this scenario
Sandboxes for your users
  • Scale: max 250 concurrent
  • egress price not published
  • machine size not published
  • different kind of product: code interpreter
  • machine size per session not published
  • egress price not published
None for this scenario
1,000 short jobs at once
  • Scale: max 250 concurrent
  • egress price not published
  • machine size not published
  • different kind of product: code interpreter
  • machine size per session not published
  • egress price not published
  • 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 want to sign up today and need sandboxes that sleep between visits, wake on the next HTTP request with their memory intact, or fork while running, and you accept that Together calls this SDK deprecated.

  • Hibernation and wake on request. Good for previews that sleep between visits: an HTTP request wakes a hibernated VM with its processes still running.
  • Live forks that share memory. Useful for branching many runs from a sandbox that is still running, without stopping the parent first.
  • Self-serve today, bigger on Enterprise. You can sign up without asking anyone, and Enterprise offers machines up to 64 cores and 128 GB.

Use Together Code Sandbox when

you already run models on Together, can get it enabled for your organization, and want light sandboxes from a tenth of a core that you can save with their memory and branch from.

  • The SDK Together is building on. Teams starting fresh on Together get the successor SDK rather than the one its docs call deprecated.
  • Very small machines. Good for many light jobs: sandboxes start at a tenth of a core, with 1 to 8 GB of memory per core.
  • Sandboxes next to your models. Handy if you already run inference on Together: sandboxes, Code Interpreter and models share one account.

Where boat fits

Choosing between these two often means choosing between a deprecated SDK and one you have to ask for. boat fits agents that work for hours on a whole machine, with installs, Docker, emulators, a browser and servers other people reach, and you can start it today.

A whole machine with SSH and KVM

Neither CodeSandbox SDK nor Together documents SSH or /dev/kvm, and Together does not document Docker inside a sandbox. boat has SSH, systemd, root, Docker and /dev/kvm on every sandbox.

Hosting that is private by default

CodeSandbox SDK hosts are public unless you sign tokens. Every Together port is public until you set an experimental policy. boat's up to 50 HTTPS URLs are token-gated by default.

boat's own limits

boat saves no memory: a resume is like a reboot, and a fork boots fresh. It has no custom Docker image and no SOC 2 report today. Starts are capped per plan, and sandboxes run only in Germany, Finland and France.

Use boat when your agents work for hours on a full machine you can start today: installs, builds, Docker, /dev/kvm, SSH, a built-in desktop and browser, and token-gated URLs for servers other people reach. Compare it one to one: boat vs CodeSandbox SDK and boat vs Together Code Sandbox.

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 Together Code Sandbox the same as CodeSandbox SDK?

No. CodeSandbox SDK runs on CodeSandbox's Firecracker microVMs, and Together's docs now call it deprecated. Its successor, the together-sandbox SDK, drops live fork, idle hibernation and wake on request, and replaces them with snapshots taken when a sandbox ends.

Is CodeSandbox SDK cheaper than Together Code Sandbox?

Mostly not, at Together's Code Sandbox list rates (compute only, billed per second). One agent on workdays is $193 a month on CodeSandbox SDK against $52 on Together, and one agent always on is $341 against $217. For 50 agents in parallel, CodeSandbox SDK costs less: $2,500 against $2,619. boat is $20, $26 and $317 for those three. Code Sandbox must be enabled by Together, so the tables use the Code Interpreter line instead.

Which is faster?

Neither CodeSandbox SDK nor Together Code Sandbox is in the CPU benchmark we use, so we cannot say. 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 Together Code Sandbox run Docker?

CodeSandbox SDK runs Docker with root inside its VMs. Together builds sandboxes from Docker images, but its docs do not describe Docker inside a sandbox. boat runs Docker, systemd and root on every machine and also exposes /dev/kvm.

Which one can keep a sandbox's memory?

Both. CodeSandbox SDK hibernates an idle VM with its memory and wakes it on the next request. Together saves memory when a sandbox ends, and new sandboxes start from that snapshot. boat saves the disk every minute and at each stop, but not memory, so a resume is like a reboot.

Can I SSH into either one?

Neither documents SSH. Both connect through their SDKs with terminals or shells, commands and files. Every boat sandbox has SSH as well as an exec and files API.

Try boat

Install the CLI, then run boat new.

7-day free trial

More comparisons