GitHub Codespaces vs Beam
GitHub Codespaces is a dev environment for people: a Linux dev container for a GitHub repository, opened in VS Code or the browser, which stops after 12 hours at most. Beam is a serverless cloud you drive from a Python or TypeScript SDK, with quick gVisor sandboxes, persistent CPU VMs with a desktop, and GPUs.
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.
Beam
Beam is a serverless cloud for GPU inference, sandboxes, VMs and background jobs, built on its open-source runtime Beta9.
Beam runs functions, REST endpoints, task queues, pods, sandboxes and VMs on CPUs and GPUs, from a Python or TypeScript SDK. A sandbox is a container isolated with gVisor by default. It lives until you terminate it or its time to live runs out, and you can save it as a filesystem image or a memory snapshot. Beam VMs are a separate CPU product: a microVM with its own kernel, systemd, a root disk that stays when it stops, and a browser desktop. A VM can pause with its memory, fork and take disk snapshots. CPU work runs on Spot, Shared or Performance tiers at different prices.
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 | Beam: price rank | boat: price rank |
|---|---|---|---|
| Software factory 100 at once · 4 vCPU / 8 GB · 2,200 sessions of 8 h a month A software factory needs Docker, systemd and a disk that stays. Codespaces stops every 12 hours. A Beam VM has Docker, systemd and a root disk that stays while stopped. Neither documents /dev/kvm, which boat has on every sandbox. | 290th of 365, with limits $4,618 a month | 7th cheapest of 365 $1,200 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 does not fit Codespaces, which stops after 12 hours at most. A Beam VM and a boat sandbox both keep their disk and keep running; on boat you turn auto-stop off on a paid plan (default 1 hour). | 320th of 361, with limits $6,970 a month | 12th cheapest of 361 $1,495 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 Beam fits short code runs well: its sandboxes bill per millisecond while they run and end on their own timer. Each codespace builds a dev container on a new VM. boat counts each run as a start against its plan's start limits. | 283rd of 336, with limits $619 a month | 21st cheapest of 336 $161 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 Codespaces are made for GitHub users on a repository, and GitHub does not publish how many can run at once. Beam and boat both hand out machines to your own users from code; Beam sandbox URLs have no built-in auth, and boat URLs are token-gated by default. | 276th of 349, with limits $1,964 a month | 14th cheapest of 349 $567 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 | 332nd of 349, with limits $984 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 | 16th cheapest of 359 $258 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 Codespaces has no fork or snapshot API, so each run starts from a repo or a prebuild. Beam restores sandbox memory snapshots and forks VMs. boat forks a running sandbox and also has /dev/kvm for Android and VM builds. | 317th of 374, with limits $909 a month | 29th cheapest of 374 $300 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 but stops after 12 hours at most. A Beam VM keeps its root disk while stopped, and a boat sandbox keeps its disk at least 14 days after a stop. | 144th of 371, with limits $270 a month | 44th cheapest of 371 $55 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. Beam VMs have a browser desktop with Chrome and an SDK for screenshots, clicks and typing. boat streams a 1920x1080, 60 fps desktop with computer tools in every sandbox. | 297th of 367, with limits $1,367 a month | 12th cheapest of 367 $431 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 | 306th of 356, with limits $678 a month | 73rd of 356, with limits $272 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 | 16th cheapest of 343 $196 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 | 44th of 327, with limits $967 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 | 6th cheapest of 351 $219 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 Beam has GPUs from RTX 4090 up to H100, H200 and B200. Codespaces documents no GPU machine types, and boat has no GPU on any size. | Not ranked: misses a requirement | Cheapest of 102 $547 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 requirement | Not ranked: misses a requirement | Not ranked: misses a requirement |
Key features
| Feature | GitHub Codespaces | Beam | boat |
|---|---|---|---|
| Isolation | A Docker container on its own newly built VM, with its own virtual network | gVisor container by default for sandboxes, with an opt-in VM-backed mode; Beam VMs are CPU microVMs with their own kernel | Every sandbox is a full VM with its own kernel, on hosts dedicated to boat (AMD Ryzen 7 9700X and Ryzen 9 9950X); vCPUs are shared |
| How long it runs | Stops after 30 idle minutes by default (up to 240) and after 12 hours at most, even while in use | Sandbox time to live is 10 minutes by default, or -1 to run until you terminate it; VMs run until you stop them | 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 | A sandbox keeps files through a saved image, a memory snapshot or a volume; a Beam VM keeps its root disk (50 GiB by default, up to 100 GiB) while stopped | Disk saved every minute and at each stop, kept at least 14 days; memory and running programs are not saved |
| Docker and systemd | Docker inside the dev container through a dev container feature, with sudo | Beam VMs have Docker and systemd; sandboxes run Docker with docker_enabled, without systemd | Docker, systemd and root in every sandbox |
| Nested virtualization | /dev/kvm is not documented | Not documented for sandboxes or VMs | Yes, /dev/kvm in every sandbox for Android emulators and VMs |
| Fork and snapshots | No copy or snapshot endpoint; new codespaces start from a repo, branch, pull request or prebuild | Sandbox memory snapshots with running processes; VMs pause with RAM kept, fork and take disk snapshots | Fork a running sandbox from its last 1-minute disk snapshot; saved snapshots as templates |
| Starting point | Dev container config in the repository, with prebuilds built by GitHub Actions | A container image you choose, or a saved filesystem image or memory snapshot | boat's image or a saved snapshot; you cannot boot your own Docker image |
| GPUs | No GPU machine types documented | GPU sandboxes, serverless GPUs and GPU machines up to H100, H200 and B200 | No GPU on any size |
| Desktop and computer use | VS Code, JupyterLab and a terminal; a noVNC desktop through the desktop-lite dev container feature, which you configure | Beam VMs: browser Linux desktop with Chrome and an SDK for screenshots, clicks, typing and recording; not documented for sandboxes | Desktop and Chrome in every sandbox, streamed at 1920x1080, 60 fps, with computer tools |
| Reaching the machine | A URL per forwarded port, private, organization or public; SSH and CLI tunnels; no public IP | Sandboxes: a public HTTPS URL per port with no built-in auth. VMs: token-protected URLs and TCP ports on a persistent public IPv6 | Up to 50 HTTPS URLs, token-gated by default; SSH; public IPv6; raw ports on sandboxes without their own IPv4 work over IPv6 only; the IP changes at each resume |
| Outbound internet | Open internet; GitHub says there is no way to restrict it | Block all outbound traffic, or allow up to 64 hosts, wildcard domains, IPs or CIDRs, changeable while running | Open internet on every plan; no provider-side allowlist |
| Coding agents | GitHub Copilot as a VS Code extension; other agents you install and run yourself | You set it up: install agents and run them through process exec; Beam's MCP server plugs into Claude Code, Codex and Cursor | Seven harnesses installed, including Claude Code, Codex and OpenCode, with a prompt, steer and events API |
| Keeping keys out of the machine | Secrets are copied into the codespace as environment variables | Brokered secrets: the guest sees a placeholder, and Beam puts the real key into HTTPS headers to approved hosts | 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 |
| Regions | US East, US West, Europe West and Southeast Asia | US by default; another region if you choose one; any region of your own cloud with BYOC | Germany, Finland and France; no US or Asia region, no region choice |
Every feature Battleships tracks (43)
| Feature | GitHub Codespaces | Beam | boat |
|---|---|---|---|
| Full VM (own kernel) | Yes | No documented way | Yes |
| Docker inside | Yes | Yes | 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 | No documented way | Yes |
| Computer-use API | No documented way | No documented way | Yes |
| SSH | Yes | Yes | Yes |
| Persistent disk | Yes | With your own setup | Yes |
| Pause/resume | Yes | No documented way | Yes |
| Automatic snapshots | No documented way | No documented way | Yes |
| Fork/clone | No documented way | Yes | Yes |
| Live fork (no pause) | No documented way | Yes | Yes |
| Memory fork | No documented way | Yes | No documented way |
| Custom image (Docker or snapshot) | Yes | Yes | Yes |
| ≥24 h sessions | No documented way | Yes | Yes |
| Idle auto-stop | Yes | No documented way | No documented way |
| Wake on request | No documented way | No documented way | 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 | Yes | 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 | No documented way | No documented way |
| Self-hosting | No documented way | Yes | No documented way |
| BYOC | No documented way | Yes | No documented way |
| Open source | No documented way | Yes | No documented way |
| Scoped API keys | Not published | Not published | Yes |
| Spend limits | Yes | Not published | Yes |
| Usage per sandbox (API) | No documented way | No documented way | Yes |
| Audit logs | Yes | Not published | No documented way |
| SSO | Yes | No documented way | No documented way |
| SOC 2 | Yes | Yes | No documented way |
| HIPAA | No documented way | Yes | No documented way |
| EU data residency | Yes | Not published | No documented way |
| Zero data retention | Not published | Not published | Yes |
Performance
Neither GitHub Codespaces nor Beam is in the CPU benchmark we use, so we cannot say which is faster at CPU work. For start time, ComputeSDK measured a Beam sandbox at 534 ms median with 100 at once (2026-11-06), at Beam's default size; Codespaces and boat are not in ComputeSDK. 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 Beam 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 | Beam, 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 | $20 · Developer | $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 | $58 · Developer | $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 | $836 · Team | $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 | $312 · Team | $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 | $527 · Team · with limits | $8,800 · $2000/mo · with limits |
GitHub Codespaces: Codespaces bills $0.09 per core-hour for the whole time 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 machine with 8 GB, so 4 vCPU jobs are priced on the 4-core 16 GB machine. Personal accounts get a free monthly quota and organizations do not.
Beam: Beam bills sandboxes per millisecond while they run, for each vCPU and GiB, on Spot, Shared or Performance tiers; new accounts default to Performance. For 4 vCPU / 8 GiB that is $0.28 an hour on Performance, $0.088 on Shared and $0.036 on Spot, which Beam can interrupt with 30 seconds of notice. VMs bill nothing for compute while stopped. Developer is $20 a month with $20 of credit; Team is $89 a month plus usage. There are no egress fees, and storage is not billed yet.
Beam: 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
Every codespace stops after 12 hours at most, so the always-on price for Codespaces assumes a script that restarts it, and running processes end at each stop. GitHub does not publish how many codespaces can run at once, so 300 user sandboxes and 1,000 short jobs are not confirmed. Beam's Developer plan allows 30 vCPUs at once, so 50 agents of 4 vCPU need the Team plan. Beam does not bill storage yet, so the scenarios count no disk cost for it. For 1,000 short jobs at once, neither Beam nor boat fits as listed: Beam's Team plan allows 1,000 vCPUs at once where the burst needs 2,000, and boat's $2,000 plan includes 90 starts a minute, charges $0.03 to $0.07 for extra starts and refuses starts above 270 a minute with 429.
| Scenario | GitHub Codespaces | Beam | 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. For teams on GitHub: open a ready VS Code setup from any repo, branch or pull request, with prebuilds from GitHub Actions.
- Free hours for personal accounts. For occasional personal work: a GitHub Free account includes 120 core-hours and 15 GB-month of storage each month.
- Regions in the US, EU and Asia. For developers spread around the world: codespaces run in US East, US West, Europe West and Southeast Asia.
Use Beam when
you need GPUs, many short sandboxes, VMs that pause with their memory, US hosting with outbound rules, a SOC 2 report, or a runtime you can self-host.
- GPUs in the same platform. For work that needs a GPU: Beam offers GPU sandboxes, serverless GPUs and GPU machines from RTX 4090 up to H100, H200 and B200.
- Quick sandboxes and VMs that pause with memory. For short code runs, sandboxes bill per millisecond and end on their own timer; for long work, Beam VMs pause with their RAM, fork and have a desktop.
- Open source and your own cloud. For teams that must self-host: the Beta9 runtime is AGPL-3.0, and Beam can also run in your own cloud for a fee.
Where boat fits
Codespaces is built for people editing a repo, and Beam is built around serverless jobs, VMs and GPUs. If what you run is coding agents that work for hours, install tools, run Docker and emulators and need a screen, boat gives each one a full VM with all of that in every sandbox. Pick Beam when you need GPUs, and Codespaces when your developers want a VS Code box per repo.
Machines that keep running and keep their work
A codespace stops at 12 hours even while in use, so a long agent task needs a restart script and loses its processes. A Beam sandbox ends with its time to live unless you save an image, and a Beam VM keeps its disk. boat runs with no session cap once auto-stop is off (default 1 hour) and saves the disk every minute; memory is not saved.
A full VM with systemd and /dev/kvm
A codespace is a dev container, and a Beam sandbox is a gVisor container without systemd; Beam VMs add their own kernel and systemd. Neither documents /dev/kvm, so Android emulators and nested VMs are not a documented path. Every boat sandbox has its own kernel, systemd, Docker and /dev/kvm.
Agents and a desktop in every sandbox
On both, you install and drive each agent yourself. Codespaces copies keys in as environment variables, while Beam brokers secrets to approved hosts. boat installs seven agent harnesses with a prompt, steer and events API, streams a 60 fps desktop in every sandbox, and has an optional paid credentials proxy.
Use boat when your code starts and drives agents that work for hours or days: full VMs with systemd and /dev/kvm, a desktop and HTTPS URLs in every sandbox, coding agents installed, and a disk saved every minute. Compare it one to one: boat vs GitHub Codespaces and boat vs Beam.
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 Beam?
No. Beam costs less in all five scenarios we priced. One coding agent on workdays is $51 a month on Codespaces against $20 on Beam, and 50 agents in parallel come to $3,019 against $836. Beam does not bill storage yet, so its figures count none. boat comes to $20 and $317 for those two.
Which is faster, Codespaces or Beam?
Neither is in the CPU benchmark we use, so we cannot say which is faster at CPU work. ComputeSDK measured a Beam sandbox at 534 ms median to start with 100 at once (2026-11-06). A codespace builds a dev container on a new VM, which prebuilds speed up.
Can I run an AI agent 24/7 on Codespaces or Beam?
Not on Codespaces without restarts: a codespace stops after 12 hours at most, even while in use. On Beam you can set a sandbox's time to live to -1 so it runs until you terminate it, or use a Beam VM that keeps its disk. 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 and Beam run Docker?
Yes. Docker works inside a codespace's dev container through a dev container feature, with sudo. Beam supports Docker inside a sandbox with docker_enabled and inside its VMs. Neither documents /dev/kvm, which every boat sandbox has along with Docker and systemd.
Do Codespaces or Beam have GPUs?
Beam does, with GPU sandboxes, serverless GPUs and GPU machines up to H100, H200 and B200. Codespaces documents no GPU machine types, and boat has no GPU on any size, so pick Beam for GPU work.
Where do Codespaces and Beam run?
Codespaces runs in US East, US West, Europe West and Southeast Asia, and you pick the region when you create one. Beam runs workloads in the US unless you choose a specific region, or in your own cloud with BYOC. 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 GitHub Codespaces
- boat vs Beam
- 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