# Compute sandboxes CLI

> Compute sandboxes CLI is an open-source agent skill for cloud and infrastructure. Create and control hosted ComputeSDK sandboxes from a shell using the compute CLI. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf, Goose
- **Website:** https://github.com/computesdk/computesdk/tree/main/skills/compute-sandboxes-cli
- **Repository:** https://github.com/computesdk/computesdk
- **GitHub stars:** 305
- **License:** MIT
- **Skill name:** compute-sandboxes-cli
- **Collection:** https://github.com/computesdk/computesdk
- **Categories:** [cloud and infrastructure](https://ai-powered.com/categories/cloud-and-infrastructure), [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-12-01

## About

This skill teaches an agent to drive ComputeSDK Platform sandboxes through the compute command line tool from @computesdk/cli 2.x, using the compute sandboxes group (alias compute sbx). It covers placing a sandbox on managed accounts, the organization's own provider keys, or a compute-market fill, then running commands in it, starting detached processes, copying files, exposing ports as preview URLs and taking snapshots. Creating sandboxes requires the organization to have sandboxes enabled, and usage is billed to that organization.

The guidance is built around a create, work, destroy lifecycle. It recommends quoting a price first and capping market orders with a max price, using one-shot run and serve shortcuts for simple cases, and always destroying sandboxes when finished because they bill while running. It also warns about practical limits: buffered exec output stops around 290 seconds, servers must listen on 0.0.0.0 on the exact port for previews to work, and the agent should pass sandbox IDs explicitly rather than relying on a per-directory default.

Users need Node.js to install the CLI and either a login through the device flow or an organization API key supplied through an environment variable. Authentication, org selection and error codes such as market access or insufficient credits are documented in the skill.

## When your agent uses it

> Drive hosted ComputeSDK Platform sandboxes from a shell with `compute sandboxes` (alias `compute sbx`) from @computesdk/cli 2.x — create sandboxes on your org's providers or the compute market, run commands (one-shot `run`, `exec`, detached `spawn`), serve ports, copy files, get preview URLs, and take snapshots. Use when creating, running commands in, or managing hosted ComputeSDK sandboxes from a shell.

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Instructions only, no scripts](https://github.com/computesdk/computesdk/tree/HEAD/skills/compute-sandboxes-cli)
- [License: MIT](https://github.com/computesdk/computesdk/tree/HEAD/skills/compute-sandboxes-cli)

## Features

- **Sandbox lifecycle management:** Create, list, inspect, use and destroy hosted sandboxes, with placement across providers or the compute market.
- **Command execution:** Run buffered commands, start detached background jobs, and stream or stop their logs.
- **File transfer:** List, read, write, create and remove files in a sandbox, and copy directories in either direction.
- **Preview URLs and servers:** Serve a process on a port and obtain a public preview URL for it.
- **Price quoting and caps:** Dry-run a create to see rate and balance, then cap market fills with a max price.
- **Snapshots:** Take, list and delete snapshots of running sandboxes where the provider supports them.

## Good for

- Spin up a sandbox, install Flask and run a small web server
- Run a one-off build or test script in a temporary remote environment
- Start a dev server and get a public preview link to share
- Copy a project folder into a sandbox and pull results back out
- Check the price of a medium sandbox before creating one

## Install

### Claude Code

Copy the skill folder to `~/.claude/skills/compute-sandboxes-cli` to use it in all your projects:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/computesdk/computesdk.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/compute-sandboxes-cli &&
cp -R "$tmp/skills/compute-sandboxes-cli" ~/.claude/skills/compute-sandboxes-cli &&
rm -rf "$tmp"
```

For one project only, put the folder in `.claude/skills/compute-sandboxes-cli` inside it instead.

### Codex

Copy the skill folder to `~/.agents/skills/compute-sandboxes-cli` to use it in every repository:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/computesdk/computesdk.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/compute-sandboxes-cli &&
cp -R "$tmp/skills/compute-sandboxes-cli" ~/.agents/skills/compute-sandboxes-cli &&
rm -rf "$tmp"
```

For one repository only, put the folder in `.agents/skills/compute-sandboxes-cli` inside it instead.

### Cursor

Copy the skill folder to `~/.cursor/skills/compute-sandboxes-cli` to use it in every project:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/computesdk/computesdk.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/compute-sandboxes-cli &&
cp -R "$tmp/skills/compute-sandboxes-cli" ~/.cursor/skills/compute-sandboxes-cli &&
rm -rf "$tmp"
```

For one project only, put the folder in `.cursor/skills/compute-sandboxes-cli` inside it instead.

### Gemini CLI

Run in a terminal (add `--scope workspace` to install it for the current workspace only):

```sh
gemini skills install https://github.com/computesdk/computesdk.git --path skills/compute-sandboxes-cli
```

Or copy the folder to `~/.gemini/skills/compute-sandboxes-cli` yourself.

### VS Code

For GitHub Copilot in VS Code, copy the skill folder to `~/.copilot/skills/compute-sandboxes-cli`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/computesdk/computesdk.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/compute-sandboxes-cli &&
cp -R "$tmp/skills/compute-sandboxes-cli" ~/.copilot/skills/compute-sandboxes-cli &&
rm -rf "$tmp"
```

For one project only, put the folder in `.github/skills/compute-sandboxes-cli` inside it instead.

### Other agents

Get the folder:

```sh
git clone --depth 1 https://github.com/computesdk/computesdk.git
```

Then copy `computesdk/skills/compute-sandboxes-cli` into your agent's skills folder as `compute-sandboxes-cli`. Agents that support SKILL.md read one folder per skill.

## FAQ

### What do I need before using Compute sandboxes CLI?

Install @computesdk/cli 2.x, then log in with compute login or supply an org API key through COMPUTE_API_KEY. The organization must have sandboxes enabled to create them.

### Who pays for the sandboxes?

Usage bills to the organization that owns the sandbox, and sandboxes keep billing while running, so the skill says to destroy them when done.

### Why does a market create fail without a price?

The default order type is limit, so a create needs a max price, typically the rate from a quote, unless market mode is chosen explicitly.

### Can Compute sandboxes CLI run long-lived servers?

Yes. Exec buffers output and stops around 290 seconds, so servers should be started with spawn and their logs followed or waited on.

### How do I install Compute sandboxes CLI in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/compute-sandboxes-cli to use it in all your projects, or to .claude/skills/compute-sandboxes-cli in one project.

### Does Compute sandboxes CLI run scripts?

No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.

### Which AI agents can use Compute sandboxes CLI?

Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose. Each reads skills in the SKILL.md format from its own folder; the install steps on this page list them.

### What are the best alternatives to Compute sandboxes CLI?

The closest alternatives to Compute sandboxes CLI are Sandboxes, Sandbox router, Compute CLI, Sail sandbox and Namespace sandbox.

## Where this comes from

- Description: from the skill's own SKILL.md.

## Alternatives

- [Sandboxes](https://ai-powered.com/skills/sandboxes): Sandboxes is an open-source agent skill for developer tools.
- [Sandbox router](https://ai-powered.com/skills/sandbox-router): Sandbox router is an open-source agent skill for cloud and infrastructure.
- [Compute CLI](https://ai-powered.com/skills/compute-cli): Compute CLI is an open-source agent skill for developer tools.
- [Sail sandbox](https://ai-powered.com/skills/sail-sandbox): Sail sandbox is an open-source agent skill for cloud and infrastructure.
- [Namespace sandbox](https://ai-powered.com/skills/namespace-sandbox): Namespace sandbox is an open-source agent skill for cloud and infrastructure.
- [Lightning sandbox](https://ai-powered.com/skills/lightning-sandbox): Lightning sandbox is an open-source agent skill for cloud and infrastructure.
- [Kubi sandbox](https://ai-powered.com/skills/kubi-sandbox): Kubi sandbox is an open-source agent skill for cloud and infrastructure.
- [Vercel sandbox](https://ai-powered.com/skills/vercel-sandbox): Vercel sandbox is an open-source agent skill for cloud and infrastructure.

---
Source: https://ai-powered.com/skills/compute-sandboxes-cli
