# Your coding agents run on your laptop. What that costs the team

> Claude Code, Codex and Cursor usually start on a developer's laptop. That works for one agent. Here is what it costs once a team wants more, from the mechanics, and how a machine per agent changes it without writing any code.

Claude Code, Codex and Cursor usually start on a developer's laptop. That works for one agent. Here is what it costs once a team wants more, from the mechanics, and how a machine per agent changes it without writing any code.

November 30, 2026 · 7 min read · The Sandscale team

Most teams start their coding agents on a laptop. 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: several agents at once, agents that keep going after the laptop closes, and agents that touch code nobody has read yet. None of these costs need a benchmark to see. They follow from how a laptop works. This post goes through them, then shows what changes when every agent gets its own machine, set up from the agent’s own MCP settings with no code to write.

## What running agents on a laptop costs

### One agent at a time, in practice

A laptop has one working copy per checkout, one set of ports, one CPU and one pool of memory. Two agents in the same checkout edit the same files and step on each other’s changes. You can give each agent its own clone or git worktree, and many people do, but the clones still share everything underneath. So most developers end up running one agent at a time and waiting for it.

### Parallel agents fight over ports and CPU

Say you start a second agent anyway. Both start a dev server, and both want port 3000. One agent’s `npm install` or build takes the CPU while the other agent’s test suite is running, so the tests time out or fail in ways that have nothing to do with the code. The agent then reads those failures as real and tries to fix them. That costs a review cycle, and it can leave changes in the diff that should not be there.

### Your secrets are in reach

An agent on your laptop runs commands as you. Whatever your user can read, a command the agent runs can read too: `~/.ssh`, cloud CLI credentials, tokens in your shell profile, `.env` files from other projects, a logged-in `gh`. The agents’ own permission prompts and sandbox modes narrow this, and they are worth turning on. But the boundary is still your machine and your account. That matters most when the agent is installing dependencies or running a test suite from a pull request you have not read.

### The run lives and dies with the laptop

If you close the lid, the machine sleeps and the agent stops. A dropped VPN, a flat battery or an OS update restart does the same. Leaving an agent running overnight means leaving the laptop open, awake and connected. And while the agent is busy, the laptop’s CPU and memory are busy too, so you are sharing your own machine with your agent.

### Nobody else can see what happened

What the agent ran lives in one person’s terminal scrollback. There is no shared record of the commands, no way for a second person to approve a risky step before it runs, and no single switch that stops every agent on the team.

Doing nothing is also a choice, and the cost is just as plain. Agent work stays limited to what one laptop can run at a time, and every developer carries the risks above alone.

## What changes with a machine per agent

