← Blog

Laptop or a Kubernetes cluster you run, versus a machine per coding agent

Three ways to give Claude Code, Codex or Cursor a place to work: keep it on the laptop, build the platform on Kubernetes you operate, or use a machine a product provides. What each one actually asks of the team.

A team that wants every coding agent on its own machine is choosing how that machine comes into existence. The honest options are not a long list of vendors. They are: keep the agent on a laptop, build and run a platform yourselves (Kubernetes is the usual cluster for that), or use a machine a product provides.

This post compares those three on what they ask of the team. It does not invent benchmarks, and it does not claim Kubernetes cannot do the job. Kubernetes can. You then operate the cluster. The third option is what you use when you do not want to write that control plane.

On a laptop

Most teams start here. Someone installs Claude Code, Codex or Cursor, points it at a repository, and it works. For one developer with one agent on one task, that setup is hard to beat.

The costs show up when the team wants more. A laptop has one working copy per checkout, one set of ports and one pool of CPU and memory. Two agents in the same checkout edit the same files. Close the lid, and the run stops. The agent runs as the developer, so the same account’s credentials are in reach. What it did lives in one person’s terminal. We walk through those mechanics, without invented numbers, in what running coding agents on a laptop costs the team.

A laptop is still the right tool for a short, attended task. It is a poor fleet.

On a Kubernetes cluster you run

This is the path a platform team reaches for when the laptop is no longer enough and they already operate a cluster. You run a Pod per agent, start it from an image, attach a volume, inject secrets, and write the controllers and conventions around that.

Kubernetes’s own documentation is the right place to read what you are signing up for. Pods “are the smallest deployable units of computing that you can create and manage in Kubernetes.” A Pod is “a group of one or more containers, with shared storage and network resources,” always co-located, “run in a shared context.” That shared context, the same page says, “is a set of Linux namespaces, cgroups, and potentially other facets of isolation - the same things that isolate a container.” You also “need to install a container runtime into each node in the cluster so that Pods can run there.”

That default is container isolation on nodes you operate, not a virtual machine per agent. If you want something else, Kubernetes documents a place to add it. The security overview tells you to enforce Pod security standards “so that Pods and their containers are isolated appropriately,” and says “you can also use RuntimeClasses to define custom isolation if you need it.” Network policies, the Secret API, admission control and audit logging are similarly documented as mechanisms you configure. The same overview is direct about the control plane: Kubernetes “expects you to configure and use TLS” for the API, and you can enable encryption at rest for control-plane data.

So the honest summary is: you can give each agent a Pod. You then own the cluster. That includes the control plane, the nodes, the container runtime, the images, the secrets, the network policies, the audit trail, who is allowed to create a Pod, what happens when a node dies, and whichever extra isolation you decide you need. Namespaces will help you divide the cluster between teams; they will not be a substitute for that work.

This is a real option. It is also a platform project. Teams that already have that project, and want coding agents on it, should go ahead. Teams that wanted a machine per agent and are about to start a platform project to get one should know that is what they are starting.

A machine a product provides

The third option is a machine you did not have to schedule. A product starts it, names it, gives it a disk, and hands you a way to list it and stop it.

The alternatives in this column include a vendor’s own agent cloud, a cloud workspace built for one developer, and CI. Vendor clouds run that vendor’s agent on that vendor’s infrastructure. Cloud workspaces built for one person are a good fit for one editor session and a poorer fit for a fleet of unattended agents. CI should stay the merge gate, not the agent’s loop.

Sandscale is the option built for teams using coding agents, with every agent on its own machine and no control plane to write. Each agent gets a workspace, a persistent cloud computer with its own disk, running as a Firecracker microVM with its own kernel. You connect Claude Code, Codex or Cursor from the agent’s settings, the way you would on a new laptop. The team gets one list, one set of templates and secrets, and the policy controls that stop a run or a fleet. A running machine counts toward the plan’s hours whether the agent is busy or waiting, so stopping it when the work ends is part of the job; see four habits for stopping and cleaning up.

What to ask before you choose

Question Laptop Kubernetes you run A machine a product provides
Who operates the machines? Each developer, on their own computer Your platform team, plus every node and the control plane The product, with you as the administrator of the fleet
What happens when the laptop closes? The run stops The Pod keeps running, if the cluster does The machine keeps running, if you have not stopped it
What isolation do you get by default? The laptop, and whatever local sandbox mode the agent has Linux namespaces and cgroups, the same things that isolate a container; custom isolation is yours to add A microVM per agent, in Sandscale’s case, with its own kernel
Who writes the control plane? Nobody, and there isn’t one You do Nobody on your team

If the work still fits on one attended laptop, stay there. If you already run Kubernetes and want agent machines as a workload on that cluster, build it there, and read the pages linked above as a checklist of what you will own. If you want each Claude Code, Codex or Cursor agent on its own machine and you do not want to write the platform for it, that is the case a workspace product is for.

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

Keep reading