add-sandbox-provider
Guide a provider author through adding their **sandbox** compute provider to ComputeSDK and opening a PR. Use when someone wants…
Run real code in ComputeSDK cloud sandboxes — create environments, write and read files, execute commands, run long-lived processes, preview exposed ports, and clean up. Use when the user wants to execute, test, or host code, or asks about their running sandboxes.
Claude Code
$ npx -y skills add computesdk/computesdk --skill sandboxes --agent claude-code
Codex
$ npx skills add computesdk/computesdk --skill sandboxes -a codex -y
Cursor
$ npx skills add computesdk/computesdk --skill sandboxes -a cursor -y
Gemini CLI
$ npx skills add computesdk/computesdk --skill sandboxes -a gemini-cli -y
GitHub Copilot
$ npx skills add computesdk/computesdk --skill sandboxes -a github-copilot -y
OpenCode
$ npx skills add computesdk/computesdk --skill sandboxes -a opencode -y
Windsurf
$ npx skills add computesdk/computesdk --skill sandboxes -a windsurf -y
name: sandboxes description: Run real code in ComputeSDK cloud sandboxes — create environments, write and read files, execute commands, run long-lived processes, preview exposed ports, and clean up. Use when the user wants to execute, test, or host code, or asks about their running sandboxes.
ComputeSDK places cloud sandboxes through the ComputeSDK gateway. All usage bills the ComputeSDK org selected when the connection was authorized — no provider setup is needed or possible in-chat.
1. `create_sandbox` — returns a sandbox `id`. Args: `size` (`small` 1 vCPU/2 GB, `medium` 2/4 GB, `large` 4/8 GB, `xlarge` 8/16 GB, `2xlarge` 16/32 GB, `3xlarge` 32/128 GB; default `medium`; not every provider sells every size, `sandboxes_get_options` shows which), `label`, `image`, `timeoutMs` (lifetime in ms; default 30 minutes, max 6 hours), and `providerOrder` (camelCase routing preference). Pin one provider with `provider` (mutually exclusive with `providerOrder`), plus `region` and `credentialSource`: `auto` (default) uses the org's own key for that provider, else a ComputeSDK managed account billed from prepaid credit; `byok` requires the org's key; `house` always uses a ComputeSDK managed account. The result's `placement` says where it landed and the rate it bills at. **What it can run on:** `sandboxes_get_options` lists everything a create can land on, in the router's order: managed accounts (ComputeSDK-run, billed from prepaid credit, with a price per size) and the org's own provider keys (billed by the provider, `ready` says whether the key can place now). The first usable row is where a plain `create_sandbox` goes (`strategy` says how managed accounts are ordered: ComputeSDK's recommended order by default, cheapest first, or the org's own order). A size with `rate: null` isn't sold on that account. Call it when the user asks what they can run on or what it costs, before suggesting a provider. `byok` on `create_sandbox`/`get_quote` overrides the router for one call: `only` = the org's own keys only, `off` = managed accounts only (not with `provider`). **Pricing:** `get_quote` (same size/region/timeout inputs; it creates nothing) walks the same router a create would and returns the provider it would place on, the rate in every unit (`rateUsd.perHour` — hourly is what users compare against) and the credit balance. Use it for long timeouts, large sizes, or whenever the user asks what one create will cost, and tell the user the hourly price; `sandboxes_get_options` shows the price of every size on every provider. For provider-specific pricing before creation, check `sandboxes_get_options` for the provider, size, and account type. If no rate is available, explain that and wait for the user to authorize creation before checking the actual `placement` and `rateUsd` on the result. `insufficient_credits` means the org is out of prepaid credit: tell the user to add credit in the ComputeSDK dashboard. Don't share a top-up or checkout link. 2. Do the work: `write_file`, `read_file`, `make_directory`, `remove_path`; `run_command` or `start_process`; `sandbox_url` for anything that listens on a port. File tools take absolute paths; `read_file` on a directory lists its entries. 3. `destroy_sandbox` when the task is finished — sandboxes bill for runtime, so always clean up unless the user wants it kept alive.
`get_sandbox` fetches one sandbox's details; `list_sandboxes` lists the visible ones. `get_profile` returns the connection's identity — an opaque `id`, and `nickname`, which is the name of the billed org.
A free and open-source toolkit for running other people's code in your applications.
Guide a provider author through adding their **sandbox** compute provider to ComputeSDK and opening a PR. Use when someone wants…
Work with the org's ComputeSDK Actions CI runs — list connected repos and workflows, dispatch workflow runs, watch runs, read job…
Read ComputeSDK benchmark results — list benchmarks, runs and per-provider results, reliability and uptime, per-iteration…
Write code that drives ComputeSDK sandboxes — the hosted platform via `@computesdk/platform`, or BYOK with the `computesdk` SDK…
Check and manage the org's own provider (BYOK) keys and custom reporting rates in ComputeSDK — see which providers have a key,…
Use when running, building, or managing Linux containers on macOS, or when a task involves Docker, docker compose, Lima, Colima,…
Operate FrontendExtension (FE) resources in frontend-forge: create, update, rebuild, inspect package artifacts, download…
Entry point for AI-agent work on AWS: pick a runtime, plan a migration for existing workloads, and build an executable POC — one…
Build, debug, or review Cloudflare Agents SDK applications using the agents package.