Skip to content
sandboxrouting

Providers with extra setup

From README.md, rendered when the site was built.

  • Cloudflare has no hosted sandbox API: a sandbox is a Durable Object plus the Container it starts, inside your own Worker. Deploy the bridge in templates/cloudflare-worker (npm install, then npx wrangler secret put SANDBOX_TOKEN and npx wrangler deploy). Then set CLOUDFLARE_SANDBOX_URL to the Worker's URL and CLOUDFLARE_SANDBOX_TOKEN to the same secret. The bridge uses @cloudflare/sandbox 1.x and destroys each container at its deadline with a Durable Object alarm. The sandbox size is the instance_type in wrangler.jsonc.

  • No timeout of their own. These providers don't stop a sandbox at the requested timeout:

    • Fly Sprites, Celesto, BoxLite, Dedalus, CreateOS, exe.dev and Agent37 have no TTL.
    • A Northflank service restarts its container when it exits.

    Their adapters declare enforcesTimeout: false, so the router deletes the sandbox at the deadline itself. sbr sweep (run every 5 minutes by sbr serve) deletes any it missed.

  • AWS Lambda MicroVMs have no exec API. Build the image in templates/aws-lambda-microvm: its dependency-free execd.mjs runs commands and moves files behind the VM's endpoint. Then set LAMBDA_MICROVM_IMAGE to the image ARN.

  • Google Cloud Run sandboxes have no API of their own. Build the image in templates/cloud-run-sandbox and set CLOUD_RUN_SANDBOX_IMAGE; the region must offer Cloud Run instances (not us-central1, us-east1 or europe-west1).

  • GKE Agent Sandbox needs agent-sandbox installed with its extensions, a SandboxWarmPool whose pods run sandboxd, and the sandbox-router exposed outside the cluster. A cluster CA that Node doesn't trust goes in NODE_EXTRA_CA_CERTS.

  • Azure Container Apps Sandboxes need a sandbox group (Microsoft.App/sandboxGroups). The default image is the public ubuntu disk image; options.image names another public one, and a template (--template azure-sandboxes=<disk image id>) uses your own.

  • Thunder Compute runs commands over SSH only. The adapter generates a throwaway key, gets a certificate from the API, and uses the system ssh and ssh-keygen. Sandbox access is enabled through Thunder's sales team.

  • exe.dev has one API endpoint, POST /exec, which takes SSH command text and cuts each call off at 30 seconds. Mint a token that may run new, ssh, rm and ls.

  • Access gates: Dedalus Machines needs beta access (403 until admitted), and Quivvo puts new free accounts in a queue.

  • Together and Morph boot from snapshots. When you give an image (or nothing), the adapter builds the snapshot once per image or size and reuses it. A template (--template together=<alias>) skips that step.

  • Fly Machines needs an app you own (FLY_APP).

  • Northflank needs a project (NORTHFLANK_PROJECT).

  • Nirvana Labs runs sandboxes on a sandbox cluster you create first (dashboard, or POST /v1/sandbox_clusters with an instance type, node count and region). Its nodes are billed by the hour from then on, sandboxes or not. Set NIRVANA_SANDBOX_CLUSTER_ID once its status is ready.

  • Workpaper, Rayrun and tama keep a stopped or idle machine instead of deleting it (Workpaper pauses after an idle hour, Rayrun cold-stops at max_lifetime_seconds, tama stops at its idle ttl), so they declare enforcesTimeout: false too. A new Rayrun sandbox has no network by default: the adapter opens egress, and options.egress: "closed" keeps it shut. Its default image is ubuntu@1 (options.agent or a template names another).