This is the short path from nothing to Claude Code running a command in a Sandscale sandbox: a Firecracker microVM with its own kernel, not your laptop. You will create an account, install the CLI, run one command by hand to prove the account works, connect Claude Code, and then ask it to do the same thing through the MCP server.
It is a first-run guide. For permission rules, scopes and the remote server, read the longer setup guide for Claude Code. To run Claude Code itself on a cloud machine, see Claude Code headless in a workspace.
Sandscale commands and limits here come from the Quickstart, the plans reference and the CLI’s own sandscale help output. Claude Code details are from Anthropic’s MCP docs, as of November 2026.
1. Sign up
Create a Sandscale account. You start on the Free plan, which the Quickstart describes as 100 awake vCPU-hours a month, 3 boxes at once and up to 2 vCPU per box. That is enough for everything below. Pro and up need a payment method; Free does not.
2. Install the CLI and sign in
The CLI runs on macOS and Linux. It installs per user in ~/.sandscale/bin, needs no admin rights, and checks the download against the release checksums first.
curl -fsSL https://sandscale.dev/install | sh
sandscale login
sandscale whoami
sandscale login opens a browser. On a machine without one, sandscale login --device gives you a code to approve on another device. If your shell says sandscale: command not found, add ~/.sandscale/bin to your PATH and open a new terminal. On Windows the CLI is not available yet, so use the Quickstart’s TypeScript SDK example instead.
3. Run your first sandbox command by hand
Before involving an agent, run one command yourself. If this works and Claude Code later does not, you know the problem is the connection and not your account.
sandscale sandbox create --template-id builtin:node --ttl-seconds 600 --yes
The answer includes the new sandbox’s id. Use it below as SANDBOX_ID. Add --json if you want the raw answer to copy from. --ttl-seconds 600 makes the sandbox end itself after ten minutes even if you forget it. --yes skips the confirmation prompt, which the CLI also requires when there is no terminal.
sandscale sandbox run SANDBOX_ID "node --version" --yes
run takes the command as one word and runs it with sh -c. It prints standard output and standard error, then the exit code. The version you see is whatever the builtin:node template ships, so it can differ from the Node on your machine, which is the point. Then end the sandbox:
sandscale sandbox terminate --id SANDBOX_ID --yes
terminate ends the sandbox and frees its compute. Its /workspace is lost unless you took a snapshot first, and there is nothing in it yet.
4. Connect Claude Code
The Quickstart currently points Claude Code at the local MCP server that ships with the CLI. It is a stdio server that uses the sign-in you just made, so there is no API key in any config file:
claude mcp add sandscale -- sandscale mcp
Everything after -- is the command Claude Code runs. The name sandscale is yours to choose; Claude Code prefixes each tool with mcp__<name>__, which matters if you write permission rules later. Check the connection:
claude mcp list
Inside Claude Code, /mcp shows the same status and the tools the server offers. Tool names differ between CLI versions and between the local and remote servers, so describe what you want in the prompt instead of naming a tool.
5. The first command, through Claude Code
Start Claude Code in any directory and give it this prompt:
Start a sandbox from the Node template that ends by itself after 10 minutes.
Run `node --version` in it and tell me the exit code and the exact output.
Then stop the sandbox.
Claude Code asks before it uses a tool unless a rule says otherwise, so you will be asked at each step. Read the arguments instead of clicking through:
- the template should be
builtin:nodeand the sandbox should have a time limit, - the command should be
node --versionand nothing else, - the last call should end the sandbox you just created, not another one.
When it finishes, the agent should report an exit code and the output of node --version. That command ran inside the sandbox. If you want proof, compare it with node --version in your own terminal.
What to check next
- Nothing is left running.
sandscale sandbox listshould not show the sandbox from this run. A sandbox also ends on its own when its time limit passes. - The run is on the record. Open the audit log in the console. Every plan can read it there.
- What the network allows. A new sandbox has no network by default.
sandscale sandbox launch-optionslists the templates, sizes and network modes your plan and organization policy let you start. Until you start one with a network mode, a command that downloads packages will not work. - Limits. Free allows 3 boxes at once. Per the CLI’s help for
sandscale sandbox create, a plan limit is refused with its code, for examplesandscale_limit_reachedonce the month’s included hours are used. - Permission rules. Once you trust the flow, write allow and ask rules so the read-only calls stop prompting and the stop call keeps prompting. The setup guide has a working set.
If you have not created an account yet, sign up for Sandscale and start at step 2.