[Sandscale](https://sandscale.dev/sandboxes) gives every agent its own machine: a Firecracker microVM with its own kernel, not a container sharing a kernel with other work. There are two kinds, and an agent can use either.

- **Sandboxes** are for one run. The agent starts one, runs commands in it, moves files in and out, and stops it when it is done. When a sandbox stops, its disk goes with it.
- **[Workspaces](https://sandscale.dev/workspaces)** are persistent cloud computers. The repository, branch, installed tools and the agent’s session are still there the next time you open the workspace. The [workspaces docs](https://sandscale.dev/docs/concepts/workspaces) put it simply: run Claude Code, Codex, Gemini CLI or your own agent inside a workspace and it keeps working when your laptop is closed.

Each laptop problem above has a direct counterpart:

- **Parallel work.** Each agent gets its own machine, with its own ports, CPU, memory and disk. Two dev servers on port 3000 is fine when they are on two machines.
- **Secrets.** The agent’s commands run in the microVM, not under your account on your laptop. Nothing from your home directory is in there unless you put it there. Secrets that a run does need come from [Vault](https://sandscale.dev/docs/concepts/vault), which injects them at run time and keeps them out of prompts and logs. Sandscale’s MCP servers never offer a Vault value to a model.
- **The laptop can close.** A workspace keeps running when you disconnect, and you can open it again over SSH or in the browser.
- **A shared record.** Every action lands in your organization’s audit log, as described below.

## Setting it up, with no code to write

You connect each agent to Sandscale’s MCP server. The address is `https://mcp.sandscale.dev/mcp`. The first time an agent connects, it opens a Sandscale sign-in, and after that it acts as you. These forms come from the Sandscale [Quickstart](https://sandscale.dev/docs/quickstart) and each tool’s own MCP docs.

**Cursor**, in `~/.cursor/mcp.json` (or `.cursor/mcp.json` for one project; see [Cursor’s MCP docs](https://cursor.com/docs/mcp)):

```json
{ "mcpServers": { "sandscale": { "url": "https://mcp.sandscale.dev/mcp" } } }
```

**Codex**, in `~/.codex/config.toml`, then sign in once ([Codex MCP docs](https://learn.chatgpt.com/docs/extend/mcp?surface=cli)):

```toml
[mcp_servers.sandscale]
url = "https://mcp.sandscale.dev/mcp"
```

```sh
codex mcp login sandscale
```

**Claude Code** connects through `sandscale mcp`, the local MCP server that comes with the Sandscale CLI. The Quickstart says signing in to the remote server from Claude Code is not available yet. The CLI runs on macOS and Linux:

```sh
curl -fsSL https://sandscale.dev/install | sh
sandscale login
claude mcp add sandscale -- sandscale mcp
```

No API key goes into any of these files. For the remote server, the client handles the OAuth sign-in. The local server uses your `sandscale login`. Because there are no secrets in the remote config, a project-level `.cursor/mcp.json` can be committed to the repository, and each person signs in as themselves.

After that you just ask the agent. For example: “Start a sandbox, clone this repository into it, install the dependencies, run the tests and tell me what fails, then stop the sandbox.” Tools that change something, such as starting a sandbox or running a command, can go through your coding tool’s own approval prompt, so you see each step before it runs.

For longer jobs, put the agent itself on a workspace:

```sh
sandscale workspace create --name agent-1 --template-id TEMPLATE_ID
sandscale workspace ssh agent-1
```

`sandscale workspace templates-list` shows the templates. Run Claude Code or Codex inside, detach, and close your laptop. A second agent gets `agent-2`. On Pro and up, [Agent Cloud](https://sandscale.dev/docs/concepts/agent-cloud) goes one step further: you give a task to an agent in one of your workspaces, watch it work, and get a branch and a pull request back.

## Policy, approvals and a record of what ran

This part does not depend on which agent you use, because every MCP call goes through the same API, permissions, plan limits and audit log as the rest of Sandscale.

- **Policies** set which templates, sizes and run times members may use, and which agents may run. See [approvals and policies](https://sandscale.dev/docs/concepts/approvals).
- **Approval gates** make a person sign off before an action happens. Nobody approves their own request. Approvals come with every plan.
- **A kill switch** for every organization stops its agents at once.
- **A hash-chained [audit log](https://sandscale.dev/docs/concepts/audit)** records sign-ins, sandboxes and workspaces started and stopped, commands run, files moved, secrets used, and approvals asked for and given, with who did it, when and where. For calls through the remote MCP server, it records the tool, the region, the outcome and the app, never the arguments. Every plan can read the log in the console. Team and Enterprise can export it.

## What the plans allow

These figures are from the live [pricing page](https://sandscale.dev/pricing) and [plans reference](https://sandscale.dev/docs/reference/plans):

- **Free:** 3 boxes at once, up to 2 vCPU each, and one workspace. Enough to try a couple of agents side by side.
- **Pro:** 30 boxes at once, up to 16 vCPU each. Agent Cloud is included.
- **Team:** 30 boxes at once, more on request, plus organizations, roles, SSO and audit log export.

Sandboxes, workspaces and build hosts all draw from the plan’s monthly vCPU-hours. A box counts for the whole time it runs, busy or idle. Sandscale runs in the United States, in N. Virginia.

## What this does not fix

- The agent can still write the wrong code. You still review its pull requests.
- Network access follows your plan and your organization’s policy. An agent that needs to install packages needs a network setting that allows it.
- A secret you hand to a box can be read by any process in that box, including a command the agent runs. Give runs narrow, short-lived credentials.
- Moving the agent off your laptop does not move your team’s habits. Decide who approves what before you run ten agents, not after.

E2B and similar companies sell sandboxes to developers building AI products. Sandscale is for teams using coding agents: every agent gets its own machine, so the team gets more done.

To try it, the [Quickstart](https://sandscale.dev/docs/quickstart) connects Claude Code, Codex or Cursor on the Free plan. For the details per agent, see our guides for [Claude Code](https://sandscale.dev/blog/sandscale-mcp-server-in-claude-code), [Codex](https://sandscale.dev/blog/sandscale-mcp-server-in-codex) and [Cursor](https://sandscale.dev/blog/sandscale-mcp-server-in-cursor).

**On this page**

1. What running agents on a laptop costs
2. What changes with a machine per agent
3. Setting it up, with no code to write
4. Policy, approvals and a record of what ran
5. What the plans allow
6. What this does not fix

**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

- [November 30, 2026 · **MCP servers your team's agents install: run them on the agent's own machine, not the laptop with everyone's keys** · A local MCP server runs with the same rights as the client that starts it. What the MCP spec's security guidance says about that, and how to put the coding agent and its MCP servers on a microVM of their own, with no code to write.](https://sandscale.dev/blog/running-untrusted-mcp-servers-in-a-microvm)
- [November 30, 2026 · **MCP tool annotations explained: what readOnlyHint and destructiveHint mean for teams approving agent tool calls** · What each MCP tool annotation means according to the spec, what Claude Code, Codex and Cursor do with them according to their docs, and how a team using coding agents can decide what to auto-approve and what a person must see.](https://sandscale.dev/blog/mcp-tool-annotations-explained)

---
Source: https://sandscale.dev/blog/coding-agents-on-your-laptop-what-it-costs-the-team
