GitHub Codespaces vs AWS AgentCore
GitHub Codespaces is a cloud dev environment for people working on a GitHub repository: a dev container on its own VM that stops after 12 hours at most. AWS AgentCore is an AWS platform that hosts agent code in microVM sessions of up to 2 vCPU and 8 hours, with managed Code Interpreter and Browser tools, and an Instances type on EC2 for sessions up to 14 days.
The companies and products
GitHub Codespaces
GitHub Codespaces is GitHub's cloud development environment: a ready-to-code Linux machine for a repository, opened in the browser, VS Code or the GitHub CLI.
Codespaces is a different kind of product from boat: a dev environment for people who work on a GitHub repository, not a sandbox API for agents. Each codespace is a Docker container built from the repo's dev container config. It runs on its own newly built VM on Azure, with 2 to 32 cores. It is built for developers and teams who want every contributor to start from the same setup, with prebuilds, port forwarding and GitHub billing.
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. “290th cheapest of 365” means 289 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 | GitHub Codespaces: 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 Codespaces gives an agent Docker in a dev container but stops at 12 hours. AgentCore stops microVM sessions at 8 hours and 2 vCPU, and keeps only files under /mnt mounts. boat gives a full VM with Docker; turn auto-stop off (default 1 hour) on a paid plan for long work. | 290th of 365, with limits $4,618 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 both: Codespaces needs a restart every 12 hours, and AgentCore needs the Instances type on EC2, up to 14 days per session. On boat you turn auto-stop off on a paid plan. | 320th of 361, with limits $6,970 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 CPU actually used and peak memory. Each codespace builds a dev container on a new VM. | 283rd of 336, with limits $619 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 GitHub does not publish how many codespaces can run at once. AgentCore session endpoints reach a session's app ports, but each request needs an AWS signature or an OAuth token. boat gives each sandbox up to 50 HTTPS URLs, token-gated by default or public. | 276th of 349, with limits $1,964 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 | 276th of 349, with limits $9,489 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 | 295th of 359, with limits $1,519 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 Neither Codespaces nor AgentCore can fork a warm machine or documents /dev/kvm. boat forks a running sandbox from its last 1-minute snapshot and exposes /dev/kvm; each fork counts as a start. | 317th of 374, with limits $909 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 Codespaces is a polished VS Code box per repo that stops after 12 hours at most. AgentCore offers an interactive shell API but no SSH, and keeps only files under /mnt mounts. boat has SSH and keeps its disk at least 14 days after a stop. | 144th of 371, with limits $270 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 A codespace can add a basic noVNC desktop through the desktop-lite dev container feature, which you set up yourself. AgentCore Browser drives a browser window, not a whole desktop. boat streams a 1920x1080, 60 fps Linux desktop with computer tools. | 297th of 367, with limits $1,367 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 Browser is a managed Chromium with live view and replay. On Codespaces you install and run a browser yourself. boat runs Chrome on a full machine you control. | 306th of 356, with limits $678 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 | 324th of 343, with limits $922 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 | 279th of 327, with limits $18,637 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 | 284th of 351, with limits $445 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 | GitHub Codespaces | AWS AgentCore | boat |
|---|---|---|---|
| What it is | A cloud dev environment for a GitHub repository, opened in VS Code, the browser or the GitHub CLI | 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, driven from code |
| Isolation | A Docker container on its own newly built VM, with its own virtual network | Firecracker microVM per Runtime session; Code Interpreter and Browser in a containerized environment | Full VM with its own kernel on hosts dedicated to boat (AMD Ryzen 7 9700X and Ryzen 9 9950X); vCPUs are shared |
| Machine size | 2, 4, 8, 16 or 32 cores, with 4 GB of memory per core | 2 vCPU / 8 GB per microVM session, not adjustable; on Instances the EC2 type sets the size | Up to 16 vCPU / 32 GB on the $100 plan and above |
| How long it runs | Stops after 30 idle minutes by default and after 12 hours at most, even while in use | Up to 8 hours per microVM lifecycle, 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 session cap |
| Files after a stop | Files are kept and storage is billed; a stopped codespace is deleted after 30 days by default | Mounts under /mnt only: a 1 GB per-session mount (preview), your own EFS or S3 Files in a VPC, or EBS on Instances; the rest resets | Disk saved every minute and at each stop, kept at least 14 days; memory and running programs are not saved |
| Fork and snapshots | No copy or snapshot endpoint; new codespaces start from a repo, branch, pull request or prebuild | No snapshot or fork of a session; on Instances you can seed new EBS volumes from your own EBS snapshots | Fork a running sandbox from its last 1-minute snapshot; saved snapshots as templates |
| Docker and /dev/kvm | Docker inside the dev container through a dev container feature; /dev/kvm not documented | Root inside the microVM; Docker and /dev/kvm not documented | Root, Docker, systemd and /dev/kvm on every sandbox |
| Reaching it | A URL per forwarded port, private, organization or public; SSH and CLI tunnels; no public IP | Authenticated HTTPS session endpoint for 1 to 5 ports on microVM sessions (IAM or OAuth on every request); interactive shell API; no SSH | Up to 50 HTTPS URLs, token-gated by default or public; SSH; public IPv6; raw ports on sandboxes without their own IPv4 work over IPv6 only |
| Browser and desktop | VS Code, JupyterLab and a terminal; a noVNC desktop through the desktop-lite dev container feature, which you configure | Managed Chromium with live view, session recording and replay, profiles and proxies; no desktop beyond the browser window | Full Linux desktop and Chrome streamed at 1920x1080, 60 fps, with computer tools |
| Coding agents | GitHub Copilot as a VS Code extension; other agents you install yourself | AWS's managed harness built on Strands Agents, or your own agent code in any framework | Seven harnesses installed, including Claude Code, Codex and OpenCode, with a prompt, steer and events API |
| Keeping keys out of the sandbox | Secrets are copied into the codespace as environment variables | AgentCore Identity stores OAuth tokens and API keys and hands them to your agent code | Optional AI credentials proxy ($1 per day on, plus $1 per 1,000 requests): with it on, real keys of supported providers stay out; other secrets still enter |
| Network controls | Open internet; GitHub says there is no way to restrict it | VPC mode with security groups, PrivateLink and a NAT gateway for a fixed outbound IP | Open internet, no provider-side allowlist; the IP changes at each resume |
| GPUs | No GPU machine types | NVIDIA G-series and Inferentia2 on the Instances type | No GPU on any size |
| Regions | US East, US West, Europe West and Southeast Asia | 21 commercial AWS regions plus GovCloud (Instances in 9) | Germany, Finland and France; no US or Asia region, no region choice |
Every feature Battleships tracks (43)
| Feature | GitHub Codespaces | AWS AgentCore | boat |
|---|---|---|---|
| Full VM (own kernel) | Yes | Yes | Yes |
| Docker inside | Yes | Not published | Yes |
| Nested virtualization | Not published | 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 | No documented way | Yes | Yes |
| Computer-use API | No documented way | Yes | Yes |
| SSH | Yes | No documented way | Yes |
| Persistent disk | Yes | Yes | Yes |
| Pause/resume | Yes | No documented way | Yes |
| Automatic snapshots | No documented way | No documented way | Yes |
| Fork/clone | No documented way | No documented way | Yes |
| Live fork (no pause) | No documented way | No documented way | Yes |
| Memory fork | No documented way | No documented way | No documented way |
| Custom image (Docker or snapshot) | Yes | Yes | Yes |
| ≥24 h sessions | No documented way | No documented way | Yes |
| Idle auto-stop | Yes | Yes | No documented way |
| Wake on request | No documented way | 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 | Yes | With your own setup | Yes |
| Usage per sandbox (API) | No documented way | No documented way | Yes |
| Audit logs | Yes | 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 | Yes | Yes | No documented way |
| Zero data retention | Not published | Not published | Yes |
Performance
Neither GitHub Codespaces nor AWS AgentCore is in the public benchmarks we use, so we cannot say which is faster. An AgentCore microVM session tops out at 2 vCPU, while Codespaces offers up to 32 cores. For reference, boat did 28.06 runs/s on the V8 Web Tooling Benchmark at 4 vCPU / 8 GB, second of 15 in StarSling's run of 3 October 2026 (run 37073680030). 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. GitHub Codespaces 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 | GitHub Codespaces, 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 | $51 · Personal account: GitHub Free | $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 | $270 · Personal account: GitHub Free · with limits | $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 | $3,019 · Personal account: GitHub Free | $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 | $850 · Personal account: GitHub Free · 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,889 · Personal account: GitHub Free · with limits | $1,615 · Pay-as-you-go (Instances) | $8,800 · $2000/mo · with limits |
GitHub Codespaces: Codespaces bills $0.09 per core-hour while a codespace is active, used or not, plus $0.07 per GB-month for storage while it exists, stopped too. There is no 4-core 8 GB machine, so 4 vCPU jobs are priced on the 4-core 16 GB one. Personal accounts get a free monthly quota and organizations do not.
AWS AgentCore: No monthly fee. Runtime microVMs, Code Interpreter and Browser bill per second for CPU actually used and for peak memory ($0.0895 per vCPU-hour and $0.00945 per GB-hour on Runtime v1). 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 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 (4 vCPU / 8 GB) costs $0.036 an hour, billed per second while it runs, busy or idle. A stopped sandbox has no compute charge; saved snapshots above the included count and the AI credentials proxy still charge. The $20 plan includes 200 starts a day; each extra start costs $0.03 to $0.07.
Limits in those scenarios
Codespaces stops every codespace after 12 hours, so it does not fit the always-on scenario, and GitHub does not publish how many can run at once, so 300 user sandboxes and 1,000 short jobs show as not confirmed. AgentCore fits only the 1,000-job burst: elsewhere files outside /mnt mounts reset after a stop, Instances sessions end at 14 days, and the user-sandbox scenario prices its code interpreter, a different kind of product. boat fits every scenario but the burst: the $2,000 plan includes 90 starts a minute, extra starts cost $0.03 to $0.07, and starts above 270 a minute fail with 429. boat never queues a start.
| Scenario | GitHub Codespaces | AWS AgentCore | boat |
|---|---|---|---|
| One coding agent, workdays | None for this scenario |
| 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 GitHub Codespaces when
your developers want a ready VS Code environment for a GitHub repository, opened from a branch or pull request, in the US, EU or Asia.
- Built into GitHub. Useful if your team lives on GitHub: open a ready dev container from any repo, branch or pull request.
- A real editor for people. Useful when humans do the work: VS Code in the browser or on your machine, JupyterLab, and machines up to 32 cores.
- Free hours for personal accounts. Useful for occasional personal work: a GitHub Free account includes 120 core-hours and 15 GB-month of storage each month.
Use AWS AgentCore when
your agents must stay inside your AWS account and VPC, need a GPU, 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, security groups and PrivateLink, in 21 commercial regions.
- Managed tools billed for what they use. For short code runs and browser tasks, Code Interpreter and Browser charge for CPU actually used and peak memory, with 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
If what you run is agents that work on a machine for hours, both ask for workarounds: Codespaces is built for a person in an editor and stops at 12 hours, and AgentCore microVM sessions stop at 8 hours and 2 vCPU and keep only files under /mnt. boat gives each agent a full VM that keeps its disk between runs and can be opened from a URL.
Long sessions, and the disk stays
A codespace stops at 12 hours and its processes end. An AgentCore microVM stops at 8 hours and resets everything outside /mnt mounts. You can use a restart script on Codespaces or EC2 Instances on AWS. A boat sandbox runs with no session cap once auto-stop is off (default 1 hour), and saves its disk every minute. Memory is not saved.
A full VM with /dev/kvm and a desktop
Neither documents /dev/kvm, so Android emulators and microVMs are not a documented setup. Codespaces can add a noVNC desktop you configure, and AgentCore Browser drives a browser window. boat has root, Docker, systemd, /dev/kvm and a 60 fps desktop on every sandbox.
Fork, shareable URLs and agents driven from outside
Neither can fork a running machine, so every parallel try rebuilds its state. AgentCore session endpoints need AWS credentials or a token on every request, and on Codespaces you script each agent over SSH. boat forks, serves up to 50 token-gated or public HTTPS URLs and has a prompt, steer and events API.
Use boat when your agents do heavy work on a Linux machine for hours or days: Docker, /dev/kvm, a desktop and HTTPS URLs, a disk saved every minute, and machines that fork while running. Compare it one to one: boat vs GitHub Codespaces 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 GitHub Codespaces cheaper than AWS AgentCore?
No. AgentCore costs less in every scenario we priced: one coding agent on workdays is $26 a month on AgentCore against $51 on Codespaces, and 50 agents in parallel are $1,286 against $3,019. AgentCore fits only the 1,000 short jobs scenario, because files outside /mnt mounts reset after a stop, and its Instances prices leave out EBS storage. boat comes in at $20 and $317 for those two.
Which is faster, Codespaces or AgentCore?
Neither is in the public benchmarks we use, so we cannot say which is faster. An AgentCore microVM session tops out at 2 vCPU, while Codespaces offers up to 32 cores. For reference, boat did 28.06 runs/s on the V8 Web Tooling Benchmark at 4 vCPU / 8 GB in StarSling's run of 3 October 2026, on an AMD Ryzen 9 9950X host.
Can I run an AI agent 24/7 on Codespaces or AgentCore?
Not without workarounds. A codespace stops after 12 hours even while in use, and an AgentCore microVM session stops after 8 hours, or up to 14 days on the Instances type. A boat sandbox auto-stops after 1 hour by default; on a paid plan you can turn auto-stop off for no session cap.
Can Codespaces or AgentCore run Docker?
Docker works inside a codespace through dev container features. AgentCore runs your container image as root in a microVM, but its docs do not say Docker works inside a session. Neither documents /dev/kvm. boat has Docker, systemd and /dev/kvm on every sandbox.
Do files survive a stop?
On Codespaces, files are kept until the stopped codespace is deleted, after 30 days by default, and storage bills until then. On AgentCore, paths under /mnt survive: a 1 GB per-session mount (preview), your own EFS or S3 Files in a VPC, or EBS volumes on Instances. boat saves the disk every minute and at each stop and keeps it at least 14 days; memory and running programs are not saved.
Is boat SOC 2 compliant?
No SOC 2 report today; SOC 2 is in progress. GitHub Enterprise Cloud lists SOC 1, SOC 2 and SOC 3 reports, and AgentCore is listed as a HIPAA eligible AWS service. Live status is at status.ascii.dev and our data retention policy is at docs.boat.dev/data-retention.
Try boat
Install the CLI, then run boat new.
7-day free trial
More comparisons
- boat vs GitHub Codespaces
- boat vs AWS AgentCore
- E2B vs GitHub Codespaces
- Daytona vs GitHub Codespaces
- Modal vs GitHub Codespaces
- Vercel Sandbox vs GitHub Codespaces
- Cloudflare Sandbox vs GitHub Codespaces
- Blaxel vs GitHub Codespaces
- Runloop vs GitHub Codespaces
- Tensorlake vs GitHub Codespaces
- Morph Cloud vs GitHub Codespaces
- CodeSandbox SDK vs GitHub Codespaces