# Codesandbox sandbox

> Codesandbox sandbox is an open-source agent skill for cloud and infrastructure. Run commands and manage files in CodeSandbox cloud sandboxes via ComputeSDK. 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/codesandbox-sandbox
- **Repository:** https://github.com/computesdk/computesdk
- **GitHub stars:** 305
- **License:** MIT
- **Skill name:** codesandbox-sandbox
- **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 guides an agent to execute code and work with files inside CodeSandbox cloud development sandboxes through the ComputeSDK layer. It covers two routes: running a one-off command through the hosted Sandbox Router with the compute CLI, which selects CodeSandbox, runs the command and destroys the sandbox, or integrating the provider directly in TypeScript with the @computesdk/codesandbox adapter.

For the hosted route, the skill points the agent to check available provider offers and connected keys, and to choose managed or bring-your-own-key account mode. For the direct route, it walks through installing the packages, creating a sandbox, running a command, reading its output and destroying the sandbox when finished. The adapter README holds credentials and limitations, which the skill leaves to that document.

Using the direct route requires a CodeSandbox API key supplied through an environment variable, and a Node.js environment for the example. Related ComputeSDK skills cover the full router workflow and the common SDK usage.

## When your agent uses it

> CodeSandbox adapter for ComputeSDK. Run code and work with files in cloud development sandboxes. Use for CodeSandbox on the ComputeSDK Sandbox Router or @computesdk/codesandbox in a direct SDK integration.

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

## Features

- **Hosted sandbox commands:** Run a command in a CodeSandbox sandbox through the ComputeSDK Sandbox Router with the compute CLI.
- **Provider offer checks:** Inspect current provider offers and connected keys before choosing managed or bring-your-own-key mode.
- **Direct SDK integration:** Install the CodeSandbox adapter and create sandboxes from TypeScript code.
- **Sandbox lifecycle steps:** Covers creating a sandbox, running a workload and destroying it when finished.
- **Adapter configuration example:** Shows a provider factory setup with an API key, template ID and timeout.

## Good for

- Run a quick Node.js script in an isolated cloud sandbox
- Execute a command on CodeSandbox without managing infrastructure
- Set up a CodeSandbox-backed sandbox in a TypeScript project
- Tear down a cloud sandbox after a test run completes

## Install

### Claude Code

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

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

### Codex

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

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

### Cursor

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

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

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

### VS Code

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

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

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

### Other agents

Get the folder:

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

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

## FAQ

### What do I need to use the direct SDK route?

Install computesdk and @computesdk/codesandbox, configure a CodeSandbox API key as described in the adapter README, and use the provider factory in your code.

### Does Codesandbox sandbox change files on my machine?

The skill describes running commands and files inside remote CodeSandbox sandboxes, not on your local machine.

### When does Codesandbox sandbox apply?

It applies when a task involves CodeSandbox through the ComputeSDK Sandbox Router or the @computesdk/codesandbox package in a direct integration.

### How do I install Codesandbox sandbox in Claude Code?

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

### Does Codesandbox sandbox 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 Codesandbox sandbox?

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 Codesandbox sandbox?

The closest alternatives to Codesandbox sandbox are Sandbox0 sandbox, Cloud run sandbox, Cocoonstack sandbox, Namespace sandbox and K8s sandbox.

## Where this comes from

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

## Alternatives

- [Sandbox0 sandbox](https://ai-powered.com/skills/sandbox0-sandbox): Sandbox0 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.
- [Cocoonstack sandbox](https://ai-powered.com/skills/cocoonstack-sandbox): Cocoonstack 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.
- [K8s sandbox](https://ai-powered.com/skills/k8s-sandbox): K8s sandbox is an open-source agent skill for cloud and infrastructure.
- [Sail sandbox](https://ai-powered.com/skills/sail-sandbox): Sail 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.
- [Lightning sandbox](https://ai-powered.com/skills/lightning-sandbox): Lightning sandbox is an open-source agent skill for cloud and infrastructure.

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