# Dev containers vs a cloud workspace per coding agent

> The Dev Container Specification is a good way to describe a development environment. Here is how that compares with giving every Claude Code, Codex or Cursor agent its own cloud machine.

The Dev Container Specification is a good way to describe a development environment. Here is how that compares with giving every Claude Code, Codex or Cursor agent its own cloud machine.

December 3, 2026 · 4 min read · The Sandscale team

A team that has started using Claude Code, Codex or Cursor often already has a `devcontainer.json` in the repository. That file is useful, and this post is not an argument against it. The question teams trip over is whether the Dev Container Specification, by itself, is the same thing as giving every coding agent its own machine.

It is not. One describes the environment. The other is the machine the environment runs on, plus the list, the policy and the stop button that a team needs once there are many of those machines. You can use both.

## What the specification actually is

The [Development Container Specification](https://containers.dev/) is an open format “for enriching containers with development specific content and settings.” On the same site, a development container is described as a way “to use a container as a full-featured development environment.” It can run an application, separate the tools and runtimes a codebase needs, and help with continuous integration and testing. “Dev containers can be run locally or remotely, in a private or public cloud, in a variety of supporting tools and editors.”

The first metadata format in the spec is `devcontainer.json`. The [overview](https://containers.dev/overview) says it is a structured JSON-with-comments format “that tools can use to store any needed configuration required to develop inside of local or cloud-based containerized coding.” The same setup can be reused in CI: the overview points at the `devcontainers/ci` GitHub Action and Azure DevOps Task for running a repository’s dev container in a CI build.

Visual Studio Code’s [Dev Containers documentation](https://code.visualstudio.com/docs/devcontainers/containers) describes one supporting tool. The extension “lets you use a container as a full-featured development environment” and “open any folder inside (or mounted into) a container.” A `devcontainer.json` in the project “tells VS Code how to access (or create) a development container with a well-defined tool and runtime stack.” The extension supports the open specification; it is not the specification itself.

That is a solid answer to “how do we describe the tools this work needs, once, and reuse the description?”

## What a team of coding agents still has to decide

The specification does not try to be a fleet of machines for agents. A team running many Claude Code, Codex or Cursor agents still has to answer questions the file does not answer.

**How many machines, and who owns each one?** A `devcontainer.json` describes one environment. A team of agents needs many machines at once, one per agent and task, with names a person can recognise in a list. Opening a folder in a container from an editor is a good fit for one developer. It is a poor fit for ten agents working overnight.

**What happens when the laptop closes?** A dev container on a laptop lives and dies with that laptop, the same as any other local setup. The spec also covers remote and cloud tools, but then you are choosing a product or a cluster to run those containers, and you still have to decide how they are started, listed and stopped. The file does not do that on its own.

**Who can stop a run, and what credentials does it hold?** Agents work while nobody watches. The team needs a record of what each machine did, a way to stop one or all of them, and a place for secrets that is not the developer’s laptop. Those are team controls, not container metadata.

**Which agent runs inside the environment?** A supporting editor opens the folder and provides its own features. A coding agent needs a machine it can log into, install its CLI on, and keep using after the person who started it has closed their editor.

None of this is a failing of the specification. It is the edge of what a format for development environments is for.

## Using both

A `devcontainer.json` can still be the recipe for the image or template you start each agent machine from. That is a good use of it. The workspace is the machine: a persistent cloud computer with its own disk, a name, an owner, a time to live and a way to stop it. The specification is how you describe what is on that disk when the machine starts.

The other designs a team compares with this are a [laptop](https://sandscale.dev/blog/coding-agents-on-your-laptop-what-it-costs-the-team), a [vendor’s own agent cloud](https://sandscale.dev/blog/vendor-agent-clouds-what-they-cover-and-leave-out), a [cloud workspace built for one developer](https://sandscale.dev/blog/cloud-workspaces-for-one-developer-vs-a-team-of-agents), and CI as the place the tests run. CI should stay the merge gate; it should not be the agent’s edit-test loop. That split is the subject of [why the loop should not wait on CI](https://sandscale.dev/blog/agent-edit-test-loop-should-not-wait-on-ci).

## What Sandscale is in this picture

[Sandscale](https://sandscale.dev/workspaces) is for teams using coding agents. Every agent gets its own workspace. There is no control plane to write. You connect Claude Code, Codex or Cursor from the agent’s own settings and work the way you would on a new laptop.

The Dev Container file, if you have one, can inform the template that workspace starts from. The workspace is still the machine the team administers: you can list it, set a time to live, and stop it when the task is done. A running machine counts toward the plan’s hours whether the agent is busy or waiting, which is why those stop habits matter; we walk through them in [four habits for stopping and cleaning up a team’s coding-agent machines](https://sandscale.dev/blog/four-habits-for-stopping-and-cleaning-up-agent-machines).

**On this page**

1. What the specification actually is
2. What a team of coding agents still has to decide
3. Using both
4. What Sandscale is in this picture

**Run your agents in a box of their own**

Each sandbox is a Firecracker microVM. Free includes 100 awake vCPU-hours a month.

[Start free](https://cloud.sandscale.dev/auth/signup)

## Keep reading

- [December 3, 2026 · **A cloud workspace for one developer vs a machine per coding agent** · Cloud IDEs were built around one person and their editor. A team running Claude Code, Codex or Cursor needs a machine per agent. A short contrast, then a signup path to try the second shape.](https://sandscale.dev/blog/a-cloud-ide-vs-a-machine-per-coding-agent)
- [December 3, 2026 · **CI vs the agent's own machine: where each kind of check belongs** · Keep CI as the merge gate. Put a coding agent's edit-test loop on a machine of its own. A short split, and a signup path to give Claude Code, Codex or Cursor that machine.](https://sandscale.dev/blog/ci-vs-the-agents-own-machine)

---
Source: https://sandscale.dev/blog/devcontainers-vs-cloud-workspaces-for-agents
