Best cloud development environments for AI coding agents in 2026
Updated December 2026. Prices and limits were checked on 29 November 2026 against each vendor's own pricing and docs pages.
A cloud development environment is a remote workspace with your repository, runtimes and tools already installed, reached from a browser, an editor or a terminal. In 2026 the best choice depends on who does the typing. For people, GitHub Codespaces is still the shortest path from a repository to a working editor. For AI coding agents, a per-second microVM sandbox from Lizard (lizard.build) or E2B fits better, because an agent needs isolation and a deadline more than it needs an editor. Teams that must keep code inside their own cloud account should look at Coder or Ona.
If the work is done by Claude Code or Codex, start with Lizard Sandboxes. One command creates a 2-vCPU Firecracker microVM with Claude Code installed, billed per second at $0.0162 an hour:
lizard sandbox create -t claude -s small --timeout 600000 --jsonI ran that command on 29 November 2026; the test and the agent's output are in the last section before the FAQ.
What is a cloud development environment?
A cloud development environment (CDE), also called a remote development environment, is a development machine that lives in a data center and is rebuilt from configuration each time, usually a devcontainer.json file or a template. You connect through a browser editor, VS Code or JetBrains over SSH, or a plain terminal.
A vendor can host it all (GitHub Codespaces, Daytona, E2B, Lizard Sandboxes), run only the control plane while machines sit in your cloud account (Ona, Google Cloud Workstations), or you can self-host (Coder, DevPod).
The category was built for people: faster onboarding, the same setup for every developer, no source code on laptops. An agent works through a shell, so it needs a machine it can break, a clock that stops the machine when the task ends, and a bill that follows seconds of use.
What does an AI coding agent need from a cloud development environment?
An AI coding agent needs six things from a cloud development environment.
- Strong isolation. A virtual machine or microVM with its own kernel contains a bad command better than a container that shares the host kernel.
- A fast start. An agent fleet starts one environment per task, so seconds per start add up.
- Per-second billing, so a task that lasts a few minutes does not pay for an hour.
- Unattended runs. Most CDEs stop on inactivity and define activity as a person typing.
- A pause that keeps files, so the clone and build cache survive between tasks without a compute charge.
- An API or CLI, so an orchestrator can create, prompt and delete environments.
Editor quality, which most CDE reviews rank first, matters only when a person shares the environment with the agent. For how such agents work, see background coding agents.
Which cloud development environments are best in 2026?
The eight options below cover vendor-hosted, your-cloud and self-hosted setups.
GitHub Codespaces
GitHub Codespaces is the best cloud development environment for people whose code is already on GitHub. A codespace opens from any repository page into VS Code in the browser, and each one runs on its own virtual machine with an isolated network.
A 2-core machine costs $0.18 an hour and storage costs $0.07 per GB-month, per GitHub's Codespaces billing page. Personal accounts on GitHub Free get 120 core-hours and 15 GB-month included each month, which is 60 hours on a 2-core machine; GitHub Pro raises that to 180 core-hours and 20 GB-month. Organization accounts include none.
For agents the limit is the idle timeout: 30 minutes by default and 240 minutes at most. Terminal output resets the timer, so an agent that keeps printing stays alive, and one that waits silently on a long build may not.
Ona (formerly Gitpod)
Ona is now an enterprise product for running agents and developers inside your own AWS or GCP account. Ona joined OpenAI's Codex team, with the deal closed on 10 August 2026, which older "Gitpod alternatives" lists do not mention. Ona's billing docs now state that "Ona Cloud is retired", and ona.com/pricing redirects to a contact-sales form.
What remains suits regulated teams. Runners deploy in your VPC and each environment is an EC2 or Compute Engine instance built from your Dev Container config. Its idle rules are written for agents: a running agent session counts as activity, background processes do not, and the default auto-stop is 30 minutes. You pay your cloud bill plus Ona's quote.
Coder
Coder is the self-hosted choice: an open-source control plane that provisions workspaces on infrastructure you own. Workspaces are defined in Terraform and can be EC2 virtual machines, Kubernetes pods or Docker containers, according to Coder's docs. Isolation is therefore your decision, and so is the operations work.
The Community edition is free. Coder's pricing page lists Premium as "Annually per user" with no public number, and allows up to 5 simultaneously active Coder Agents on Community and Premium. Pick Coder when code must never leave your network and a platform team can run it.
Daytona
Daytona now sells sandboxes for AI agents, and its docs list container sandboxes starting in under 90 ms. Sandboxes are Linux containers by default, with Linux and Windows VM sandboxes as an option.
Daytona's pricing page charges $0.0504 per vCPU-hour and $0.0162 per GiB-hour of memory, per second, with $200 of compute included for new accounts. A 2-vCPU, 4 GiB sandbox works out to $0.1656 an hour. Change one default for agents: auto-stop fires after 15 minutes and "triggers even if there are internal processes running in the sandbox", per the docs. An interval of 0 disables it.
DevPod
DevPod is a free, open-source client that turns any machine you can reach into a dev environment. It reads devcontainer.json and creates the container on your laptop, a remote host, a cloud VM or a Kubernetes cluster, per the DevPod docs.
You pay only your cloud provider. DevPod is a client-side tool with no hosted control plane, so an agent fleet needs your own orchestration. The GitHub repository shows its latest release, v0.6.15, dated 10 March 2025, so check activity before you standardize on it.
Lizard Sandboxes
Lizard Sandboxes are Firecracker microVMs, each with its own kernel, billed per second with idle time included. The Small size has 2 vCPU, 4 GB of RAM and a 20 GB disk for $0.0162 an hour. The claude and codex templates come with the agent installed, and lizard sandbox prompt runs it and streams what it does.
A pause keeps files only: processes and memory end, and the resume boots fresh. A paused sandbox has no compute charge, and its used disk bills at $0.14 per GB-month. For data that must outlive any sandbox, attach a Persistent Volume; a volume bills its full size at the same $0.14 per GB-month.
Lizard has no browser editor like Codespaces. You get the Lizard CLI, an SDK and a shell (lizard sandbox ssh), which suits agents and terminal users more than a team that lives in a web IDE. Lizard Pro costs $19 a month with $19 of usage included, after a 7-day trial that requires a card and includes $5 of usage. On the trial every sandbox is deleted at most 1 hour after it starts, so overnight runs need Pro.
E2B
E2B gives each agent session its own Firecracker microVM. Its pause is the most complete here: per E2B's persistence docs, a paused sandbox keeps the filesystem and the memory, so running processes survive, and it is kept indefinitely.
E2B's pricing page charges $0.000028 a second for 2 vCPU plus $0.000018 a second for 4 GiB, which is $0.1656 an hour. The Hobby plan has a one-time $100 usage credit, sessions up to 1 hour and 10 concurrent sandboxes. Pro costs $150 a month plus usage and allows 24-hour sessions and 100 concurrent sandboxes. For more sandbox APIs, see best AI agent sandboxes in 2026.
Google Cloud Workstations
Google Cloud Workstations is the managed option for teams already on Google Cloud: Compute Engine VMs with persistent disks inside your own project. Per Google's pricing page you pay for the VM, a management fee of $0.05 per vCPU-hour, and a control plane fee of $0.20 an hour per cluster, in use or not. Google's own example puts that last fee at $144 a month.
How do they compare on price, isolation and start time?
On price for 2 vCPU, the hosted options range from $0.0162 an hour (Lizard Sandboxes, Small) to $0.18 an hour (GitHub Codespaces). Every row below comes from the vendor pages linked above, checked on 29 November 2026.
| Option | Hosting | Isolation | 2 vCPU per hour | Billing | Default idle stop | Pause or stop keeps |
|---|---|---|---|---|---|---|
| GitHub Codespaces | GitHub | VM per codespace | $0.18 (2-core) | Hourly rate, plus $0.07 per GB-month | 30 min, max 240 | Files, until deleted after 30 days stopped |
| Ona | Your AWS or GCP | VM per environment | Your cloud's VM price plus a quote | Contact sales | 30 min; agent sessions count as activity | Files; stopped environments archived after 3 days by default |
| Coder | Self-hosted | Your choice: VM, Kubernetes pod or Docker | Your infrastructure cost | Community free; Premium per user, no public price | Set by your template admin | Depends on the template |
| Daytona | Daytona | Container by default; VM optional | $0.1656 with 4 GiB | Per second | 15 min, even with processes running | Files (memory on VM sandboxes) |
| DevPod | Your machines | Container on a machine you pick | Your cloud's VM price | Free, open source | Inactivity shutdown, configurable | Whatever the host keeps |
| Lizard Sandboxes | Lizard | Firecracker microVM | $0.0162 with 4 GB | Per second; Pro $19 a month with $19 of usage | None; runs to its --timeout (5 min default) | Files only; disk at $0.14 per GB-month |
| E2B | E2B | Firecracker microVM | $0.1656 with 4 GiB | Per second; Pro $150 a month plus usage | Session limit: 1 h Hobby, 24 h Pro | Files and memory |
| Google Cloud Workstations | Your GCP project | Compute Engine VM | VM price plus $0.10, plus $0.20 per cluster | Per hour fees | Inactivity limit you set | Persistent disk |
Start time has too little shared evidence for a table column. Daytona's docs state under 90 ms for a container sandbox. GitHub, Ona, Coder and Google publish no single number, because a cold start includes building a dev container. For Lizard I timed three lizard sandbox create -t claude -s small calls on 29 November 2026 from a machine in a Virginia data center, close to the sandboxes' us-east-1 region: the CLI returned in 1.32, 1.38 and 1.59 seconds, and the first exec answered 0.34 to 0.42 seconds later. That is our own measurement with our own client, and your network will add to it.
As a worked example, take one agent environment with 2 vCPU running 8 hours a day for 22 days, 176 hours a month, storage and plan fees aside:
- GitHub Codespaces: 176 × $0.18 = $31.68. A GitHub Free personal account's 60 included 2-core hours cut it to $20.88.
- Daytona or E2B: 176 × $0.1656 = $29.15. Daytona's $200 of included compute covers it at first; E2B sessions over 1 hour need the $150 Pro plan.
- Lizard Sandboxes: 176 × $0.0162 = $2.85, which sits inside the $19 of usage that Lizard Pro includes, so the month costs the $19 plan fee.
Which cloud development environment should you pick for humans, for agents, or for both?
Pick by who works in the environment and where the code may live.
- People on GitHub: GitHub Codespaces. No other option here opens a browser editor straight from the repository page, and GitHub Free personal accounts get 60 included 2-core hours a month.
- Agents only: Lizard Sandboxes or E2B, both Firecracker microVMs billed per second. Choose E2B when a pause must keep running processes, and Lizard when the hourly price and a one-command agent start matter more.
- Agents with very short tasks: Daytona, for container starts under 90 ms, after you change the 15-minute auto-stop.
- Code that must stay in your cloud: Ona for a vendor-run control plane, Coder to run all of it yourself, Google Cloud Workstations on Google Cloud.
- One developer and a spare VM: DevPod.
- Both people and agents: Codespaces or Coder for people and a sandbox service for agents. The two share only the repository, so a runaway agent cannot touch a developer's workspace.
Two neighbouring topics have their own guides: per-pull-request preview stacks in ephemeral environments, and OpenAI's hosted agent in Codex Cloud: setup, pricing, limits.
How do you run a coding agent in a cloud sandbox?
Create the sandbox with the agent's template, then hand it a prompt. With the Lizard CLI installed and Claude connected in the same project the sandbox runs in (agent credentials belong to a project), the sequence is:
# 1. A Small sandbox with Claude Code, 10-minute lifetime
lizard sandbox create -t claude -s small --timeout 600000 --json
# 2. Give the agent a task (replace sb_id with the id from step 1)
lizard sandbox prompt sb_id --agent claude "Clone https://github.com/pallets/itsdangerous, run its tests, write the pass and fail counts to /workspace/result.txt"
# 3. Read the result
lizard sandbox exec sb_id -- cat /workspace/result.txt
# 4. Pause to keep the files for the next task, or delete the sandbox
lizard sandbox pause sb_id
lizard sandbox rm sb_idPass -s small on purpose: outside the trial a create with no size is Medium, at $0.0324 an hour. Pass --agent claude too, because prompt defaults to Codex. Without --timeout a sandbox lives 5 minutes.
I ran this on 29 November 2026 with Lizard CLI 4.0.136. The create returned a firecracker sandbox in us-east-1 with "cpus": 2, "memoryMb": 4096 and "pricePerHour": 0.0162. Inside, nproc printed 2 and Claude Code reported version 2.1.286. I sent the prompt through the API that lizard sandbox prompt calls and checked the command's flags with --help. Claude Code installed the missing python3.11-venv package, ran the suite and wrote passed: 297, failed: 0 about 44 seconds after the prompt. After pause and resume the file and the clone were still there, and uptime showed a fresh boot. Then I deleted the sandbox.
FAQ
What are the best GitHub Codespaces alternatives? Coder and DevPod for self-hosting, Ona for environments in your own AWS or GCP account, Google Cloud Workstations on Google Cloud, and Daytona, E2B or Lizard Sandboxes when the user is a coding agent.
How much does GitHub Codespaces cost? GitHub charges $0.18 an hour for a 2-core codespace, $0.36 for 4 cores and $0.72 for 8 cores, plus $0.07 per GB-month of storage. Personal accounts on GitHub Free include 120 core-hours and 15 GB-month each month, GitHub Pro 180 core-hours and 20 GB-month. Source: GitHub's billing docs, checked 29 November 2026.
Is Gitpod still available? Gitpod was renamed Ona on 2 September 2025. Ona became part of OpenAI on 10 August 2026, and its docs say the hosted Ona Cloud is retired. Ona now sells runners that deploy in your own AWS or GCP account, through its sales team.
Can a coding agent run overnight in a cloud development environment? Yes, if you change the defaults. Codespaces stops after at most 240 idle minutes, Daytona auto-stops after 15 minutes unless the interval is 0, and E2B sessions last up to 24 hours on Pro. A Lizard sandbox runs until its --timeout, up to 596 hours with --timeout 0 on a paid plan; on the trial it is deleted after 1 hour at the latest.
Does pausing a cloud sandbox keep running processes? On E2B, yes: memory and processes survive. Lizard Sandboxes keep files only, and the resume boots fresh. A stopped codespace keeps its files and bills storage until it is deleted.
Build with AI. Ship with Lizard
You don't need a platform team to go live. Your whole cloud, one CLI command away.
- Services
- —
- Add-ons
- —
- Deployments
- —
- Sandbox starts
- —