DEV Community

Sandscale
Sandscale

Posted on Originally published at sandscale.dev

Your coding agents run on your laptop. What that costs the 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 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 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 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, 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 and each tool's own MCP docs.

Cursor, in ~/.cursor/mcp.json (or .cursor/mcp.json for one project; see Cursor's MCP docs):

{ "mcpServers": { "sandscale": { "url": "https://mcp.sandscale.dev/mcp" } } }
Enter fullscreen mode Exit fullscreen mode

Codex, in ~/.codex/config.toml, then sign in once (Codex MCP docs):

[mcp_servers.sandscale]
url = "https://mcp.sandscale.dev/mcp"
Enter fullscreen mode Exit fullscreen mode
codex mcp login sandscale
Enter fullscreen mode Exit fullscreen mode

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:

curl -fsSL https://sandscale.dev/install | sh
sandscale login
claude mcp add sandscale -- sandscale mcp
Enter fullscreen mode Exit fullscreen mode

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:

sandscale workspace create --name agent-1 --template-id TEMPLATE_ID
sandscale workspace ssh agent-1
Enter fullscreen mode Exit fullscreen mode

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 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.
  • 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 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 and plans reference:

  • 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 connects Claude Code, Codex or Cursor on the Free plan. For the details per agent, see our guides for Claude Code, Codex and Cursor.

Originally published on the Sandscale blog.

Top comments (0)