# Beam sandbox

> Beam sandbox is an open-source agent skill for cloud and infrastructure. Lets an agent run commands, manage files and restore snapshots in Beam cloud 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/beam-sandbox
- **Repository:** https://github.com/computesdk/computesdk
- **GitHub stars:** 305
- **License:** MIT
- **Skill name:** beam-sandbox
- **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 guides an AI coding agent through working with Beam cloud containers via ComputeSDK. It covers running a command in a fresh sandbox through the hosted Sandbox Router CLI, selecting Beam and checking which provider offers and connected keys are available, and choosing between managed and bring-your-own-key account modes.

For TypeScript projects, the skill describes two routes: selecting Beam through provider ordering on the Sandbox Router, or installing the computesdk and @computesdk/beam packages for a direct SDK integration. In the direct route the agent creates a sandbox, runs the workload, and destroys the sandbox when finished. It points to the adapter README for credentials, the provider factory and limitations, and to companion skills for the full router example and the common SDK workflow.

The skill is a single SKILL.md with no bundled scripts. Using it requires a ComputeSDK account or the CLI, and Beam credentials for the chosen route.

## When your agent uses it

> Beam sandbox adapter for ComputeSDK. Run processes in cloud containers, work with files, and restore snapshots. Use for Beam on the ComputeSDK Sandbox Router or @computesdk/beam 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/beam-sandbox)
- [License: MIT](https://github.com/computesdk/computesdk/tree/HEAD/skills/beam-sandbox)

## Features

- **Hosted sandbox router:** Runs commands on Beam through the ComputeSDK CLI and router, with options to require managed or bring-your-own-key mode.
- **Provider selection in TypeScript:** Shows how to route instance creation to Beam with provider ordering using the organization's connected key.
- **Direct SDK integration:** Steps for installing @computesdk/beam and creating, using and destroying a sandbox in code.
- **Cloud container processes:** Covers running processes inside Beam cloud containers as part of an agent task.
- **File and snapshot handling:** Covers working with files in the sandbox and restoring saved snapshots.
- **Companion skill references:** Points to related skills for the full router example, REST and MCP usage, and the common SDK workflow.

## Good for

- Run a shell command inside a fresh Beam sandbox and tear it down afterwards
- Route a TypeScript sandbox creation request to Beam using a connected key
- Add the @computesdk/beam adapter to an existing Node project
- Restore a saved snapshot in a Beam container to continue earlier work
- Check which sandbox providers and keys are currently available before running a job

## Install

### Claude Code

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

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

### Codex

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

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

### Cursor

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

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

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

### VS Code

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

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

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

### Other agents

Get the folder:

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

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

## FAQ

### What does the skill need to run?

It needs the ComputeSDK CLI or the computesdk and @computesdk/beam npm packages, plus Beam access through the Sandbox Router or direct credentials described in the adapter README.

### How does the agent pick Beam for a sandbox?

On the hosted router it runs the compute sandboxes run command with the beam provider, or sets providerOrder to beam in TypeScript instance creation.

### Does the skill include scripts?

No. It is a single SKILL.md file with instructions and no bundled scripts.

### Can I require a specific account mode?

Yes, adding --managed or --byok to the router command requires that account mode.

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

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

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

The closest alternatives to Beam sandbox are Sail sandbox, Sandbox router, Cloud run sandbox, Blaxel sandbox and Cloudflare sandbox.

## Where this comes from

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

## Alternatives

- [Sail sandbox](https://ai-powered.com/skills/sail-sandbox): Sail sandbox is an open-source agent skill for cloud and infrastructure.
- [Sandbox router](https://ai-powered.com/skills/sandbox-router): Sandbox router 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.
- [Blaxel sandbox](https://ai-powered.com/skills/blaxel-sandbox): Blaxel sandbox is an open-source agent skill for cloud and infrastructure.
- [Cloudflare sandbox](https://ai-powered.com/skills/cloudflare-sandbox): Cloudflare 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.
- [Agentcore sandbox](https://ai-powered.com/skills/agentcore-sandbox): Agentcore sandbox is an open-source agent skill for cloud and infrastructure.

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