# Run Claude Code on its own machine in a few steps

> A short path from signup to Claude Code running on a Sandscale workspace, a persistent cloud computer with its own disk, so the agent keeps working when your laptop is closed.

A short path from signup to Claude Code running on a Sandscale workspace, a persistent cloud computer with its own disk, so the agent keeps working when your laptop is closed.

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

If you want Claude Code off your laptop, give it a machine of its own and run it there. A Sandscale [workspace](https://sandscale.dev/workspaces) is that machine: a persistent cloud computer with a disk that keeps the repository, the installed tools and the agent’s session after the workspace stops. This is the short path. It is not the longer [headless walkthrough](https://sandscale.dev/blog/claude-code-headless-in-a-cloud-workspace), and it is not the [MCP setup](https://sandscale.dev/blog/sandscale-mcp-server-in-claude-code) that leaves Claude Code on your laptop and sends only some commands away.

## 1. Sign up

[Create a Sandscale account](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. Pro and up need a payment method; Free does not. The [workspaces docs](https://sandscale.dev/docs/concepts/workspaces) add that Free includes one workspace, which sleeps after 30 minutes idle. A running machine still counts toward those hours whether Claude Code is busy or waiting; paused time does not count, per the [pricing page](https://sandscale.dev/pricing).

## 2. Install the CLI and create a workspace

The CLI runs on macOS and Linux. From the [CLI page](https://sandscale.dev/cli) and the Quickstart:

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

`TEMPLATE_ID` is an id that `templates-list` prints. `--ttl-seconds 28800` is an eight-hour ceiling on the run, a backstop if nobody stops the machine.

## 3. Open the machine, install Claude Code, clone the repo

```sh
sandscale workspace ssh claude-pay-1423
```

`workspace ssh` connects with a short-lived certificate, as used in our live workspace posts. Inside that shell, install Claude Code the way Anthropic’s setup docs describe, clone your repository, and sign in once. The disk persists, so you do this once.

Claude Code needs to reach Anthropic’s API. Network access follows your plan and your organization’s policy; check that yours allows that.

## 4. Work, then stop the machine

Drive Claude Code on the workspace the way you would on a new laptop, or see the headless post if you want `claude -p` from a script. When the task is done:

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

The disk is kept. A [weekly look at the list](https://sandscale.dev/blog/four-habits-for-stopping-and-cleaning-up-agent-machines) catches machines nobody stopped.

If you have not created an account yet, [sign up](https://cloud.sandscale.dev/auth/signup?utm_source=blog&utm_campaign=spike-3dec) and start at step 2.

**On this page**

1. 1. Sign up
2. 2. Install the CLI and create a workspace
3. 3. Open the machine, install Claude Code, clone the repo
4. 4. Work, then stop the machine

**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/run-claude-code-on-its-own-machine-in-a-few-steps
