Cloud Development Environments
A cloud development environment moves your toolchain off the laptop and onto a machine defined in the repository.
A cloud development environment, or CDE, is a development machine that runs on remote infrastructure and is built from configuration checked into the repository. You connect to it from a browser, an editor, or SSH. Every developer, and every coding agent, gets the same tools, versions and services from the same file. Facts on this page were checked against each product's own site or documentation in December 2026.
How a CDE Works
Most CDEs start from a Dev Container definition, usually .devcontainer/devcontainer.json. That specification adds development tools and settings to a plain container image. The CDE reads that file, builds or pulls the image, starts a container on a VM, and clones the repository into it. Your editor then attaches to the container instead of your local disk.
The parts that differ between products are who runs the VM, how the environment is defined beyond the container, and what it costs while idle.
The Tools
| Tool | Hosting | Defined by | License |
|---|---|---|---|
| GitHub Codespaces | GitHub-hosted VM | Dev container configuration | Proprietary |
| Ona, formerly Gitpod | Your own VPC on AWS or GCP | Dev Containers and Automations | Proprietary |
| Coder | Self-hosted on your infrastructure | Terraform templates | AGPL-3.0 |
| DevPod | Client only, on any provider you configure | devcontainer.json | MPL-2.0 |
| Daytona | Daytona cloud | SDK calls, aimed at AI-generated code | Public repository archived in October 2026 |
GitHub Codespaces. GitHub hosts each codespace "in a Docker container, running on a virtual machine." You configure it with dev container files in the repository and connect from the browser, VS Code, or GitHub CLI. GitHub's billing page lists 120 hours of compute and 15 GB-month of storage free each month for personal accounts on GitHub Free. A 2-core machine costs $0.18 per hour and storage $0.07 per GB-month after that. The same page gives a 2-core machine a usage multiplier of 2, so it draws down the free quota twice as fast as the clock.
Ona, formerly Gitpod. gitpod.io now redirects to ona.com, which presents Ona as a platform for running software engineering agents, each in its own cloud environment. Its getting-started page says you "run Ona in your own VPC on AWS or GCP" and define the setup with Dev Containers and Automations. The same page states that new customer signup is closed. OpenAI announced in June 2026 that it would acquire Ona to bring its cloud execution into Codex.
Coder. Coder is a self-hosted platform for cloud development environments and AI coding agents, run on infrastructure you control. Workspaces are defined with Terraform, so one template can target AWS EC2, Azure, Google Cloud, Kubernetes or Docker. The open source edition is AGPL-3.0, and a Premium license adds support and custom deployments.
DevPod. DevPod "runs solely on your computer," with no server to install. It reads devcontainer.json and uses a provider to start the container on your machine, a remote host, or a cloud account. It suits teams that want CDEs without running a control plane. The repository is MPL-2.0.
Daytona. Daytona started as a CDE. It now describes itself as "Secure Infrastructure for Running AI-Generated Code." Its documentation calls each sandbox a full computer "with complete isolation," with its own kernel, filesystem and network stack. The GitHub repository was archived on October 3, 2026. Pick Daytona for agents that need a short-lived machine from an API call, not for a developer's daily editor session.
CDEs and Agent Sandboxes
A CDE and an agent sandbox solve the same problem from two directions. A CDE gives a person a reproducible machine that stays up for a working day. A sandbox for coding agents gives a program an isolated machine it can start in seconds, run commands on, and throw away.
The line is blurring. Ona and Coder now market agents running inside their environments. Daytona moved from developer environments to agent sandboxes. The practical question is who drives the machine:
- A person in an editor. Pick a CDE with good editor integration and per-user persistence, such as Codespaces or Coder.
- An agent from a script. Pick a sandbox priced by the second, with an SDK to create and destroy machines.
- Both on the same project. Keep one
devcontainer.json, so people and agents get the same toolchain whichever host runs it.
Agents also need isolation from each other. Two agents in one container still share a working directory. Give each its own Git worktree or its own machine, as covered in parallel coding agents.
Running a Dev Container With Treq
Treq keeps its window, repository state and workspaces on your machine. With the Devcontainer environments Feature Preview turned on, Treq runs agent sessions and terminals inside the repository's dev container instead of on the host. Devcontainer Environments covers the setup, which needs Docker and the Dev Containers CLI. The same devcontainer.json that starts a Codespace or a DevPod workspace then also defines where Treq's agents run.
Next Steps
- Sandbox Providers for AI Coding Agents: E2B, Daytona, Modal and others compared on price and isolation
- Devcontainer Environments: run Treq agents inside a repository's dev container
- Best Tools for Running AI Coding Agents in Parallel: local tools for running several agents at once
- Git Worktrees for AI Coding Agents: isolate agents on one machine