
Modal sandbox
Lets an agent run code in Modal sandboxes, optionally on GPUs, via ComputeSDK
Modal sandbox 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 Modal sandbox
This skill covers running commands inside Modal sandboxes through ComputeSDK. It describes two routes: the hosted Sandbox Router, where the agent uses the compute CLI to pick Modal, run a command and tear the sandbox down, with the option to require managed or bring-your-own-key accounts; and a direct SDK route, where the developer installs the computesdk and @computesdk/modal packages, creates a sandbox, runs a workload and destroys it.
The guidance points the agent to the sandbox-router and computesdk skills for fuller TypeScript, REST and MCP examples, and to the adapter README for credentials, the provider factory and known limitations. The included example shows a Modal token pair read from environment variables and a short Python command run through runCommand.
Expect a TypeScript project using npm, Modal token credentials, and either the compute CLI or the ComputeSDK packages. The skill is a single SKILL.md file with no bundled scripts.
When your agent uses it
Modal sandbox adapter for ComputeSDK. Run code in Modal sandboxes with optional GPU support. Use for Modal on the ComputeSDK Sandbox Router or @computesdk/modal 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/modal-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/modal-sandbox &&
cp -R "$tmp/skills/modal-sandbox" ~/.claude/skills/modal-sandbox &&
rm -rf "$tmp"For one project only, put the folder in .claude/skills/modal-sandbox inside it instead.
Copy the skill folder to ~/.agents/skills/modal-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/modal-sandbox &&
cp -R "$tmp/skills/modal-sandbox" ~/.agents/skills/modal-sandbox &&
rm -rf "$tmp"For one repository only, put the folder in .agents/skills/modal-sandbox inside it instead.
Copy the skill folder to ~/.cursor/skills/modal-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/modal-sandbox &&
cp -R "$tmp/skills/modal-sandbox" ~/.cursor/skills/modal-sandbox &&
rm -rf "$tmp"For one project only, put the folder in .cursor/skills/modal-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/modal-sandboxOr copy the folder to ~/.gemini/skills/modal-sandbox yourself.
For GitHub Copilot in VS Code, copy the skill folder to ~/.copilot/skills/modal-sandbox:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/computesdk/computesdk.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/modal-sandbox &&
cp -R "$tmp/skills/modal-sandbox" ~/.copilot/skills/modal-sandbox &&
rm -rf "$tmp"For one project only, put the folder in .github/skills/modal-sandbox inside it instead.
Get the folder:
git clone --depth 1 https://github.com/computesdk/computesdk.gitThen copy computesdk/skills/modal-sandbox into your agent's skills folder as modal-sandbox. Agents that support SKILL.md read one folder per skill.
What it does
- Hosted router usage
- Runs a command on Modal through the ComputeSDK Sandbox Router CLI and cleans up afterward.
- Direct SDK setup
- Steps for installing the Modal adapter and creating a sandbox from TypeScript code.
- Account mode selection
- Explains checking available offers and choosing managed or bring-your-own-key accounts.
- Sandbox lifecycle
- Covers creating a sandbox, running a workload and destroying it when finished.
- Pointers to related skills
- Directs the agent to the sandbox-router and computesdk skills for fuller examples.
Good for
- Run a Python snippet in an isolated Modal sandbox
- Execute a shell command on Modal through the compute CLI
- Set up a TypeScript project that runs code on Modal with @computesdk/modal
- Route sandbox creation to a connected Modal key in the Sandbox Router
- Check which sandbox providers and keys are available before running a job
Modal sandbox FAQ
What does Modal sandbox need to work?
A TypeScript project with npm and Modal token credentials for the direct SDK route, or the compute CLI and a connected Modal key for the hosted router.
Does Modal sandbox support GPUs?
The description mentions optional GPU support in Modal sandboxes, but the SKILL.md itself does not detail GPU configuration; the adapter README holds those details.
Does Modal sandbox include scripts?
No. The skill folder contains only the SKILL.md file.
Where are credentials and limitations documented?
The skill points to the @computesdk/modal adapter README for prerequisites, credentials, the provider factory, examples and limitations.
How do I install Modal sandbox in Claude Code?
Copy the skill folder from GitHub to ~/.claude/skills/modal-sandbox to use it in all your projects, or to .claude/skills/modal-sandbox in one project.
Does Modal 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 Modal 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 Modal sandbox?
The closest alternatives to Modal sandbox are Codesandbox sandbox, Namespace sandbox, Sandbox0 sandbox, Givemeanode 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

