
Mosaic sandbox
Runs code in Firecracker sandboxes through the ComputeSDK Mosaic provider
Mosaic sandbox is an open-source agent skill for developer tools. 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 Mosaic sandbox
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.
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 1 file (2 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/mosaic-sandbox 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/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.
Copy the skill folder to ~/.agents/skills/mosaic-sandbox 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/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.
Copy the skill folder to ~/.cursor/skills/mosaic-sandbox 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/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.
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/mosaic-sandboxOr copy the folder to ~/.gemini/skills/mosaic-sandbox yourself.
For GitHub Copilot in VS Code, copy the skill folder to ~/.copilot/skills/mosaic-sandbox:
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.
Get the folder:
git clone --depth 1 https://github.com/computesdk/computesdk.gitThen copy computesdk/skills/mosaic-sandbox into your agent's skills folder as mosaic-sandbox. Agents that support SKILL.md read one folder per skill.
What it does
- 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
Mosaic sandbox 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.
More from computesdk/computesdk

Reference for driving the compute CLI to run sandboxes, Actions and market tasks
- Open source
- 305 GitHub stars
- Developer tools

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

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

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

Lets an agent check, verify, remove and re-rate a ComputeSDK org's provider keys
- Open source
- 305 GitHub stars
- Cloud and infrastructure

Lets an agent run code, files and servers in ComputeSDK cloud sandboxes
- Open source
- 305 GitHub stars
- Developer tools

