CodeSandbox SDK vs Koyeb

Both start a sandbox as a microVM from your own image, and both can sleep when idle and wake on the next request. CodeSandbox SDK keeps memory and disk through hibernation and forks from live state. Koyeb adds GPUs, outbound traffic rules, regions in the US and Asia, and a default image with four coding agents.

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.

Koyeb

Koyeb is a serverless cloud for apps, inference and sandboxes. In February 2026 it agreed to join Mistral AI.

A Koyeb sandbox is a Koyeb service: a microVM that starts from any Docker image. You drive it from Python or JavaScript SDKs or the Koyeb CLI: run commands, read files, expose a port and take snapshots. The default image comes with four coding agents. A sandbox can scale to zero when idle and wake on the next request, on CPU or GPU instance types. It suits teams that run AI agents or untrusted code next to apps they already host on Koyeb.

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 rankKoyeb: price rankboat: price rank
Software factory
100 at once · 4 vCPU / 8 GB · 2,200 sessions of 8 h a month
A software factory needs Docker and a disk that lasts. CodeSandbox SDK runs Docker with root and keeps its 20 GB disk through hibernation. Koyeb does not document Docker inside a sandbox, and its local disk is lost on redeploy unless you take an SDK snapshot or attach a volume. boat runs Docker and saves its disk every minute.
32nd cheapest of 365
$3,731 a month
92nd of 365, with limits
$366 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 one machine all month needs its files kept. CodeSandbox SDK keeps them through hibernation. On Koyeb you keep the sandbox awake or take an SDK snapshot before Deep Sleep. On boat, turn auto-stop off on a paid plan (default 1 hour).
50th cheapest of 361
$4,811 a month
194th of 361, with limits
$923 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 suit short code runs that sleep between uses. Koyeb has small instances from $0.0036 an hour and scales to zero on standard instances. CodeSandbox SDK wakes hibernated VMs with their memory.
54th cheapest of 336
$642 a month
6th cheapest of 336
$66 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
Koyeb fits this and wakes a user's sandbox on request. CodeSandbox SDK's Scale plan stops at 250 VMs at once. boat gives each user a full VM with up to 50 HTTPS URLs.
140th of 349, with limits
$1,707 a month
8th cheapest of 349
$495 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 that shares memory with its parent, so many rollouts branch from one warm state. Koyeb SDK snapshots can keep running processes, then start new sandboxes from them. A boat fork copies the disk only.
341st of 349, with limits
$3,861 a month
233rd of 349, with limits
$1,631 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
77th cheapest of 359
$1,335 a month
27th cheapest of 359
$429 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, which boat exposes and neither CodeSandbox SDK nor Koyeb documents.
96th cheapest of 374
$860 a month
143rd of 374, with limits
$88 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
232nd of 371, with limits
$37 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. On both, you add a desktop and VNC to your own Docker image and open its port. boat streams a 60 fps Linux desktop with Chrome, built in.
54th cheapest of 367
$1,236 a month
128th of 367, with limits
$123 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
237th of 356, with limits
$123 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
242nd of 343, with limits
$89 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
67th of 327, with limits
$1,683 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
261st of 351, with limits
$299 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
Koyeb runs GPU instances from an RTX 4000 SFF Ada up to H100, H200 and B200. CodeSandbox SDK and boat are CPU only.
Not ranked: misses a requirement3rd cheapest of 102
$628 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 SDKKoyebboat
IsolationFirecracker microVM with its own kernelCloud Hypervisor microVM per instanceFull VM with its own kernel, on hosts dedicated to boat (AMD Ryzen 7 9700X and Ryzen 9 9950X); vCPUs are shared
Biggest machineUp to 16 cores / 32 GB on Scale, 64 cores / 128 GB on EnterpriseInstance types up to 40 vCPU / 128 GB, and GPU types larger still16 vCPU / 32 GB with a 251 GB disk, on the $100 plan and above
Sleep and wakeHibernates with a memory snapshot after an idle timeout; an HTTP request wakes it with processes still runningScales to zero after at least 5 idle minutes and wakes on the next request; Light Sleep wakes in about 200 ms (preview); not on eco instancesStop and start by API; auto-stop defaults to 1 hour and does not watch for idle
Disk that survives20 GB disk kept through hibernation; more on request, price not publishedLocal disk lost on redeploy and in Deep Sleep; SDK snapshots or volumes (preview, 1 to 10 GB, two regions) keep files51 GB to 251 GB by size, saved every minute and at each stop, kept at least 14 days after a stop; memory is not saved
ForkFork a hibernated sandbox from its memory snapshot, or a running one that shares memory with its parentSDK snapshots of the filesystem, or with running processes, then new sandboxes from a snapshotFork a running sandbox from its last 1-minute disk snapshot; memory is not copied
Docker and imageDocker and root inside; templates build from any DockerfileStarts from any Docker image; Docker inside a sandbox is not documentedDocker, systemd and root inside; start from boat's image or a saved snapshot, not your own Docker image
Nested virtualizationNot documentedNot documentedYes, /dev/kvm on every sandbox for Android emulators and VMs
Shell accessTerminals, commands and files through the SDK; SSH is not documentedCommands and files through Python or JavaScript SDKs and the CLI; SSH is not documentedSSH, plus exec and files over the API
Inbound accessHTTPS host per port, public by default, signed tokens for private sandboxes; raw TCP is not documentedOne exposed HTTPS port at a time, plus an optional TCP proxy to one port (preview); no dedicated 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 documentedBlock all outbound traffic, or allow only listed IPs and CIDRs, from the SDKOpen internet; no provider-side allowlist; you can add firewall rules inside the sandbox
Desktop and browserNo built-in desktop; a headless Chromium template, and you can install a VNC desktop in your own DockerfileNo desktop or browser installed; you can add them to a custom Docker imageBuilt-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 APIDefault image installs Mistral Vibe, Codex, Gemini and OpenCode, run through the command APISeven 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 documentedSecrets set as environment variables inside the serviceOptional 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
GPUs and regionsNo GPUs; a country hint steers scheduling, but placement is not guaranteedRTX 4000 SFF Ada up to H100, H200 and B200; regions in the EU, US and AsiaNo GPUs; Germany, Finland and France; you cannot pick a region
Every feature Battleships tracks (43)
FeatureCodeSandbox SDKKoyebboat
Full VM (own kernel)YesYesYes
Docker insideYesNot publishedYes
Nested virtualizationNo documented wayNo documented wayYes
RootYesNot publishedYes
SystemdNot publishedNot publishedYes
Desktop GUIWith your own setupNo documented wayYes
BrowserWith your own setupNo documented wayYes
Computer-use APINo documented wayNo documented wayYes
SSHNo documented wayNo documented wayYes
Persistent diskYesWith your own setupYes
Pause/resumeYesYesYes
Automatic snapshotsYesYesYes
Fork/cloneYesYesYes
Live fork (no pause)YesNot publishedYes
Memory forkYesYesNo 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 wayNo documented wayYes
Secret proxy for any APINo documented wayNo documented wayYes
Preinstalled agentsNo documented wayYesYes
Agent harness APINo documented wayNo documented wayYes
MCP serverNo documented wayYesNo documented way
GPUNo documented wayYesNo documented way
WindowsNo documented wayNo documented wayNo documented way
Arm64No documented wayNo documented wayNo 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 publishedNo documented wayYes
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
KoyebNot measured
boat28.06 runs/s

