CodeSandbox SDK vs AWS AgentCore
CodeSandbox SDK gives each sandbox a Firecracker VM, up to 16 cores on Scale, that keeps a 20 GB disk and hibernates with its memory. AWS AgentCore hosts agent sessions inside your AWS account: 2 vCPU microVM sessions of up to 8 hours, an Instances type on EC2 for longer sessions, and managed Code Interpreter and Browser tools.
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.
AWS AgentCore
Amazon Bedrock AgentCore is a set of AWS services to deploy and run AI agents: a Runtime that hosts your agent code, plus built-in Code Interpreter and Browser tools.
AgentCore is not a sandbox product first. It is a hyperscaler's agent platform: you push a container image or code, and each Runtime session gets its own Firecracker microVM. You reach a session through AgentCore APIs, an interactive shell API and authenticated HTTPS session endpoints. Around it sit managed tools (Code Interpreter, Browser) and services for memory, identity, gateways and evaluations. An Instances compute type runs longer sessions on EC2 in your own account. It is built for teams who already build on AWS and want agents to stay inside their account, IAM and VPC.
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 workload | CodeSandbox SDK: price rank | AWS AgentCore: price rank | boat: price rank |
|---|---|---|---|
| Software factory 100 at once · 4 vCPU / 8 GB · 2,200 sessions of 8 h a month A coding agent on an AgentCore microVM stops after 8 hours and keeps only paths under /mnt, so a longer agent needs the Instances type. CodeSandbox SDK keeps the whole 20 GB disk. boat adds SSH, systemd, /dev/kvm and a 51 GB disk saved every minute. | 32nd cheapest of 365 $3,731 a month | 132nd of 365, with limits $888 a month | 5th cheapest of 365 $634 a month |
| Always-on AI employees 50 machines 24/7 · 2 vCPU / 4 GB An assistant that runs all month outlasts AgentCore's 8-hour microVM lifecycle and needs Instances on EC2, up to 14 days per session. CodeSandbox SDK has no hard session cap. boat has no session cap once auto-stop is off (default 1 h). | 50th cheapest of 361 $4,811 a month | 109th of 361, with limits $1,300 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 AgentCore Code Interpreter is built for short code runs and bills only for CPU actually used and peak memory. CodeSandbox SDK fits too, with VMs that hibernate between runs. boat's start limits make big bursts a compromise. | 54th cheapest of 336 $642 a month | 11th cheapest of 336 $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 gives each user's sandbox an HTTPS host that wakes it on request, up to 250 VMs at once on Scale. AgentCore session endpoints need an AWS signature or OAuth token on every request. boat allows 100 to 2,000 sandboxes at once by plan, with token-gated or public URLs. | 140th of 349, with limits $1,707 a month | 205th of 349, with limits $506 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 sandbox that shares memory with its parent, so rollouts branch from one warm state. AgentCore documents no session snapshot or fork. | 341st of 349, with limits $3,861 a month | 129th of 349, with limits $8,075 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 | 46th cheapest of 359 $650 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 run your own image. CI jobs that build Android apps or VM images need /dev/kvm, which neither documents and boat exposes in every sandbox. | 96th cheapest of 374 $860 a month | 51st cheapest of 374 $399 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 | 242nd of 371, with limits $52 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 AgentCore Browser drives a browser window only. On CodeSandbox SDK you add a VNC desktop to your own template. boat streams a 1920x1080 Linux desktop at 60 fps with computer-use tools. | 54th cheapest of 367 $1,236 a month | 146th of 367, with limits $202 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 AgentCore ranks 4th here: Browser is a managed Chromium with live view, recording and replay. On CodeSandbox SDK you start from a headless Chromium template. boat ranks 6th and runs Chrome on a built-in desktop. | 125th of 356, with limits $741 a month | 4th cheapest of 356 $144 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 | 32nd cheapest of 343 $287 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 | 164th of 327, with limits $5,458 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 | 108th of 351, with limits $294 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 requirement | Not ranked: misses a requirement | 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 requirement | Not ranked: misses a requirement | Not ranked: misses a requirement |
Key features
| Feature | CodeSandbox SDK | AWS AgentCore | boat |
|---|---|---|---|
| What it is | An SDK for Firecracker VMs that hibernate, wake on request and fork | An AWS agent platform: hosted agent sessions plus managed Code Interpreter and Browser tools | A sandbox platform: each agent gets its own full Linux machine |
| Isolation | Firecracker microVM with its own kernel | Firecracker microVM per Runtime session; Code Interpreter and Browser in a containerized environment; Instances on EC2 in your account | Full VM with its own kernel, on hosts dedicated to boat (AMD Ryzen 7 9700X and Ryzen 9 9950X); vCPUs are shared |
| Machine size | Fixed sizes up to 16 cores / 32 GB on Scale, 64 cores / 128 GB on Enterprise | 2 vCPU / 8 GB per microVM session, not adjustable; on Instances the EC2 type you pick sets the size | Up to 16 vCPU / 32 GB on the $100 plan and above; 8 vCPU / 16 GB on the $20 plan |
| Session length | No hard cap; hibernates after an idle timeout of up to one day | Up to 8 hours per lifecycle on microVMs, 15 idle minutes by default; up to 14 days on Instances | Auto-stop defaults to 1 hour; set up to 30 days, or turn it off on a paid plan for no cap |
| What survives a stop | The 20 GB disk, plus memory and running processes through hibernation | Mounts under /mnt: a 1 GB per-session mount (preview), your own EFS or S3 Files in a VPC, or EBS on Instances; the rest resets | The disk, saved every minute and at each stop, kept at least 14 days; memory and running programs are not saved |
| Fork | Fork a hibernated sandbox from its snapshot, or a running one sharing its memory | No session snapshot or fork; on Instances you can seed EBS volumes from your own EBS snapshots | Fork a running sandbox from its last 1-minute snapshot (disk only) |
| Docker and /dev/kvm | Docker and root, built from any Dockerfile; /dev/kvm not documented | Root in your container image; Docker and /dev/kvm not documented | Root, Docker, systemd and /dev/kvm for Android emulators and VMs |
| Inbound access | HTTPS host per port, public by default, signed tokens for private sandboxes; an HTTP request wakes a hibernated VM | Authenticated HTTPS session endpoint for 1 to 5 ports (IAM or OAuth on every request); interactive shell API; no SSH | SSH, up to 50 HTTPS URLs per sandbox (token-gated by default or public), raw ports over public IPv6 |
| Network controls | No egress allowlist or static egress IP documented | VPC mode with security groups, PrivateLink and a NAT gateway for a fixed outbound IP | Open internet; filter inside the VM with nftables; the IP changes at each resume |
| Browser and desktop | Headless Chromium template; you can install a VNC desktop in your own Dockerfile | Managed Chromium with live view, recording and replay, profiles and proxies; no desktop beyond the browser window | Full Linux desktop and Chrome streamed at 1920x1080, 60 fps, with computer-use tools |
| Coding agents | You install your own agent in the template and run it through the commands API | AWS's managed harness built on Strands Agents, or your own agent code | Seven harnesses installed (Claude Code, Codex and more), driven by a prompt, steer and events API |
| Keeping keys out | Secrets go in as environment variables; no credentials proxy documented | AgentCore Identity stores OAuth tokens and API keys and hands them to your agent code | Optional AI credentials proxy ($1 a day plus $1 per 1,000 requests); keys of supported model providers never enter the sandbox, other secrets still do |
| GPUs and regions | No GPU; a country hint steers scheduling, but placement is not guaranteed | GPUs on Instances; 21 commercial AWS regions plus GovCloud (Instances in 9) | No GPU; Germany, Finland and France, no US or Asia region |
Every feature Battleships tracks (43)
| Feature | CodeSandbox SDK | AWS AgentCore | boat |
|---|---|---|---|
| Full VM (own kernel) | Yes | Yes | Yes |
| Docker inside | Yes | Not published | Yes |
| Nested virtualization | No documented way | No documented way | Yes |
| Root | Yes | Yes | Yes |
| Systemd | Not published | No documented way | Yes |
| Desktop GUI | With your own setup | No documented way | Yes |
| Browser | With your own setup | Yes | Yes |
| Computer-use API | No documented way | Yes | Yes |
| SSH | No documented way | No documented way | Yes |
| Persistent disk | Yes | Yes | Yes |
| Pause/resume | Yes | No documented way | Yes |
| Automatic snapshots | Yes | No documented way | Yes |
| Fork/clone | Yes | No documented way | Yes |
| Live fork (no pause) | Yes | No documented way | Yes |
| Memory fork | Yes | No documented way | No documented way |
| Custom image (Docker or snapshot) | Yes | Yes | Yes |
| ≥24 h sessions | Yes | No documented way | Yes |
| Idle auto-stop | Yes | Yes | No documented way |
| Wake on request | Yes | Yes | No documented way |
| HTTPS preview URLs | Yes | Yes | Yes |
| Raw TCP inbound | No documented way | No documented way | Yes |
| Public IPv4 | No documented way | No documented way | No documented way |
| Egress allowlist | No documented way | Yes | No documented way |
| Secret proxy | No documented way | No documented way | Yes |
| Secret proxy for any API | No documented way | No documented way | Yes |
| Preinstalled agents | No documented way | No documented way | Yes |
| Agent harness API | No documented way | No documented way | Yes |
| MCP server | No documented way | Yes | No documented way |
| GPU | No documented way | Yes | No documented way |
| Windows | No documented way | No documented way | No documented way |
| Arm64 | No documented way | Yes | No documented way |
| Self-hosting | No documented way | No documented way | No documented way |
| BYOC | No documented way | Yes | No documented way |
| Open source | No documented way | No documented way | No documented way |
| Scoped API keys | Not published | Not published | Yes |
| Spend limits | Not published | With your own setup | Yes |
| Usage per sandbox (API) | No documented way | No documented way | Yes |
| Audit logs | Not published | Yes | No documented way |
| SSO | Yes | Yes | No documented way |
| SOC 2 | Yes | Yes | No documented way |
| HIPAA | No documented way | Yes | No documented way |
| EU data residency | No documented way | Yes | No documented way |
| Zero data retention | Not published | Not published | Yes |
Performance
CodeSandbox SDK and AgentCore are not in StarSling's run of 3 October 2026 (run 37073680030), so we cannot say which is faster at CPU work. AgentCore microVM sessions stop at 2 vCPU, so a like-for-like test would have to use the Instances type. In that run boat did 28.06 V8 Web Tooling Benchmark runs per second at 4 vCPU / 8 GB, second of 15. Every boat sandbox in that run ran on an AMD Ryzen 9 9950X host; boat also places sandboxes on Ryzen 7 9700X hosts and does not promise a CPU model. For start time, ComputeSDK measured CodeSandbox SDK at 11.76 s median with 100 at once (6 November 2026), at its default size; AgentCore and boat are 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 AWS AgentCore 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.
| Scenario | CodeSandbox SDK, a month | AWS AgentCore, a month | boat, 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 | $26 · Pay-as-you-go (Instances) · with limits | $20 · $20/mo |
| One agent that never stops 4 vCPU / 8 GB, 50 GB disk, running 24/7 all month | $341 · Scale | $107 · Pay-as-you-go (Instances) · 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 | $1,286 · Pay-as-you-go (Instances) · 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 | $423 · Pay-as-you-go · with limits | $200 · $100/mo × 2 seats |
| 1,000 short jobs at once 2 vCPU / 4 GB, 1,000 at once, 3 minutes each, 200,000 jobs a month | $1,632 · Scale · with limits | $1,615 · Pay-as-you-go (Instances) | $8,800 · $2000/mo · with limits |
CodeSandbox SDK: CodeSandbox SDK sells VM credits at $0.01486 each, and a 4 vCPU / 8 GB VM burns 20 an hour, about $0.30. Billing is per started minute while the VM runs, including idle time before it hibernates. A hibernated VM costs nothing. The Scale plan adds a $170 monthly platform fee that is not usage credit.
AWS AgentCore: No monthly fee. Runtime microVMs, Code Interpreter and Browser bill per second for CPU actually used ($0.0895 per vCPU-hour) and peak memory ($0.00945 per GB-hour). The 4 vCPU shape in these scenarios is the Instances type: the EC2 on-demand price plus a 12% management fee, with EBS storage and data transfer billed on top. The scenario prices leave out EBS storage.
AWS AgentCore: Plans cost $20, $100, $500 or $2,000 a month. The whole plan price comes back as VM time for that month, and it does not carry over. A default sandbox costs $0.036 an hour, billed per second while it runs, busy or idle. A stopped sandbox has no compute charge, but saved snapshots above the included count and the AI credentials proxy still charge. The $20 plan includes 200 starts a day; extra starts cost $0.03 to $0.07.
Limits in those scenarios
On AgentCore a 4 vCPU agent needs the Instances type, and files outside /mnt reset on every stop, so the long-running scenarios and the user sandboxes do not fit as listed; the always-on one also hits the 14-day session cap. AgentCore fits 1,000 short jobs at once. CodeSandbox SDK fits the three agent scenarios, but its Scale plan allows 250 VMs at once, so 300 user sandboxes and 1,000 jobs need an Enterprise plan. It publishes no price for disk beyond 20 GB or for egress, and Together's docs call this SDK deprecated. boat's plans allow 100 to 2,000 at once; at 1,000 jobs at once its $2,000 plan charges for starts above 90 a minute, refuses them above 270, and never queues a start.
| Scenario | CodeSandbox SDK | AWS AgentCore | boat |
|---|---|---|---|
| One coding agent, workdays |
|
| None for this scenario |
| One agent that never stops |
|
| None for this scenario |
| 50 agents in parallel |
|
| None for this scenario |
| Sandboxes for your users |
|
| None for this scenario |
| 1,000 short jobs at once |
|
|
|
Which one should you use?
Use CodeSandbox SDK when
you want dev VMs that keep their disk, hibernate with their memory, wake on an HTTP request and fork from a warm state, and you accept that Together calls this SDK deprecated.
- Hibernation with memory. A VM sleeps after an idle timeout with its processes kept, and an HTTP request wakes it in about 0.5 to 2 seconds.
- Forks that share memory. Branch many runs from one warm, running state without booting each copy again.
- A disk that survives, any Dockerfile. Each VM keeps a 20 GB disk, runs Docker, and builds from any Dockerfile you write.
Use AWS AgentCore when
your agents must stay inside your AWS account and VPC, need a GPU or many regions, or are short code and browser tasks that fit the managed tools.
- It lives inside your AWS account. Teams built on AWS keep agents behind their own IAM, VPC and PrivateLink, in 21 commercial regions plus GovCloud.
- Managed tools billed on CPU used. Code Interpreter and Browser are ready-made, bill CPU only while it is used, and Browser adds live view and replay.
- GPUs and two-week sessions on Instances. Agents that need a GPU or a session of up to 14 days can run on EC2 in your account.
Where boat fits
CodeSandbox SDK is built for sandboxes that sleep with their memory and wake on request, and AgentCore for agents that stay inside AWS. If your agents do hours of real work on one machine, with builds, Docker, emulators and an app you want to share, boat gives each one a whole Linux machine with a disk saved every minute. boat has no GPU and runs only in Germany, Finland and France.
A whole machine with /dev/kvm
Neither CodeSandbox SDK nor AgentCore documents /dev/kvm, so Android emulators and nested VMs are not a supported path, and AgentCore does not document Docker. boat runs Docker, systemd and nested virtualization in every sandbox, up to 16 vCPU.
A bigger disk on every sandbox
CodeSandbox SDK gives 20 GB, with no published price for more. AgentCore keeps only paths under /mnt, so packages installed elsewhere reset at each stop. A default boat sandbox has 51 GB, saved every minute and at each stop; memory is not saved, so a resume is like a reboot.
SSH, open ports and agents driven from outside
CodeSandbox SDK connects through its SDK, with no SSH documented. AgentCore endpoints need AWS credentials or a token on every request. boat gives SSH and up to 50 token-gated or public HTTPS URLs, and drives seven installed agents with one API.
Use boat when your agents do real work for hours: builds, tests, Docker and emulators on a whole Linux machine with SSH, a disk saved every minute and a URL you can share. Compare it one to one: boat vs CodeSandbox SDK and boat vs AWS AgentCore.
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 AWS AgentCore?
For long-running agents AgentCore's table price is lower, $26 against $193 a month for one coding agent on workdays, but AgentCore does not fit that scenario as listed: files outside /mnt reset, and the price leaves out EBS storage. For 1,000 short jobs at once AgentCore comes to $1,615 and fits; CodeSandbox SDK comes to $1,632 but needs an Enterprise plan to run that many. boat costs $20 a month for the workday agent.
Which is faster, CodeSandbox SDK or AgentCore?
We cannot say: neither is in StarSling's run of 3 October 2026. boat did 28.06 V8 Web Tooling Benchmark runs per second in that run, on an AMD Ryzen 9 9950X host.
Can CodeSandbox SDK or AgentCore run Docker?
CodeSandbox SDK runs Docker on every VM and builds from any Dockerfile. AgentCore runs your container image as root, but its docs do not say Docker works inside a session. Neither documents /dev/kvm, which boat exposes.
How long can a session run?
A CodeSandbox SDK VM has no hard cap and hibernates after its idle timeout. An AgentCore microVM session lasts up to 8 hours, or 14 days on Instances. boat's auto-stop defaults to 1 hour; on a paid plan you can turn it off, and then there is no cap.
Can users reach a sandbox over HTTPS?
Yes on both, in different ways. CodeSandbox SDK gives each port an HTTPS host, public by default or with signed tokens, and a request wakes a hibernated VM. AgentCore gives a session endpoint for 1 to 5 ports, and every request needs AWS credentials or an OAuth token. boat gives up to 50 HTTPS URLs per sandbox, token-gated by default or public.
Where do they run?
AgentCore runs in 21 commercial AWS regions plus GovCloud. CodeSandbox SDK takes a country hint, for example to Europe, but does not guarantee placement. boat runs on machines in Germany, Finland and France, and you cannot pick a region.
Try boat
Install the CLI, then run boat new.
7-day free trial
More comparisons
- boat vs CodeSandbox SDK
- boat vs AWS AgentCore
- E2B vs CodeSandbox SDK
- Daytona vs CodeSandbox SDK
- Modal vs CodeSandbox SDK
- Vercel Sandbox vs CodeSandbox SDK
- Cloudflare Sandbox vs CodeSandbox SDK
- Blaxel vs CodeSandbox SDK
- Runloop vs CodeSandbox SDK
- Tensorlake vs CodeSandbox SDK
- Morph Cloud vs CodeSandbox SDK
- CodeSandbox SDK vs Northflank