# Sandbox router

> Sandbox router is an open-source agent skill for cloud and infrastructure. Lets an agent create, route and run commands in hosted ComputeSDK sandboxes. 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/sandbox-router
- **Repository:** https://github.com/computesdk/computesdk
- **GitHub stars:** 305
- **License:** MIT
- **Skill name:** sandbox-router
- **Collection:** https://github.com/computesdk/computesdk
- **Categories:** [cloud and infrastructure](https://ai-powered.com/categories/cloud-and-infrastructure)
- **Listing updated:** 2026-12-01

## About

This skill teaches an agent to use the hosted ComputeSDK Sandbox Router, which chooses a sandbox provider based on the organization's ComputeSDK settings. It covers the TypeScript SDK, the compute CLI, the REST API and the MCP server, and explains how managed credit differs from bring-your-own-key accounts that bill through the vendor.

The workflow has the agent discover available offers and connected providers, preview where a request would be placed without reserving capacity, then create a sandbox, run commands and destroy it when finished. Examples show a command run that checks exit codes and cleans up the sandbox, and the skill points to a provider catalog for provider IDs and starter commands. Pinning a request to a single provider or account mode is also covered.

The skill expects a ComputeSDK organization API key in the environment, Node.js 22 or later for the TypeScript path, and curl and jq for the REST example. It refers to other ComputeSDK skills for file handling, previews, snapshots and direct vendor adapters.

## When your agent uses it

> Use the hosted ComputeSDK Sandbox Router through the TypeScript SDK, compute CLI, REST API or MCP. Discover sandbox providers, choose managed or bring-your-own-key capacity, preview placement and run commands in routed sandboxes.

## 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/sandbox-router)
- [License: MIT](https://github.com/computesdk/computesdk/tree/HEAD/skills/sandbox-router)

## Features

- **Hosted sandbox placement:** Creates sandboxes through the saved organization router rather than a fixed vendor.
- **Provider discovery:** Lists managed offers, sizes, rates and connected provider readiness across CLI, MCP and REST.
- **Placement preview:** Quotes where a request would route without reserving capacity.
- **Managed and BYOK modes:** Chooses between ComputeSDK credit billing and bring-your-own-key vendor billing per request.
- **Command execution:** Runs shell commands in routed sandboxes and checks exit status.
- **Multiple access paths:** Works through the TypeScript SDK, compute CLI, REST API or a remote MCP server.

## Good for

- Run a shell command in a fresh sandbox and clean it up afterwards
- Check which sandbox providers are available to my organization
- Preview which provider a small sandbox request would be placed on
- Pin a sandbox request to one specific provider such as E2B
- Create a sandbox from a TypeScript script and read its stdout

## Install

### Claude Code

Copy the skill folder to `~/.claude/skills/sandbox-router` 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/sandbox-router &&
cp -R "$tmp/skills/sandbox-router" ~/.claude/skills/sandbox-router &&
rm -rf "$tmp"
```

For one project only, put the folder in `.claude/skills/sandbox-router` inside it instead.

### Codex

Copy the skill folder to `~/.agents/skills/sandbox-router` 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/sandbox-router &&
cp -R "$tmp/skills/sandbox-router" ~/.agents/skills/sandbox-router &&
rm -rf "$tmp"
```

For one repository only, put the folder in `.agents/skills/sandbox-router` inside it instead.

### Cursor

Copy the skill folder to `~/.cursor/skills/sandbox-router` 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/sandbox-router &&
cp -R "$tmp/skills/sandbox-router" ~/.cursor/skills/sandbox-router &&
rm -rf "$tmp"
```

For one project only, put the folder in `.cursor/skills/sandbox-router` 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/sandbox-router
```

Or copy the folder to `~/.gemini/skills/sandbox-router` yourself.

### VS Code

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

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

For one project only, put the folder in `.github/skills/sandbox-router` inside it instead.

### Other agents

Get the folder:

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

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

## FAQ

### What do I need before using Sandbox router?

A ComputeSDK organization API key, stored in the server environment as COMPUTE_API_KEY. The TypeScript examples need Node.js 22 or later.

### Does a quote reserve sandbox capacity?

No. The skill states that a quote previews placement without reserving capacity.

### How do I force a request onto one provider?

The CLI accepts a --provider flag, the REST body accepts an only list with byok set to off, and the TypeScript create options accept providerOrder to try specific BYOK providers in order.

### Who pays for the sandboxes?

Managed accounts bill the organization's ComputeSDK credit. Bring-your-own-key accounts bill through the vendor.

### How do I install Sandbox router in Claude Code?

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

### Does Sandbox router 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 Sandbox router?

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 Sandbox router?

The closest alternatives to Sandbox router are Codesandbox sandbox, Cloud run sandbox, Sandbox0 sandbox, AWS ec2 sandbox and Sprites sandbox.

## Where this comes from

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

## Alternatives

- [Codesandbox sandbox](https://ai-powered.com/skills/codesandbox-sandbox): Codesandbox sandbox is an open-source agent skill for cloud and infrastructure.
- [Cloud run sandbox](https://ai-powered.com/skills/cloud-run-sandbox): Cloud run sandbox is an open-source agent skill for cloud and infrastructure.
- [Sandbox0 sandbox](https://ai-powered.com/skills/sandbox0-sandbox): Sandbox0 sandbox is an open-source agent skill for cloud and infrastructure.
- [AWS ec2 sandbox](https://ai-powered.com/skills/aws-ec2-sandbox): AWS ec2 sandbox is an open-source agent skill for cloud and infrastructure.
- [Sprites sandbox](https://ai-powered.com/skills/sprites-sandbox): Sprites 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.
- [Compute sandboxes CLI](https://ai-powered.com/skills/compute-sandboxes-cli): Compute sandboxes CLI is an open-source agent skill for cloud and infrastructure.
- [Givemeanode sandbox](https://ai-powered.com/skills/givemeanode-sandbox): Givemeanode sandbox is an open-source agent skill for cloud and infrastructure.

---
Source: https://ai-powered.com/skills/sandbox-router
