Skip to content
Skill

Sandbox router

Lets an agent create, route and run commands in hosted ComputeSDK sandboxes

Sandbox router is an open-source agent skill for cloud and infrastructure. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

Scripts
None
Platforms
Claude Code, Codex, Cursor
GitHub stars
305
Last commit
License
MIT
Listing updated

Similar skills

About Sandbox router

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.

From the skill's SKILL.md. Your agent reads this description to decide when to load the skill.

What it can access

From a static check of its 2 files (8 KB) on GitHub on 1 December 2026. Nothing was run. Read the files before you install a skill: it can tell your agent to run anything its tools allow.

Check another skill before you install it.

Install

Copy the skill folder to ~/.claude/skills/sandbox-router to use it in all your projects:

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.

Claude Code docs on skills

Copy the skill folder to ~/.agents/skills/sandbox-router to use it in every repository:

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.

Codex docs on skills

Copy the skill folder to ~/.cursor/skills/sandbox-router to use it in every project:

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.

Cursor docs on skills

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

gemini skills install https://github.com/computesdk/computesdk.git --path skills/sandbox-router

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

Gemini CLI docs on skills

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

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.

VS Code docs on skills

Get the folder:

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.

The SKILL.md format

What it does

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

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

More from computesdk/computesdk

  1. Reference for driving the compute CLI to run sandboxes, Actions and market tasks

    • Open source
    • 305 GitHub stars
    • Developer tools
  2. Guides contributors through adding a sandbox compute provider to ComputeSDK

    • Open source
    • 305 GitHub stars
    • Developer tools
  3. Lets your agent inspect, dispatch and manage ComputeSDK CI workflow runs for your org

    • Open source
    • 305 GitHub stars
    • Developer tools
  4. Lets an agent read ComputeSDK sandbox provider benchmark results, runs and logs

    • Open source
    • 305 GitHub stars
    • Developer tools
  5. Lets an agent check, verify, remove and re-rate a ComputeSDK org's provider keys

    • Open source
    • 305 GitHub stars
    • Cloud and infrastructure
  6. Lets an agent run code, files and servers in ComputeSDK cloud sandboxes

    • Open source
    • 305 GitHub stars
    • Developer tools