Skip to content
Cloud & Infrastructure
Skill

/add-sandbox-provider

Guide a provider author through adding their **sandbox** compute provider to ComputeSDK and opening a PR. Use when someone wants to contribute a new `@computesdk/<name>` sandbox provider package — a service that creates sandboxes and runs shell commands (`defineProvider` /

From plugin
computesdk
2926 skills1 MCP

Claude Code

$ npx -y skills add computesdk/computesdk --skill add-sandbox-provider --agent claude-code

SKILL.md

add-sandbox-provider.SKILL.md
name: add-sandbox-provider
description: >-
  Guide a provider author through adding their **sandbox** compute provider to
  ComputeSDK and opening a PR. Use when someone wants to contribute a new
  `@computesdk/<name>` sandbox provider package — a service that creates sandboxes
  and runs shell commands (`defineProvider` / `methods.sandbox`) — or asks "how do I
  add my sandbox provider" / "open a PR to add <X>". This skill is sandbox-only; it
  does NOT cover browser providers (`defineBrowserProvider` / `methods.session`, e.g.
  browserbase, steel) or storage providers (`StorageProvider`, e.g. s3, r2). Scaffolds
  the package, implements the provider against the framework, verifies
  build/typecheck/lint/tests, adds a changeset, and opens the pull request.

Add a Sandbox Provider to ComputeSDK

Help a provider author ship a new `@computesdk/<name>` **sandbox** provider package and open a PR against `computesdk/computesdk`. The canonical implementation spec lives in [ADD-PROVIDER.md](../../../ADD-PROVIDER.md) ("Adding a New Sandbox Provider") — read it before scaffolding and treat it as the source of truth for file contents, method signatures, and naming. This skill is the orchestration layer around that doc: it gathers what's needed, drives the edits, verifies, and handles the git/PR mechanics.

**Scope check first.** This skill is only for **sandbox** providers — services that create sandboxes and execute shell commands via `defineProvider` with `methods.sandbox`. ComputeSDK has two other provider categories this skill does **not** handle:

  • **Browser** providers use `defineBrowserProvider` with `methods.session` (see

[packages/browserbase](../../../packages/browserbase), [packages/steel](../../../packages/steel)).

  • **Storage** providers implement the `StorageProvider` interface with

`upload`/`download`/`delete`/`list` (see [packages/s3](../../../packages/s3), [packages/r2](../../../packages/r2)).

If the author's service is a browser or storage provider, stop and tell them this skill doesn't apply — point them at the reference packages above rather than scaffolding a sandbox provider for them.

Operating principles

  • **Do the work, don't just narrate it.** Scaffold real files, write real code, run

the real checks. Only stop to ask the author for things you genuinely cannot infer (SDK package name, auth/env vars, which capabilities the service supports).

  • **Match the codebase.** Copy structure and conventions from an existing reference

sandbox provider rather than inventing them. Good references: [packages/blaxel](../../../packages/blaxel) (full-featured, filesystem + snapshots), [packages/e2b](../../../packages/e2b), [packages/modal](../../../packages/modal), [packages/just-bash](../../../packages/just-bash) (no auth, simplest).

  • **Never invent provider API calls.** If you don't know the provider SDK's surface,

ask the author or have them point you at its docs. Wrong API guesses are worse than a `throw new Error('not supported yet')` placeholder.

Step 1 — Gather the essentials

Before writing anything, establish (ask only for what you can't determine):

  • **Provider name** → kebab-case package suffix (`@computesdk/<name>`), camelCase

export (`export const <name>`), `<PascalCase>Config` type.

  • **Underlying SDK / API** — npm package name + version, or a REST API. This becomes

the runtime `dependency` in package.json.

  • **Auth model** — which env vars / config fields (e.g. `apiKey`, `tokenId`). These

drive config validation and the test suite's `skipIntegration` guard.

  • **Capabilities** — which of these the service supports: command execution (required),

filesystem, `getUrl` (port exposure), `list`, templates, snapshots. Anything unsupported gets a method that throws a clear error (see ADD-PROVIDER.md §3–4).

Use the `AskUserQuestion` tool for the capability/auth choices if they're unclear; infer the rest from the SDK docs the author provides.

Step 2 — Scaffold the package

Create `packages/<name>/` with the files from ADD-PROVIDER.md §1. Fastest reliable path: copy a reference provider's non-source config files and edit names.

# from repo root
cp packages/blaxel/{tsconfig.json,tsup.config.ts,vitest.config.ts} packages/<name>/

Then author by hand:

  • `package.json` — set `name`, `description`, `author` (the contributor),

`dependencies` (their SDK + `@computesdk/provider: workspace:*` + `computesdk: workspace:*`), and provider-specific `keywords`. Keep the standard `scripts`, `devDependencies`, `repository.directory`, `homepage`, `bugs` blocks. Start `version` at `1.0.0` for a brand-new package.

  • `README.md` — features, install, config/env vars, a usage example, supported

runtimes, limitations. Mirror [packages/e2b/README.md](../../../packages/e2b/README.md).

  • `src/index.ts` and `src/__tests__/index.test.ts` — see steps 3–4.

The root `pnpm-workspace.yaml` already globs `packages/*`, so no registration there.

Step 3 — Implement the provider

Define the provider with `defineProvider` from `@computesdk/provider` (full spec and a worked example in ADD-PROVIDER.md §2–4). Requirements:

  • Implement the **core methods** fully: `create`, `getById`, `destroy`, `runCommand`,

`getInfo`. For unsupported optional methods (`list`, `getUrl`, `template`, `snapshot`), define them but `throw new Error('<Provider> does not support …')`.

  • **Validate config early** with a helpful message pointing to where to get keys, and

**fall back to env vars** (`config.apiKey ?? process.env.<PROVIDER>_API_KEY`).

  • When interpolating any path/arg into a shell command, use `escapeShellArg` from

`@computesdk/provider` **wrapped in double quotes** — e.g. `` `cat "${escapeShellArg(path)}"` ``. The helper does not escape spaces or `;`/`|`, so unquoted use is unsafe.

  • If the service has a filesystem API, implement the `filesystem` block; otherwise omit

it and the framework auto-generates "not supported" errors.

Read the mo

Read more
@computesdk
Ships withcomputesdk

A free and open-source toolkit for running other people's code in your applications.

2926 skills1 MCP
Get the whole plugin

Stars on GitHub

Momentum

stars in total
292
Star history of computesdk/computesdk on GitHub, a chart by star-history.com

Other skills on computesdk.

actions

actions

Work with the org's ComputeSDK Actions CI runs — list connected repos and workflows, dispatch workflow runs, watch runs, read job…

benchmarks

benchmarks

Read ComputeSDK benchmark results — list benchmarks, runs and per-provider results, reliability and uptime, per-iteration…

computesdk-sdk

computesdk-sdk

Write code that drives ComputeSDK sandboxes — the hosted platform via `@computesdk/platform`, or BYOK with the `computesdk` SDK…

providers

providers

Check and manage the org's own provider (BYOK) keys and custom reporting rates in ComputeSDK — see which providers have a key,…

sandboxes

sandboxes

Run real code in ComputeSDK cloud sandboxes — create environments, write and read files, execute commands, run long-lived…

More skills from other plugins.

container

container

Use when running, building, or managing Linux containers on macOS, or when a task involves Docker, docker compose, Lima, Colima,…

@apple@appleInstall Skill
agent-advisor

agent-advisor

Entry point for AI-agent work on AWS: pick a runtime, plan a migration for existing workloads, and build an executable POC — one…

@aws@awsInstall Skill
agents-sdk
Auto-invoked

agents-sdk

Build, debug, or review Cloudflare Agents SDK applications using the agents package.

@cloudflare@cloudflareInstall Skill

Questions about add-sandbox-provider.

Which coding agents can use add-sandbox-provider?
add-sandbox-provider installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.