CodeSandbox SDK vs Namespace

CodeSandbox SDK gives each sandbox a Firecracker VM that hibernates with its memory and wakes on the next HTTP request. Namespace is mainly a CI platform. Its Devboxes run on Linux or macOS for people and coding agents, and stop after 3 to 24 hours by plan.

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.

Namespace

Namespace is a dev platform for fast builds, tests and coding environments: CI runners, build caches and Devboxes, on its own hardware.

Most of Namespace is CI: a faster drop-in for GitHub Actions runners, with Docker, Bazel, Turborepo and Nix caching. Its Devboxes are remote Linux and macOS machines with persistent storage, made for people and AI coding agents. You run Claude Code, Codex, OpenCode, Amp, Copilot or Cursor in persistent Devbox sessions, and Namespace also hosts sessions for Claude Managed Agents, Cursor Cloud Agents, Devin and Amp. It is a different kind of product from boat, so this page compares the part where they overlap: a machine an agent works on.

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 rankNamespace: price rankboat: price rank
Software factory
100 at once · 4 vCPU / 8 GB · 2,200 sessions of 8 h a month
CodeSandbox SDK fits a software factory: Docker with root and a disk kept through hibernation. On Namespace, a Devbox stops at its plan's time limit. boat adds SSH, /dev/kvm and a built-in desktop.
32nd cheapest of 365
$3,731 a month
74th of 365, with limits
$3,745 a month
5th cheapest of 365
$634 a month
Always-on AI employees
50 machines 24/7 · 2 vCPU / 4 GB
An assistant that never stops fits CodeSandbox SDK, which has no hard session cap. A Namespace Devbox stops after at most 24 hours even while it works, so your code restarts it. On boat, turn auto-stop off on a paid plan (default 1 hour).
50th cheapest of 361
$4,811 a month
316th of 361, with limits
$6,645 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: its VMs hibernate when idle and wake on the next request. Namespace caps Devboxes at 50 per workspace, so big bursts are a compromise there.
54th cheapest of 336
$642 a month
244th of 336, with limits
$250 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 Scale caps it at 250 VMs at once. Namespace caps Devboxes at 50 per workspace. boat allows 300 at once on its $100 plan.
140th of 349, with limits
$1,707 a month
279th of 349, with limits
$2,068 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
345th of 349, with limits
$9,012 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, with up to 250 VMs at once on Scale. Namespace's Devbox cap and time limit make it a compromise. boat fits too, with full VMs that fork while running.
77th cheapest of 359
$1,335 a month
282nd of 359, with limits
$1,093 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. CI runners with build caches are Namespace's main product. boat runs CI jobs on full VMs with Docker and /dev/kvm, but sells no managed runner or build cache.
96th cheapest of 374
$860 a month
87th cheapest of 374
$765 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
201st of 371, with limits
$250 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
Namespace's screenshot and click API works on macOS Devboxes only. On a Linux Devbox, or on CodeSandbox SDK, you install a desktop and VNC in your own image. boat streams a 60 fps Linux desktop with Chrome, built in.
54th cheapest of 367
$1,236 a month
108th of 367, with limits
$1,032 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
191st of 356, with limits
$789 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
191st of 343, with limits
$332 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
225th of 327, with limits
$9,012 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
112th of 351, with limits
$339 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
Namespace fits here: it runs macOS on Apple Silicon. CodeSandbox SDK and boat have no macOS.
Not ranked: misses a requirement6th cheapest of 35
$1,255 a month
Not ranked: misses a requirement

Key features

