# Mosaic sandbox

> Mosaic sandbox is an open-source agent skill for developer tools. Runs code in Firecracker sandboxes through the ComputeSDK Mosaic provider. 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/mosaic-sandbox
- **Repository:** https://github.com/computesdk/computesdk
- **GitHub stars:** 305
- **License:** MIT
- **Skill name:** mosaic-sandbox
- **Collection:** https://github.com/computesdk/computesdk
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-12-01

## About

This skill tells an AI coding agent how to use Mosaic, a Firecracker-based sandbox provider, through ComputeSDK. It covers two routes: the hosted Sandbox Router, where the agent can pick Mosaic from the CLI or set a provider order in TypeScript, and a direct SDK integration that installs the Mosaic adapter package and creates, uses and destroys sandboxes in code.

The skill points the agent to the sandbox-router and computesdk skills for fuller examples, REST and MCP usage, and the general SDK workflow, and to the adapter README for credentials, prerequisites and limitations. It includes a short Node.js example that writes a file, starts a background server inside the sandbox and fetches its public URL.

The agent needs Node.js and the computesdk and @computesdk/mosaic npm packages, plus Mosaic API credentials set through environment variables or the Router's connected keys. The skill itself is a single SKILL.md file with no scripts.

## When your agent uses it

> Mosaic sandbox adapter for ComputeSDK. Run code in Firecracker-based sandboxes. Use for Mosaic on the ComputeSDK Sandbox Router or @computesdk/mosaic 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/mosaic-sandbox)
- [License: MIT](https://github.com/computesdk/computesdk/tree/HEAD/skills/mosaic-sandbox)

## Features

- **Hosted Router usage:** Shows how to run a command on Mosaic through the ComputeSDK CLI and select it with a provider order.
- **Direct SDK setup:** Explains installing the Mosaic adapter and wiring it into a ComputeSDK client.
- **Sandbox lifecycle steps:** Covers creating a sandbox, running a workload and destroying it when finished.
- **Background server example:** Demonstrates writing a file, starting a Node server in the background and fetching its URL.
- **Account mode selection:** Notes flags for requiring managed or bring-your-own-key accounts on the Router.

## Good for

- Run a shell command in an isolated Firecracker sandbox
- Start a Node.js web server in a sandbox and get its public URL
- Execute untrusted code through the ComputeSDK Router using Mosaic
- Wire the Mosaic provider into a TypeScript project with ComputeSDK
- Check which sandbox providers and keys an organization has connected

## Install

### Claude Code

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

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

### Codex

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

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

### Cursor

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

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

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

### VS Code

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

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

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

### Other agents

Get the folder:

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

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

## FAQ

### What do I need before using Mosaic sandbox?

You need the computesdk and @computesdk/mosaic npm packages for direct SDK use, plus Mosaic API credentials supplied through MOSAIC_API_URL and MOSAIC_API_TOKEN or a connected key on the Sandbox Router. The adapter README lists the full prerequisites.

### Does Mosaic sandbox work with the Sandbox Router as well as direct SDK calls?

Yes. The skill describes a hosted Sandbox Router route using the compute CLI and TypeScript provider ordering, and a direct SDK route using the Mosaic factory.

### Does the skill include scripts or extra files?

No. It is a single SKILL.md file with no scripts; it refers the agent to other skills and to the adapter README for details.

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

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

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

The closest alternatives to Mosaic sandbox are Miosa sandbox, Sprites sandbox, Microsandbox sandbox, Createos sandbox and Sail sandbox.

## Where this comes from

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

## Alternatives

- [Miosa sandbox](https://ai-powered.com/skills/miosa-sandbox): Miosa 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.
- [Microsandbox sandbox](https://ai-powered.com/skills/microsandbox-sandbox): Microsandbox sandbox is an open-source agent skill for developer tools.
- [Createos sandbox](https://ai-powered.com/skills/createos-sandbox): Createos sandbox 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.
- [Givemeanode sandbox](https://ai-powered.com/skills/givemeanode-sandbox): Givemeanode 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.
- [Superserve sandbox](https://ai-powered.com/skills/superserve-sandbox): Superserve sandbox is an open-source agent skill for developer tools.

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