GitHub Codespaces alternatives for running coding agents
Codespaces stops every session after 12 hours and bills $0.18 an hour for 2 cores. Which alternative fits depends on the limit your agents hit: the 12-hour cap, the price, self-hosting or how many run at once.
Last updated Prices checked on
Which alternative, for which limit
Why are you leaving Codespaces?
Your agent is Copilot
Copilot cloud sandboxes
An isolated Linux environment that GitHub creates for a Copilot session, billed per second. We found no way to run your own Claude Code, Codex or OpenCode CLI in it.
You want to self-host
Coder, or DevPod without a server
Coder defines workspaces with Terraform on your own infrastructure: you take on the control plane, the templates and the upgrades. DevPod is a client-only tool that reads the same devcontainer.
Your agents call an API
Daytona
Sandboxes that agents create from its SDKs, Linux containers by default, with $200 of free compute. A sandbox auto-stops after 15 minutes of inactivity unless you set the interval to 0.
One agent, always on
A VPS
A virtual server never times out and costs a fixed monthly price. You install the agent, patch the OS and isolate agents from each other yourself.
A few long sessions that pause with memory
flockvm
Each agent in its own Firecracker microVM, with no lifetime cap; pause keeps memory and processes. There is no browser IDE, no devcontainer.
You edit by hand, in the browser
Stay on Codespaces
Codespaces was built for a developer at an editor: VS Code in the browser or on the desktop, with prebuilds and four geographic areas. flockvm, Daytona and a VPS give you SSH or an API.
- an hour for 2 vCPU on flockvm, against $0.18 on Codespaces
- flockvm
- $0.016
- a month for 4 agents 8 h a weekday, against $126.72 on Codespaces
- flockvm
- $18
- vCPU at once: Daytona's published Tier 2 cap; flockvm runs 15 small VMs in France
- Daytona
- 100
- geographic areas for Codespaces; flockvm runs in France only
- GitHub Codespaces
- 4
At a glance
Codespaces, Daytona and flockvm at a glance
| flockvm | Git | Daytona | |
|---|---|---|---|
| What it is | Strength: A Firecracker microVM per agent | Partial: Dev container on a private VM | Partial: Containers by default, VMs separately |
| Session limit | Strength: None | Gap: 12 h, then restart | Partial: 15 min idle auto-stop, can be disabled |
| Idle timeout | Strength: None | Gap: 30 min default, 5 to 240 | Partial: 15 min default, 0 disables it |
| Stop or pause | Strength: Pause keeps memory and processes | Gap: Stop keeps files, not processes | Partial: Auto-stop |
| Editor | Partial: SSH, VS Code or Cursor Remote-SSH | Strength: VS Code in browser or desktop | Partial: SDKs and an API |
| devcontainer. | Gap: Not read | Strength: Yes, with prebuilds | Not covered here |
| Agent CLIs | Strength: Claude Code, Codex and more preinstalled | Partial: Install them yourself | Not covered here |
| Regions | Gap: France | Strength: 4 geographic areas | Not covered here |
| At once | Gap: 15 small, 7 default, 3 large or 1 xlarge in France | Partial: Capped, number not published | Strength: 100 vCPU on Tier 2 |
| 2 vCPU, one hour | Strength: $0.016, current rate | Partial: $0.18, plus storage | Partial: $0.1656 with 4 GiB |
| Free | Partial: 7-day trial with a card; $18 plan | Partial: Personal only; none for organizations | Strength: $200 of free compute |
The right GitHub Codespaces alternative for coding agents depends on which limit you hit: Codespaces stops every session after 12 hours, or after at most 4 hours without activity, and bills $0.18 an hour for 2 cores, with no free quota for organizations. If your agent is Copilot, use GitHub's own cloud sandboxes; to self-host, Coder, or DevPod without a server; for agents driven by an API, Daytona; for a few long-running agents, a VPS or flockvm. Ona, formerly Gitpod, closed its self-serve cloud on 31 October 2026.
flockvm wrote this page and is one of the options. Every price and limit comes from the provider's own pages, read on 1 November 2026, and we say where Codespaces fits better.
What Codespaces does well, and where agents hit its limits
Codespaces was built for a developer at an editor: a dev container from your devcontainer.json, on a VM "dedicated and private to you", opened in VS Code in the browser or on the desktop, with prebuilds, dotfiles and four geographic areas (EuropeWest, SoutheastAsia, UsEast, UsWest).
An agent that works for hours without you hits four limits:
- A 12-hour cap. "A codespace has a maximum lifetime of 12 hours", a limit that "applies even while you are actively using the codespace."
- An idle timeout of 30 minutes by default, settable from 5 to 240 minutes. Typing, mouse use and terminal input or output reset it. An agent that prints to a terminal keeps it alive; one that waits silently does not.
- A stop loses processes. "When you stop a codespace, any running processes are stopped." Files are kept.
- Price per core. Compute is $0.18 an hour on 2 cores, $0.36 on 4 and $0.72 on 8, plus $0.07 per GB-month of storage for as long as the codespace exists. Personal accounts get 120 core-hours a month on Free (60 hours on a 2-core machine) and 180 on Pro; "GitHub plans for organizations and enterprises do not include a free quota." Stopped codespaces are deleted after 30 days of inactivity by default.
GitHub also caps how many codespaces run at once; the limits "vary based on a number of factors", with no published number.
Codespaces alternatives at a glance
"—" means we did not find it on the provider's own pages on 1 November 2026.
| Option | Pick it when | Runs where | Session limit | Price (1 Nov 2026) |
|---|---|---|---|---|
| GitHub Codespaces (baseline) | A developer edits by hand in VS Code | GitHub's cloud, 4 geographic areas | 12 h, then restart | $0.18/h for 2 cores, plus storage |
| GitHub Copilot cloud sandboxes | Your agent is Copilot | GitHub's cloud | — | Per second, compute and memory |
| Coder | You self-host on your own cloud or Kubernetes | Your infrastructure | Set by your templates | Community free; your cloud bill |
| DevPod | You want devcontainer.json on any machine, no server |
Your laptop, a VM or a cluster | Yours | Free (MPL-2.0); your cloud bill |
| Daytona | Agents create sandboxes through an API | Daytona's cloud | Auto-stop after 15 min idle by default, can be disabled | $0.0504/vCPU-h + $0.0162/GiB-h, per second |
| A VPS | One always-on agent, and you run the server | The provider's data centre | None | Hetzner shared servers from €6.49/month |
| flockvm | A few long agent sessions in VMs that pause with memory | France, one host | None | small at $0.016/h, per second, with an $18 monthly plan |
| Ona (formerly Gitpod) | You are an enterprise and talk to sales | Ona's cloud or your VPC | — | By contract; self-serve closed |
Which Codespaces alternative fits your reason to leave?
You use GitHub Copilot: its cloud sandboxes
A cloud sandbox is "an isolated Linux environment that GitHub creates for a Copilot session": Copilot clones your repositories, runs commands and tests there, and you can run several sessions in parallel without staying connected. A stopped session keeps a snapshot "so you can resume it later".
Billing is per second: $0.000024 of compute per second (per vCPU, says GitHub's sandbox page), $0.000003 per GiB-second of memory while it runs, and $0.005 per GiB-month for the snapshot of a stopped session. The catch is in the name: GitHub documents it for Copilot sessions, and we found no way to run your own Claude Code, Codex or OpenCode CLI in it.
You want to self-host: Coder
Coder is "a self-hosted platform for cloud development environments and AI coding agents". Workspaces are defined with Terraform on your own infrastructure and shut down automatically when unused, and its registry has modules to run Claude Code, Codex and OpenCode in them. The server is AGPL-3.0 (coder/coder, 17,240 stars, release v2.37.9 on 30 October 2026). The Community edition is free; Premium is billed per user per year, with no price on the page.
You take on the control plane, the templates and the upgrades, and the isolation is whatever your template provisions.
You want devcontainers without a server: DevPod
DevPod is "a client-only tool to create reproducible developer environments based on a devcontainer.json on any backend": your laptop, a Kubernetes cluster, a remote machine over SSH or a cloud VM. It reads the same file as Codespaces. It is MPL-2.0, with 15,304 stars; check its pace before you commit: the latest release, v0.6.15, dates from 10 March 2025, and the last commit on the main branch from 14 November 2025.
Your agents call an API: Daytona
Daytona sells sandboxes that agents create from its SDKs. They "run as Linux containers by default", with VM sandboxes as a separate class. Compute is $0.0504 per vCPU-hour and $0.0162 per GiB-hour, billed per second, with $200 of free compute and no card at sign-up. A sandbox auto-stops after 15 minutes of inactivity unless you set the interval to 0. Limits come in tiers: 10 vCPU and 10 GiB of RAM with a verified email, 100 vCPU and 200 GiB after a card and a $25 top-up. Daytona's public repository is archived; development moved to a private codebase in June 2026.
For other sandbox APIs, see E2B alternatives.
One agent, always on: a VPS
A virtual server never times out and costs a fixed monthly price: Hetzner lists shared cloud servers from €6.49 a month, excluding VAT, in Germany, Finland, the US and Singapore. You install the agent, patch the OS and isolate agents from each other yourself. Claude Code on a VPS or in a microVM goes through that trade-off. If you want persistent VMs without running the server, exe.dev sells them in a flat-price pool; flockvm vs exe.dev compares the two.
A VM per agent that pauses with memory: flockvm
flockvm runs each agent in its own Firecracker microVM with its own kernel, root, Docker and systemd, on Ubuntu 26.04. A VM has no lifetime cap. Pause writes its memory to disk in about three seconds on a quiet host, and Resume brings back the same processes, IP address and SSH port. The default Agent image ships Claude Code, Codex, opencode, Gemini CLI and Cursor Agent, not signed in, and an environment clones your GitHub repositories and writes your variables and secret files into each new VM. You connect over SSH, or with VS Code and Cursor through Remote-SSH.
What it does not do: there is no browser IDE and no devcontainer.json support, no SDK (there is a REST API, a flockvm CLI and an MCP server), no fork, no GPU, and the VMs run in France, on one host, which holds at most 15 small, 7 default, 3 large or 1 xlarge VM at once today, across all customers. You sign up with Google, GitHub or an email link, and a new organization starts with a 7-day free trial: card required, nothing charged for 7 days, 25 hours of VM time, 2 VMs at once, small and default sizes. The current rates (flockvm.com, 1 November 2026, which may change) are $0.016 an hour for small (2 vCPU, 4 GB, 50 GB disk), $0.032 for default, $0.064 for large and $0.18 for xlarge, billed per second; paused and stopped VMs are free for now. The plan is $18 a month per organization, paid upfront by card, and comes back in full as VM and CI time; there are no free credits. Setup for Claude Code is on /integrations/claude-code.
What happened to Gitpod: Ona
Gitpod became Ona and moved to background agents. It joined OpenAI's Codex team in a deal that "officially closed on August 10, 2026", then shut down Ona Cloud on 31 October 2026: "New signups have already closed", and customers are pointed to Codex Cloud. What remains is the enterprise product, "in our cloud or your VPC" (runners on AWS or GCP), through sales. Since 5 August 2026 its Anthropic-based agent no longer comes with Ona-managed model access, though Ona says Claude Code, Codex CLI or OpenCode still run in its environments. flockvm vs Ona goes through what is left.
What do agent workloads cost?
Each agent gets 2 vCPU: a 2-core codespace at $0.18 an hour, a Daytona sandbox with 4 GiB at $0.1656, a flockvm small (4 GB) at its current $0.016. Compute only, before storage and free credits; Codespaces as an organization, with no free quota. A month is 22 weekdays or 730 hours.
| Workload | Codespaces (calc.) | Daytona (calc.) | flockvm (calc.) | Who wins and why |
|---|---|---|---|---|
| 4 Claude Code agents, 8 h a weekday | $126.72 | $116.58 | $11.26 of usage, so $18 with the plan | flockvm on price, while current rates hold. Daytona needs Tier 2 for 16 GiB of RAM. |
| 5 Claude Code agents, 8 h a weekday | $158.40 | $145.73 | $14.08 of usage, so $18 with the plan | flockvm on price, while current rates hold. |
| A 1-hour burst of 20 agents, once a month | $3.60, if your account may run 20 codespaces at once | $3.31 | Can't run it today: at most 15 small VMs at once on the host in France |
Daytona: its Tier 2 cap (100 vCPU) is published; GitHub's is not. |
| One agent always on, 24/7 | $131.40, restarted at least every 12 hours | $120.89, with auto-stop set to 0 | $11.68 of usage, so $18 with the plan | flockvm or a VPS; Codespaces stops it twice a day. |
| Evals: 40 sandboxes in parallel, 2 h, 4 times a month | $57.60, if the concurrency cap allows it | $52.99 | Can't run it today: 40 is above 15 | Daytona: an API made for it; 80 vCPU fits Tier 2. |
| One interactive session, 10 h a weekday, stopped or paused at night | $39.60 | $36.43 | $3.52 of usage, so $18 with the plan | flockvm on price; its pause keeps memory, a stopped codespace only files. |
The arithmetic: Daytona at 2 vCPU and 4 GiB is 2 × 0.0504 + 4 × 0.0162 = $0.1656 an hour. 4 × 8 h × 22 = 704 h, so 704 × 0.18 = $126.72, 704 × 0.1656 = $116.58 and 704 × 0.016 = $11.26. 5 × 8 h × 22 = 880 h, so 880 × 0.18 = $158.40, 880 × 0.1656 = $145.73 and 880 × 0.016 = $14.08. 20 × 1 h = 20 h, so 20 × 0.18 = $3.60 and 20 × 0.1656 = $3.31. 730 × 0.18 = $131.40, 730 × 0.1656 = $120.89 and 730 × 0.016 = $11.68. 40 × 2 h × 4 = 320 h, so 320 × 0.18 = $57.60 and 320 × 0.1656 = $52.99. 10 h × 22 = 220 h, so 220 × 0.18 = $39.60, 220 × 0.1656 = $36.43 and 220 × 0.016 = $3.52. The flockvm plan is $18 a month and every dollar comes back as VM time, so a month with less than $18 of usage costs $18; usage past it is paid from a prepaid wallet.
A personal GitHub account's free quota covers 60 hours a month on 2 cores (Free) or 90 (Pro), worth $10.80 and $16.20. GitHub's billing page does not list each machine type's memory, so the RAM may differ from the 4 GiB used here.
A month of agents with 2 vCPU, 8 h a weekday
An estimate, per month, from the page's numbers:
- GitHub Codespaces = agents × 8 h a weekday × 22 weekdays × $0.18 an hour
- Daytona = agents × 8 h a weekday × 22 weekdays × $0.1656 an hour
- flockvm = agents × 8 h a weekday × 22 weekdays × $0.016 an hour, at least $18 (plan)
The monthly bill for the other workloads
When Codespaces is still the better choice
Stay on Codespaces if any of these matter more:
- You edit by hand, in the browser. flockvm, Daytona and a VPS give you SSH or an API.
- Your repository has a
devcontainer.jsonand prebuilds. DevPod and Coder reuse that file; flockvm does not read it. - You want regions outside Europe. Codespaces runs in Europe, Southeast Asia and two US areas. flockvm runs in France only; Amsterdam, Ashburn, Chicago and San Jose are planned.
- You need more than 15 sessions at once. GitHub does not publish its cap; flockvm runs at most 15
smallVMs at once in France today.
FAQ
Is there a free alternative to GitHub Codespaces?
DevPod and Coder Community are free software: you pay for the machines they run on. Daytona includes $200 of free compute, and Codespaces itself is free for 60 hours a month on 2 cores on a personal GitHub Free account. flockvm has no free credits, only a 7-day trial that needs a card (25 hours of VM time, 2 VMs at once).
What is the open-source alternative to GitHub Codespaces?
Coder (AGPL-3.0), which you self-host and define with Terraform, and DevPod (MPL-2.0), which runs from your machine and reads devcontainer.json. Daytona's public repository is archived.
Is Gitpod still an alternative to Codespaces?
Not for most teams. Gitpod became Ona, which joined OpenAI in August 2026 and shut down Ona Cloud on 31 October 2026. Its enterprise product is sold through sales.
Can I run Claude Code in GitHub Codespaces?
Yes: it is a Linux container you control, so you can install it. But the codespace stops after 12 hours at most, or after up to 240 minutes without activity, and a stopped codespace keeps its files, not the running agent.
Codespaces vs a microVM: what is the difference for agents?
Your agent runs in a codespace's dev container, on a VM that GitHub stops after 12 hours. A flockvm microVM gives each agent its own kernel, runs until you stop it, and pauses with its memory; for running many agents, see /use-cases/coding-agent-swarms, and for what a memory snapshot holds, /learn/firecracker-snapshot-restore.
Run your agents in their own microVMs
flockvm gives each coding agent a Firecracker microVM that pauses with its memory and resumes, billed per second. France is live, and you can start with a 7-day free trial.
Start your 7-day free trialCard required. Nothing charged for 7 days.