Neither CodeSandbox SDK nor Koyeb 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. Koyeb publishes a CPU share of at least 0.25 dedicated vCPU per GB of memory, bursting to all cores. For start time, ComputeSDK measured CodeSandbox SDK at its default size: 11.76 s median with 100 starts at once (6 November 2026) and 2.33 s one at a time in its latest published run.

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 Koyeb 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 monthKoyeb, 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$29 · Pro$20 · $20/mo
One agent that never stops
4 vCPU / 8 GB, 50 GB disk, running 24/7 all month
$341 · Scale$57 · Pro$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$475 · Pro · 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$329 · Scale$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$485 · Scale · 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.

Koyeb: Koyeb bills each instance per second at a fixed price per instance type: eco-xlarge (4 vCPU / 8 GB, 20 GB disk) costs $0.0576 an hour. The idle period before sleep bills at the full rate, and Deep Sleep has no instance charge. Pro costs $29 a month with $10 of usage included, and Scale $299 with $100 included; the rest of the fee is not credit. Bandwidth above 1 TB a month costs $0.02 per GB in the US and EU.

Koyeb: 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 and 1,000-job scenarios need Enterprise. Its price for egress and for disk beyond 20 GB is not published. Koyeb's priced shape is eco-xlarge, with a 20 GB disk and no published price for more. Koyeb does not document Docker inside a sandbox, so the 50-agent scenario is not confirmed there, and eco instances guarantee only part of each vCPU, which throttles the 1,000-job burst. boat does not fit that burst either: 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 SDKKoyebboat
One coding agent, workdays
  • disk beyond 20 GiB: price unknown
  • egress price not published
  • disk beyond 20 GiB: price unknown
None for this scenario
One agent that never stops
  • disk beyond 20 GiB: price unknown
  • egress price not published
  • disk beyond 20 GiB: price unknown
