DEV Community

Sandscale
Sandscale

Posted on Originally published at sandscale.dev

Run Claude Code on its own machine in a few steps

If you want Claude Code off your laptop, give it a machine of its own and run it there. A Sandscale workspace 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, and it is not the MCP setup that leaves Claude Code on your laptop and sends only some commands away.

1. Sign up

Create a Sandscale account. The 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 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.

2. Install the CLI and create a workspace

The CLI runs on macOS and Linux. From the CLI page and the Quickstart:

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
Enter fullscreen mode Exit fullscreen mode

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

sandscale workspace ssh claude-pay-1423
Enter fullscreen mode Exit fullscreen mode

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:

sandscale workspace stop --ws-id WORKSPACE_ID
Enter fullscreen mode Exit fullscreen mode

The disk is kept. A weekly look at the list catches machines nobody stopped.

If you have not created an account yet, sign up and start at step 2.

Originally published on the Sandscale blog.

Top comments (0)