FeatureCodeSandbox SDKNamespaceboat
What it isAn SDK for sandboxed dev VMs; Together AI calls it deprecatedA CI and build platform with Devboxes for people and coding agentsA sandbox platform built for agents, on full VMs
IsolationFirecracker microVM with its own kernelLinux Devboxes run a container image on Namespace's own hardware; the docs do not say if each has its own kernelFull VM with its own kernel, on hosts dedicated to boat (AMD Ryzen 7 9700X and Ryzen 9 9950X); vCPUs are shared
CPU benchmark (V8 Web Tooling, 4 vCPU / 8 GB, StarSling run of 3 October 2026)Not in this run24.90 runs/s, rank 2 of 15 (shared)28.06 runs/s, rank 2 of 15 (shared), on a Ryzen 9 9950X host; the run cannot separate boat and Namespace
How long a session can runNo hard cap; hibernates after an idle timeout (30 minutes by default on paid plans, up to 1 day) and bills until thenDevboxes stop at 3 hours on Developer and Devbox Plus, 5 on Team, 24 on Business, even while you workAuto-stop defaults to 1 hour; set up to 30 days, or turn it off on a paid plan for no session cap
Pause and wakeHibernates with a memory snapshot; an HTTP request wakes it with processes still runningDevboxes stop after an idle timeout and start again when you connect; compute instances suspend with RAM keptDisk saved every minute and at each stop, kept at least 14 days; a resume is like a reboot, started by API
ForkFork a hibernated sandbox from its memory snapshot, or a running one that shares memory with its parentNo fork documentedFork a running sandbox from its last 1-minute disk snapshot; memory is not copied
Docker and nested virtualizationDocker and root, built from any Dockerfile; nested virtualization not documentedDocker in Linux Devboxes; /dev/kvm on Linux compute instancesDocker, root, systemd and /dev/kvm on every sandbox
Operating systemsLinux onlyLinux, macOS on Apple Silicon, and Windows on Team plans and upLinux only; Windows programs run through Wine on the Linux desktop
Shell accessTerminals, commands and files through the SDK; SSH is not documentedSSH into Devboxes, plus an MCP server to create them and run commandsSSH, 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 documentedHTTPS URLs that need a Namespace login; TCP through a CLI port-forward; no public IPUp to 50 HTTPS URLs, token-gated by default; raw ports on the public IPv6 address (some sandboxes also have IPv4)
Desktop and computer useNo built-in desktop; a headless Chromium template, and you can install a VNC desktop in your own DockerfileScreenshot and click API and a VNC desktop on macOS Devboxes; on Linux Devboxes you install a desktop yourself; VNC and RDP for compute instancesBuilt-in Linux desktop and Chrome at 1920x1080, 60 fps, with computer-use tools
Outbound internetOpen; no egress allowlist documentedEgress policies per blueprint, runner or instance: block, advisory or allow by domainOpen internet on every plan; no provider-side allowlist
Keeping API keys out of the sandboxSecrets passed in as environment variables; no credentials proxy documentedEgress rules inject a header from Namespace Vault, resolved outside the workloadOptional credentials proxy ($1 a day while on, plus $1 per 1,000 requests) for model providers and HTTPS APIs you register
Coding agentsYou install your own agent in the template and run it through the commands APIYou run Claude Code, Codex, OpenCode and others in Devbox sessions; hosts Claude Managed Agents, Cursor, Devin and Amp sessionsSeven harnesses installed, including Claude Code and Codex, with a prompt, steer and events API
Every feature Battleships tracks (43)
FeatureCodeSandbox SDKNamespaceboat
Full VM (own kernel)YesYesYes
Docker insideYesYesYes
Nested virtualizationNo documented wayYesYes
RootYesYesYes
SystemdNot publishedNot publishedYes
Desktop GUIWith your own setupYesYes
BrowserWith your own setupWith your own setupYes
Computer-use APINo documented wayYesYes
SSHNo documented wayYesYes
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 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 wayYesNo documented way
GPUNo documented wayNo documented wayNo documented way
WindowsNo documented wayYesNo documented way
Arm64No documented wayYesNo 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 wayNo documented wayYes
Audit logsNot publishedYesNo documented way
SSOYesYesNo documented way
SOC 2YesYesNo documented way
HIPAANo documented wayNo documented wayNo documented way
EU data residencyNo documented wayYesNo documented way
Zero data retentionNot publishedNot publishedYes

Performance

CodeSandbox SDKNot measured
Namespace24.90 runs/s
boat28.06 runs/s

In StarSling's run of 3 October 2026 (run 37073680030), on the V8 Web Tooling Benchmark at 4 vCPU / 8 GB, boat did 28.06 runs/s and Namespace 24.90. Both share rank 2 of 15, so the run cannot separate them. On real repo builds in the same run, boat took 135.8 s for Better-Auth against 150.5 s, 980 s for Mastra against 1,051 s, and 428 s for OpenClaw against 570 s. 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. Providers ran on different hardware in different regions. CodeSandbox SDK was not in this run, so there is no comparable CPU number for it. ComputeSDK measured CodeSandbox SDK's start time at its default size: 11.76 s median with 100 starts at once (6 November 2026).

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. Namespace measured on: Linux compute instance (unit-minutes, PAYG/overage $0.0015). 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.

ScenarioCodeSandbox SDK, a monthNamespace, 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$300 · Devbox on Business$20 · $20/mo
One agent that never stops
4 vCPU / 8 GB, 50 GB disk, running 24/7 all month
$341 · Scale$426 · Devbox on Business · 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$2,448 · Devbox on Business$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$1,264 · Devbox Plus · 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$3,287 · Devbox Plus · 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.

Namespace: Devboxes are billed in Devbox Minutes at $0.004 each: a 4 vCPU / 8 GB Devbox uses one a minute, $0.24 an hour. Pay as you go, or Devbox Plus at $250 a month for 50,000 minutes. Team ($100) and Business ($250) plan minutes do not cover Devboxes, but you need those plans for longer sessions. Storage costs $0.20 per GB-month, stopped too. New sign-ups get a 30-day trial with no card.

Namespace: 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