None for this scenario
50 agents in parallel
  • egress price not published
  • not confirmed: Docker inside
None for this scenario
Sandboxes for your users
  • Scale: max 250 concurrent
  • egress price not published
None for this scenarioNone for this scenario
1,000 short jobs at once
  • Scale: max 250 concurrent
  • egress price not published
  • burstable CPU: 50% of each vCPU guaranteed, throttled above that
  • 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 must wake with their memory and processes intact, when you fork many runs from one live state, or when you need Docker inside, and you accept that Together calls this SDK deprecated.

  • Hibernation that keeps memory. For sandboxes that sleep between visits: an HTTP request wakes the VM with its memory and running processes intact.
  • Forks from live state. For branching many runs from one warm state: fork a running sandbox that shares memory with its parent.
  • Docker inside and a disk that survives sleep. For work that builds containers and must keep its files: Docker runs with root, and a hibernated sandbox keeps its disk with no volume to set up.

Use Koyeb when

your sandboxes need GPUs, outbound traffic rules, or regions in the US and Asia, or when they sit next to apps you already host on Koyeb.

  • GPUs on the same platform. For agents or evals that need a GPU: Koyeb runs instances from RTX 4000 cards up to H100, H200 and B200.
  • Regions in the US and Asia. For sandboxes that must run near users outside Europe: Frankfurt, Paris, Washington D.C., Singapore, Tokyo and more.
  • Outbound traffic rules. For running untrusted code: the SDK can cut a sandbox off from the internet or allow only listed IPs.

Where boat fits

CodeSandbox SDK and Koyeb are both built around sandboxes that sleep and wake fast. If your agents work for hours on builds, Docker, emulators, a browser and servers other people reach, look at boat. Each one gets a full VM with SSH, a desktop and the agents installed, and its disk is saved every minute. boat has no GPU and keeps no memory across a stop.

A whole machine with /dev/kvm

Neither CodeSandbox SDK nor Koyeb documents SSH or nested virtualization, so Android emulators and VM-based tests are not documented there. boat gives root, systemd, Docker, SSH and /dev/kvm in every sandbox.

Agents and desktop set up

On CodeSandbox SDK you install the agent. Koyeb's default image installs four agents, driven through the command API. On both, a desktop needs your own image with VNC. boat installs seven agents with a prompt and steer API and streams a 60 fps desktop. Its optional paid credentials proxy keeps model keys outside.

Hosting beyond one HTTPS port

Koyeb exposes one HTTPS port at a time, and CodeSandbox SDK serves HTTPS hosts that are public by default. boat serves up to 50 token-gated HTTPS URLs plus raw ports on the sandbox's IPv6 address. The IP changes at each resume.

Use boat when your agents do real work for hours on a machine that saves its disk for you: builds, Docker, emulators, a desktop browser and preview servers, with seven agents installed and an API to drive them. Compare it one to one: boat vs CodeSandbox SDK and boat vs Koyeb.

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

Not in these scenarios. One coding agent on workdays costs $193 a month on CodeSandbox SDK against $29 on Koyeb. One agent that never stops costs $341 against $57, though Koyeb's priced shape has a 20 GB disk. Sandboxes for your users cost $329 on Koyeb, while CodeSandbox SDK Scale caps at 250. boat comes to $20, $26 and $200 for those three.

Which is faster, CodeSandbox SDK or Koyeb?

Neither is in the public CPU benchmarks 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. boat also places some sandboxes on slower hosts.

Can CodeSandbox SDK and Koyeb run Docker?

CodeSandbox SDK builds sandboxes from any Dockerfile and runs Docker with root inside. Koyeb starts sandboxes from any Docker image, but does not document Docker inside a sandbox. Neither documents /dev/kvm, which boat exposes for Android emulators and VMs.

Does a Koyeb sandbox keep its files like CodeSandbox SDK?

Yes, if you set it up. Koyeb's local disk is lost on redeploy and in Deep Sleep. You take an SDK snapshot, of files or of files and running processes, or attach a volume (preview, 1 to 10 GB). CodeSandbox SDK keeps disk and memory through hibernation with no setup. boat saves the disk every minute with no code, but not memory.

Are CodeSandbox SDK and Koyeb still independent?

CodeSandbox is now part of Together AI, whose docs call this SDK deprecated and name together-sandbox as its successor. Koyeb agreed to join Mistral AI on February 17, 2026, and says its platform keeps running as part of Mistral Compute.

Does either have GPUs?

Koyeb does, from an RTX 4000 SFF Ada up to H100, H200 and B200, billed per second. CodeSandbox SDK and boat are CPU only.

Try boat

Install the CLI, then run boat new.

7-day free trial

More comparisons