# Give each Codex task its own machine

> How to start a Sandscale workspace for a Codex task, install Codex on that machine, and keep each task's clone and sign-in on its own disk. Signup, the few CLI steps, and when one workspace is not enough.

How to start a Sandscale workspace for a Codex task, install Codex on that machine, and keep each task's clone and sign-in on its own disk. Signup, the few CLI steps, and when one workspace is not enough.

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

Two Codex tasks in the same checkout fight over files, ports and the meaning of a failing test. The straightforward fix is a machine per task. A Sandscale [workspace](https://sandscale.dev/workspaces) is a persistent cloud computer with its own disk, so the clone, the tools and Codex’s sign-in stay with that task. This is the short path to that setup. The longer non-interactive walkthrough is [codex exec in a cloud workspace](https://sandscale.dev/blog/codex-exec-in-a-cloud-workspace). If you would rather keep Codex on the laptop and send only some commands away, that is the [MCP setup](https://sandscale.dev/blog/sandscale-mcp-server-in-codex).

## Start with an account

[Sign up for Sandscale](https://cloud.sandscale.dev/auth/signup?utm_source=blog&utm_campaign=spike-3dec). The [Quickstart](https://sandscale.dev/docs/quickstart) says you start on the Free plan: 100 awake vCPU-hours a month, 3 boxes at once, and up to 2 vCPU per box. The [workspaces docs](https://sandscale.dev/docs/concepts/workspaces) say Free includes one workspace. That is enough to try one task on one machine. When you want a machine per task at the same time, a paid plan includes more. Pro and up need a payment method; Free does not.

A running workspace counts toward the plan’s hours whether Codex is busy or waiting. Paused time does not count, per the [pricing page](https://sandscale.dev/pricing).

## Create a workspace for the task

```sh
curl -fsSL https://sandscale.dev/install | sh
sandscale login
sandscale workspace templates-list
sandscale workspace create --name codex-pay-1423 --template-id TEMPLATE_ID --ttl-seconds 28800
sandscale workspace ssh codex-pay-1423
```

Name the workspace after the task or ticket. Inside the machine, install Codex the way OpenAI’s docs describe, sign in, and clone only that task’s branch. The disk persists, so you do this once per workspace.

Codex needs to reach OpenAI’s API. Network access follows your plan and your organization’s policy.

## Run the task, then stop

Work on the workspace, or drive `codex exec` there as the longer post describes. When the pull request is opened, or the task is otherwise done, stop the machine:

```sh
sandscale workspace stop --ws-id WORKSPACE_ID
```

The disk is kept, so you can come back to the same branch and caches. When the work is really finished, `sandscale workspace delete --ws-id WORKSPACE_ID` removes the workspace and its disk, and asks before it runs.

If a second task should not see the first task’s files, do not reuse the same workspace. [Sign up](https://cloud.sandscale.dev/auth/signup?utm_source=blog&utm_campaign=spike-3dec) if you still need an account, create a workspace per task, and stop each one when its work ends.

**On this page**

1. Start with an account
2. Create a workspace for the task
3. Run the task, then stop

**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/give-each-codex-task-its-own-machine