On CodeSandbox SDK the limit that bites is concurrency: Scale allows 250 VMs at once, so the 300 user sandboxes and the 1,000 short jobs need Enterprise. On Namespace it is time and count: a Devbox stops after 3 to 24 hours by plan, so even an 8-hour workday needs Business, and the always-on agent restarts every day. Namespace caps Devboxes at 50 per workspace, stopped ones included. Neither publishes an egress price, and CodeSandbox SDK does not publish a price for disk beyond 20 GB. 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.

ScenarioCodeSandbox SDKNamespaceboat
One coding agent, workdays
  • disk beyond 20 GiB: price unknown
  • egress price not published
  • egress price not published
None for this scenario
One agent that never stops
  • disk beyond 20 GiB: price unknown
  • egress price not published
  • Devbox on Business: sessions capped at 24 h
  • egress price not published
None for this scenario
50 agents in parallel
  • egress price not published
  • egress price not published
None for this scenario
Sandboxes for your users
  • Scale: max 250 concurrent
  • egress price not published
  • Devbox Plus: max 50 concurrent
  • egress price not published
None for this scenario
1,000 short jobs at once
  • Scale: max 250 concurrent
  • egress price not published
  • Devbox Plus: max 50 concurrent
  • 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

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

  • Memory hibernation and wake on request. Good for previews and code runs used in bursts: a request wakes a sleeping VM with its processes still running.
  • Forks that share memory. Good for branching many runs, such as rollouts or test variants, from one warm running state.
  • No clock on a busy sandbox. Good for long jobs: a sandbox that keeps working has no hard time limit, and only idle time makes it hibernate.

Use Namespace when

you need macOS or Windows machines, faster GitHub Actions runners with build caches, egress allowlists, or Devboxes for people that stop when idle.

  • macOS and Windows. Useful if agents build iOS or Mac apps or test on Windows: Namespace runs both, and CodeSandbox SDK is Linux only.
  • CI runners and build caches. Useful if you want faster GitHub Actions: Namespace is a drop-in runner with Docker, Bazel and Turborepo caching.
  • Egress rules and key injection. Useful if agents may reach only chosen domains, with keys added to requests from a vault outside the workload.

Where boat fits

If you run coding agents on Linux for hours or days, look at boat. Each agent gets a full VM with SSH, a desktop and agents you drive from outside. Turn auto-stop off on a paid plan (default 1 hour) for no session cap. boat has no macOS, no egress allowlist and keeps no memory across a stop.

A whole machine that keeps running

A Namespace Devbox stops after 3 to 24 hours by plan, even mid-task. CodeSandbox SDK documents no SSH and no /dev/kvm. boat gives SSH, systemd, Docker and /dev/kvm. With auto-stop off, it runs until you stop it.

A Linux desktop for computer use

Namespace's screenshot and click API works on macOS Devboxes only. On a Linux Devbox or on CodeSandbox SDK, you install a desktop and VNC yourself. boat streams a 60 fps desktop with Chrome.

Agents driven from outside

On CodeSandbox SDK you wire your own agent through commands and pass keys as environment variables. On Namespace you start agents in Devbox sessions, or a partner runs them. boat installs seven harnesses with a prompt, steer and events API.

Use boat when your agents work on Linux for hours or days: a full VM with no session cap once auto-stop is off, Docker and /dev/kvm, a 60 fps desktop, hosting on up to 50 ports, and coding agents you drive from outside. Compare it one to one: boat vs CodeSandbox SDK and boat vs Namespace.

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

In most scenarios we priced, yes. One coding agent on workdays comes to $193 a month on CodeSandbox SDK and $300 on Namespace, because an 8-hour session needs the Business plan. One agent running all month is $341 against $426, and Namespace restarts it every 24 hours. 50 agents in parallel come to $2,500 against $2,448. boat comes to $20, $26 and $317 for those three.

Which is faster, CodeSandbox SDK or Namespace?

CodeSandbox SDK is not in the CPU benchmark we use. In StarSling's run of 3 October 2026, Namespace did 24.90 runs/s at 4 vCPU / 8 GB and boat 28.06, on an AMD Ryzen 9 9950X host. Both share rank 2 of 15, so the run cannot separate them.

How long can a sandbox run on each?

CodeSandbox SDK has no hard cap on a busy sandbox; it hibernates after an idle timeout of up to one day. A Namespace Devbox stops at 3 hours on Developer and Devbox Plus, 5 on Team and 24 on Business, even while you work in it. boat stops after 1 hour by default; on a paid plan you can turn auto-stop off for no session cap.

Can CodeSandbox SDK and Namespace run Docker?

Yes, both run Docker inside the sandbox, and CodeSandbox SDK builds sandboxes from any Dockerfile. Namespace offers /dev/kvm on Linux compute instances. CodeSandbox SDK does not document nested virtualization. boat has Docker, systemd and /dev/kvm on every sandbox.

Which one runs macOS or Windows?

Namespace. It runs macOS on Apple M4 Pro and M5 Max chips, and Windows on Team plans and up. CodeSandbox SDK and boat are Linux only; boat runs Windows programs through Wine on its Linux desktop.

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