list_providers
List sandbox providers with their free-tier status (remaining credit, resets), availability and capabilities.
Takes no parameters.

com.sandboxroutingPublished by sandboxrouting.comv0.3.0Updated Nov 22, 2026
One MCP server for 108 cloud sandbox providers: free tiers first, failover, jobs that move boxes.
Routes sandbox creation across many cloud sandbox providers, preferring free tiers, failing over between providers, and running shell jobs that move between VMs
Desktop only via STDIO. STDIO servers start a local process, so they need the SourceWeft desktop host.
Follow the launch instructions in the repository.
One router for every cloud sandbox provider. You ask for a sandbox; the router picks a provider that still has free usage left, fails over when one refuses, and keeps track of what each sandbox costs. The four ways providers expose themselves — an SDK, a REST API, a CLI and an MCP server — are each here once, for all of them.
108 providers are built in: 105 cloud providers plus your own hardware (openci, OpenSandbox,
local Docker). One of them, runloop, is off by default. Terms were checked
on 2026-11-11 or 2026-11-12 against each provider's pricing page, which its adapter links, and
those that had changed, or were added since, on 2026-11-21 (each adapter's checked date says
which). Terms change, so you can override any of them in config.
The 17 added on 2026-11-12 (tensorlake, buddy, boxd, maritime, promigence, zode,
boxcompute, lizard, munito, nanite, render, quave, beam, mosaic, nodus,
cathedral, dory) are written from each provider's published API and tested against local
servers that speak it. None has been run against the real service yet. Nor has opensandbox
(added 2026-11-14), written from OpenSandbox's OpenAPI specs and its JS SDK, nor the 59 added on
2026-11-21 (groundbox, briq, kubi, orble, runtime, digitalocean, docker-cloud,
novita, smol, isorun, instavm, prized, zipbox, superserve, eqvps, solari,
pilldrops, langsmith, miosa, cloudrun, gke-agent-sandbox, azure-sandboxes,
agentbay, tencent, volcengine, railway, vers, oblien, runta, stateset,
saas-sandbox, sandbox0, watasu, keln, mandala, platinum, inngest, archil,
openpond, gmi, openreward, baseten, chalk, voidrun, kosa8, primeintellect,
sandboxer, workpaper, rayrun, tama, tangle, nirvana, agental, cyqle, machine0,
hyperbrowser, lightcone, offstage, islo), written the same way from each provider's
docs, OpenAPI spec or official SDK and checked against its pages that day.
Some of those speak another provider's API or reach theirs indirectly. novita, tencent and
volcengine speak E2B's API and share the e2b adapter's code; nirvana serves OpenSandbox's
API and shares the opensandbox adapter's code. chalk, and primeintellect's commands, speak
the Connect protocol's JSON form to services whose SDKs speak gRPC; tama and
gke-agent-sandbox's commands speak gRPC-Web. openreward speaks a session API known only from
its SDK, and machine0 has no REST API: its adapter calls the tools of machine0's MCP server
over HTTP. The big clouds (cloudrun, gke-agent-sandbox, azure-sandboxes, agentbay,
tencent, volcengine, railway) need some console setup first, described in
docs/providers-iam.md.
runloop is built in but off: a RUNLOOP_API_KEY alone doesn't route there. Runloop is
winding down. Its docs say transition support for existing customers ended 2026-11-13, and on
2026-11-21 api.runloop.ai no longer resolved and platform.runloop.ai answered 503. If your
account still works, turn it on with "runloop": { "enabled": true }. Its terms when it was
last checked: $50 of one-time credit, 3 running, 48 h each, then $0.108/vCPU-h, VM isolation.
Notes:
src/providers/currency.ts.freeTier in config once you know your account's.tenki; the
adapter reads LUXOR_API_KEY / LUXOR_AUTH_TOKEN / LUXOR_API_ENDPOINT as the SDK does, and
the old TENKI_* names still work.inngest adapter speaks the
REST calls that SDK makes (read from inngest 4.26.2), which Inngest says may change during
the beta. OpenPond likewise names openpond-sdk as the contract, and its adapter speaks that
SDK's calls.npm install sandboxrouting is all every provider needs but four: the adapters speak each
provider's HTTP, Connect, gRPC or WebSocket API themselves, with no provider SDK installed.
The four still marked "SDK" in the table load an SDK that is an optional peer dependency,
because the provider has no API but gRPC through it (modal, @boxd-sh/sdk, both with
install scripts), it is a native binding (@boxlite-ai/boxlite), or it is large and its API
undocumented (@beamcloud/beam-js). Install one only for that provider, e.g.
npm install sandboxrouting modal; a provider whose key is set but whose SDK is missing is
skipped with an install hint.
A routing strategy makes the choice, and you can switch it. The hard rules come first
and are the same under every strategy, so no strategy can route around them. sbr route
prints the ranked plan and why each provider sits where it does. sbr route --compare
prints the plan under every strategy. The full design is in docs/routing.md.
You pick a strategy three ways:
"routing": { "strategy": "balanced" };strategy: "fastest" (--strategy);router.registerStrategy({ name, description, rank }).Within a lane, priority in config breaks ties first. The lanes keep paid usage off by
default: with allowPaid: false nothing is ever billed, and a request no free tier can
take fails with the reason for every provider. You can turn paid usage on globally or per
provider. With maxPaidUsdPerMonth set, paid routing stops when the month's spend
reaches it. Your own hardware (openci, OpenSandbox, local Docker) goes after the free lanes. With
selfHosted: "first" it goes ahead of them, and with "never" it's removed.
A provider is left out when:
it has no key, or it is disabled;
it lacks a capability in needs (ports, pause, customImage, gpu, snapshot,
extendTimeout, fileList);
it can't run the requested image;
the timeout is over its maximum;
execTimeoutSec is over its per-command cap (exe.dev cuts commands off at 30 s);
its isolation is weaker than minIsolation (container < gvisor < microvm/vm);
it runs another operating system than the request's os (linux unless the request says
macos; offstage is the macOS provider);
its circuit is open (see below);
neither free nor paid usage can take the request. Free fails when:
Paid fails when it isn't allowed, or when the month's budget won't cover the whole request.
Live sandboxes reserve what they can still spend: until their deadline, at their own
size. So a free tier takes a request only if, after those reservations, it covers the full
timeout at the size the provider will create. A paid request needs the same from the
budget. Extending a sandbox (sbr extend) or resuming one reserves the time it adds under
the same rule, or is refused. With allowPaid: false, no sandbox can run past its free tier,
and maxPaidUsdPerMonth is a hard cap.
The router re-checks the provider under the ledger lock when reserving. A request planned as free that loses the last free slot or credit to a parallel request moves on to the next provider. It never quietly becomes paid.
If the chosen provider refuses, the router tries the next one, and the refusal changes what it does next:
sandbox.route records every provider tried or skipped and why. sbr providers shows each
provider's health: the success rate of recent creates and the circuit state. This health
is computed from the last 50 outcomes whenever it is read, and sbr reset <provider>
clears it.
No provider has an API that reports remaining free credit, which the research for this router confirmed. So the router meters locally. Every sandbox's running time is recorded as billing segments. Pausing closes a segment. A sandbox past its deadline is billed only up to the deadline. Cost is running time × (vCPU × vCPU price + GiB × GiB price), using the provider's prices or yours.
Usage outside the router (the provider's console, another tool) isn't seen. For a one-time
credit you have already spent part of, set usedBeforeUsd. If a provider refuses for quota
anyway, the mark above catches it.
Some providers bill the vCPUs only while they are busy (pricing.billing: "active-cpu":
Vercel, Cloudflare, Render, Upstash Box, Fly Sprites, boxd, SuperHQ Nanite, Tensorlake, Runtime,
DigitalOcean Harness Runtime, Railway, smol).
Strategies rank these by the expected cost, with the vCPUs busy activeCpuShare of the time
(default 0.3; set routing.activeCpuShare for your workload, or
providers.<id>.pricing.activeCpuShare for one provider), so cheapest compares them fairly.
Reservations and metering still count every vCPU busy, since the router can't see CPU time: a
busy box can't overrun a free tier or a budget, and the router stops using such a free tier a
little before the provider would. Details in docs/routing.md.
A sandbox can die, its provider can refuse, or a free tier's limits can end it: a lifetime cap (E2B's free hour, Vercel's 45 minutes), running out of credit, the provider failing. A job keeps going through all of that. It is ordered steps plus a working directory. The workdir is checkpointed after each step, so the job continues on another box from where it stopped.
rebalance, off a paid box when a free one is available.idempotent (the default). Steps with outside effects are
marked idempotent: false, so the job fails rather than run them twice. A non-zero exit
is the step's own failure unless it has retries. Exit 137 can move the job to a box
with twice the memory (growMemoryOnOom).orphaned after 60 s, and sbr job resume <id> (or sbr serve, every 5 minutes)
continues it from what the ledger recorded.maxWaitSec: a rate-limit mark, a circuit, or a full free tier whose next
sandbox ends soon. Otherwise it fails at once with every provider's reason.Checkpoints live in ~/.sandboxrouting/checkpoints/ and are checked by SHA-256. When the
job ends, the last one is the result: sbr job download <id> saves it.
router.move(id) does the same move once for an interactive sandbox: it copies the workdir
to a new box, then kills the old one. The design and every decision table are in
docs/routing.md.
All four share one ledger (~/.sandboxrouting/ledger.json; SBR_HOME moves it). It is
locked for every update and written whole, so the CLI, the REST server and an MCP server
running at once agree on what is live and what is spent.
SDK: create, connect(id), list, kill, status, plan, sweep, move(id),
strategies(), registerStrategy(s), and jobs (run, submit, resume, get, list,
cancel, workspace, sweep). A sandbox has:
commands.run(cmd, {cwd, env, timeoutSec, onStdout, onStderr})files.read, files.readBytes, files.write, files.listgetUrl(port), setTimeout(sec), pause(), resume(), kill()connect("e2b:abc123") adopts a sandbox created outside the router.
CLI: sbr --help.
REST API: sbr serve --port 8787. Set serverToken in config (or SBR_SERVER_TOKEN)
to require Authorization: Bearer …. The endpoints are listed at the top of
src/server/http.ts: POST /v1/sandboxes,
POST /v1/sandboxes/{id}/exec, GET|PUT /v1/sandboxes/{id}/files?path=,
GET /v1/providers, POST /v1/route[?compare=1], GET /v1/strategies,
POST /v1/sandboxes/{id}/move, and the jobs: POST /v1/jobs (202 with the job's id; ?wait=1
to wait for the end), GET /v1/jobs[/{id}], POST /v1/jobs/{id}/resume|cancel,
GET /v1/jobs/{id}/workspace. Every 5 minutes the server reconciles with the providers,
reaps boxes left behind by finished jobs, and resumes orphaned jobs. POST /v1/sweep does it
on demand and returns { sandboxes, jobs }.
MCP server: sbr mcp (stdio). Its tools are list_providers, list_strategies,
create_sandbox, run_command, read_file, write_file, list_files, get_url,
set_timeout, move_sandbox, list_sandboxes, kill_sandbox, and for jobs run_job,
job_status, list_jobs, resume_job and cancel_job. run_job waits up to waitSec,
then returns the job's id to poll with job_status. For Claude Code:
Other clients take the same command (npx -y sandboxrouting mcp) in their MCP config, with
your provider keys in its env. From a clone, node /path/to/sandboxrouting/dist/cli.js mcp
runs the local build instead. The server is listed in the MCP Registry as
com.sandboxrouting/sandboxrouting.
sandboxrouting/agentrun is a computer provider for AgentRun: one provider that gives an
AgentRun server every sandboxrouting provider able to boot AgentRun's box image, routed free usage first, with
failover. It implements AgentRun's MachineHost with the router in-process, as a dial host (the machine's
agentrun-dial connects to the AgentRun server), and reports the provider it chose in the computer's labels.
AgentRun keeps durable runs, cost caps and the run timeline. Tested against fake providers only, not yet against
AgentRun's conformance suite or a live provider. See docs/agentrun.md.
./sandboxrouting.json, else ~/.sandboxrouting/config.json, or the path in SBR_CONFIG.
Every field is optional. See sandboxrouting.example.json:
routing also takes weights for balanced, circuitBreaker settings, and
activeCpuShare, the expected busy share of the vCPUs used to rank providers that bill only
active CPU (default 0.3). A provider's pricing override takes vcpuSecondUsd,
gibSecondUsd, sandboxSecondUsd, billing ("wall" or "active-cpu") and
activeCpuShare. jobs takes
the checkpoint mode, limits and timeouts. Both are documented in
docs/routing.md. policy still works as the
old name for routing.strategy.
sbr reset <provider> clears a provider's quota, rate-limit and auth marks, and its health
history, after you top up or fix a key.
A router can report what its ledger records to a dashboard that shows how your workloads spread across providers: sandbox count, sandbox-hours and memory GiB-hours per day and provider, spend against the free usage each provider has left, refusals and failed creates, health and the circuit breaker, live sandboxes with their state as of now, and jobs with every move and why. It is two packages in this repository, both MIT: back/ (an ingest and read API on Postgres) and dashboard/ (Next.js). Reporting is off unless you turn it on.
That runs Postgres, back on port 8787 and the dashboard on port 3000. Sign in with
SBR_ADMIN_TOKEN, then make an ingest key for each router under API keys (or set
SBR_INGEST_TOKEN too). Each image is configured only by environment variables:
Nothing has to run in the background: whatever changes with time (a sandbox past its deadline,
a mark that lapsed, a job whose runner stopped) is worked out when the dashboard reads it, with
the database's clock. The sweep only rolls up closed days so reads stay cheap; run it from any
cron (curl -X POST -H "authorization: Bearer $SBR_SWEEP_TOKEN" http://back:8787/v1/sweep) or
with the compose file's sweep profile. Without Docker, cd back && npm run build && DATABASE_URL=… node dist/main.js and cd dashboard && npm run build && BACK_URL=… npm start;
node back/dist/cli.js account create <name> makes an account and prints its admin key.
or in config:
SBR_REPORT=0 turns it off for one run. createRouter (and so the CLI, REST server and MCP
server) reports when it is on; for a router you construct yourself, wrap its ledger with
reportingLedger. Only ids, provider ids, sizes, times, states and prices leave the machine,
plus the metadata keys you list. Never commands, env, file contents, provider error messages
or keys.
After every ledger write, and when a router starts, the reporter compares the ledger with what
it last queued and queues an event for each thing that changed, in an outbox at
$SBR_HOME/report/outbox.json (written whole, under a lock, like the ledger). Each event keeps
its id until back acknowledges it, and back keeps the newest state of each sandbox, job and
mark whatever order events arrive in, so a resend never counts twice. Routing never waits on
back: a send times out after 4 s, and a failure backs off (recorded in the outbox, so other
processes don't each retry a back end that is down) until the next router to start, or the
same long-running one, delivers what is queued. Several quick changes may reach back as one
state; the billing segments in it are complete.
A provider is one file. Only create, exec and kill are required. The router
implements file read, write and listing on top of exec (base64 in chunks, so binary is
safe), and an adapter that can do better adds the native calls.
Then add it to src/providers/index.ts, or call
router.register(acmeProvider) from your own code. To finish:
listAlive so sbr sweep can close sandboxes that died behind the router's back.enforcesTimeout: false in info. The router then deletes it at the deadline.create throw errors with an HTTP status, so quota (402) and rate limits (429)
fail over correctly. If the provider uses a status that means something else (a spent
allowance as 429 or 409, a plan limit as 403), declare it with refusals() in
src/providers/util.ts.billing: "active-cpu" in
pricing (and activeCpuFloor if it bills a minimum share), so strategies rank it by its
expected cost.test/providers.test.ts checks that every built-in declares its
free-tier source and backs each capability it claims.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:
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).
Each cloud adapter is type-checked against that provider's real SDK. The HTTP-only adapters
(cloudflare, sprites) are tested against servers that speak their wire formats. A live
run still needs your keys: set them, then run
Each provider gets one small sandbox: it runs a command, writes, reads back and lists a
file, then kills the sandbox. The check prints ok or the provider's own error.
back/ and dashboard/ are npm workspaces with their own checks: npm run lint|typecheck|test|build -w back (or -w dashboard). back's tests run on PGlite, a real Postgres in WebAssembly;
TEST_DATABASE_URL=postgres://… runs them on a Postgres server instead, each test in its own
database. cd back && DATABASE_URL=pglite:memory npm run dev starts back with nothing to set up.
CI runs lint, typecheck and the tests through hushrun, which skips what this exact code already passed: a test file that passed on the exact files it read doesn't run again. See CONTRIBUTING.md to send a change, and SECURITY.md to report a vulnerability.
sandboxrouting isn't affiliated with or endorsed by any provider it supports. Their names
are trademarks of their owners. Free tiers and prices are as each adapter's source page
said on its checked date, and they change: check a provider's own terms before you rely
on them, and override them in config (providers.<id>.freeTier, pricing) when yours
differ.
The sandboxrouting name and logo are not covered by the MIT license.
InstaBox's free plan is never billed, but it says its "early allowance" can end. It's modelled as a month of hours for one machine. ↩
Fly's Free plan has one $5 a month for Machines and Sprites together, and the router
meters each provider apart, so each counts $2.50: with both on, the two can't spend more
than the $5. If you use only one, give it all: "fly": { "freeTier": { "kind": "monthly-credit", "usd": 5 } }. ↩ ↩2
LangSmith documents Firecracker for its self-hosted sandboxes; its cloud pages say only "isolated". An LSU is $1; 8 LSU at 0.0576 LSU/vCPU-h + 0.01845 LSU/GiB-h is about 42 hours. ↩
Cloud Run sandboxes start only from inside a Cloud Run container, so each router sandbox
is one Cloud Run instance (Preview) running
templates/cloud-run-sandbox, which runs commands in a sandbox
with sandbox exec. Cloud Run claims gVisor, the weaker of its two generations. Azure says
Container Apps Sandboxes bill like the Consumption plan but lists no sandbox meter, so its
Consumption rates and free grant are used; Azure deletes a sandbox a day after it stops,
paused ones included. gke-agent-sandbox runs in your own cluster: it's priced at GKE
Autopilot's pod rate. On a cluster whose nodes you already pay for, set
"gke-agent-sandbox": { "pricing": { "vcpuSecondUsd": 0, "gibSecondUsd": 0 } }. ↩ ↩2 ↩3
Cyqle and Islo sell plans. Cyqle's free plan gives one desktop 60 minutes a day; a paid
desktop ($6 to $45 a month) has unlimited session time, so model it as usage included in the
plan: "cyqle": { "freeTier": { "tier": { "kind": "monthly-hours", "hours": 744 }, "concurrency": 1 }, "options": { "slotId": "<slot>", "plan": "standard" } }. Islo has no
hourly rate: Machines are unlimited on every plan within usage limits it doesn't publish, so
a plan is counted as one Machine's month of hours, and the paid rate is the $20 Engineer
plan spread over that month. ↩ ↩2
Promigence, Novita, Zipbox, AgentBay, Runta, Watasu, OpenPond, GMI Agentbox, Baseten and
Cyqle don't say how their sandboxes are isolated, so a request with minIsolation skips
them. ↩ ↩2 ↩3 ↩4 ↩5 ↩6 ↩7 ↩8 ↩9 ↩10
The provider doesn't say whether the credit recurs, so it's treated as one-time, the safe reading. ↩ ↩2 ↩3 ↩4 ↩5 ↩6 ↩7 ↩8
Zipbox names are permanent and an account may ever create 250, so its adapter reuses a
pool of names (options.pool, default 32). Its docs don't pair tiers with sizes; xs to
l are taken to be Tiny to Large. ↩
PillDrops' pricing page says each sandbox is a dedicated microVM, but its llms.txt says "a
microVM (or container)", so the adapter claims container, the weaker. ↩
StateSet bills dedicated compute ($0.128/vCPU-h + $0.0106/GB-h on Hobby and Pro) at 50% of what is allocated, its estimate of average use, so the router counts half those rates. The Hobby plan's monthly allowance (5 vCPU-hours, 420 GB-hours) isn't counted as free usage. ↩
Tencent, Volcengine and Rayrun bill in yuan; their prices are converted at 7.1 CNY per
USD, kept in src/providers/currency.ts. ↩ ↩2 ↩3 ↩4
offstage cloud runs each sandbox as a macOS user account on a shared Mac Studio, wiped
when it closes; other accounts' processes and localhost servers are visible, so the adapter
claims container, the weakest level. It's the only macOS provider: only requests with os: "macos" go to it, and no other request does. ↩
Morph's own pages disagree (a 300 MCU starting credit vs none). If your account has it,
set "morph": { "freeTier": { "kind": "one-time-credit", "usd": 15 } }. ↩
Cathedral's rooms share one AMD SEV-SNP VM and are kept apart by a container runtime it
doesn't name, so the adapter claims container, the weakest. ↩
Chalk's SDK runs a command on its default host compute class only over a bidirectional
stream, which fetch can't open, and on the K8S class through one unary call, so the adapter
creates K8S-class sandboxes; one docs page says those don't support exec, which only a live
run will settle. Chalk documents gVisor for its sandboxes but not for that class, so the
adapter claims container. Non-preemptible work costs $0.0747/vCPU-h + $0.024/GiB-h. ↩ ↩2
Source: README.md at commit f69e920
List sandbox providers with their free-tier status (remaining credit, resets), availability and capabilities.
Takes no parameters.
List the routing strategies (how the router orders providers) and which one is configured. Pass a name as `strategy` to create_sandbox or run_job.
Takes no parameters.
Create a cloud sandbox. The router picks the provider, using free tiers first, and fails over if one refuses. Returns its id and the routing decision.
oscpuenvavoidimageneedspreferstrategymemoryMiBproviderstimeoutSecminIsolation+1 moreRun a shell command in a sandbox and return stdout, stderr and the exit code.
idrequiredcwdenvcommandrequiredtimeoutSecRead a text file from a sandbox.
idrequiredpathrequiredWrite a text file in a sandbox (parent directories are created).
idrequiredpathrequiredcontentrequiredList a directory in a sandbox.
idrequiredpathPublic URL for a port inside a sandbox.
idrequiredportrequiredKeep a sandbox alive for timeoutSec more seconds from now.
idrequiredtimeoutSecrequiredList sandboxes the router created (live ones, or all with all=true), with provider and cost so far.
allStop and delete a sandbox.
idrequiredMove a running sandbox to a new box: its workdir is copied over, then the old box is killed. Returns the new sandbox (a new id).
idrequiredworkdirRun shell steps in a sandbox. The workdir is saved after each step; when the box dies, its provider refuses, or it runs out of time or free credit, the job continues on another box from the last saved step. Waits up to waitSec for the end, then returns the state, where it ran, how often it moved, and the output of the last step that succeeded and of the step that failed it, if one did. A job still running then goes on: poll job_status with its id.
namefilessetupstepsrequiredsandboxwaitSecworkdirList jobs (unfinished ones, or all with all=true): state, steps done, current provider and moves.
allWhere a job stands: state, steps done, its boxes and why each ended, recent history, and the output of the last step that succeeded and of the step that failed it, if one did.
idrequiredTake over a queued or orphaned job (its runner died) and drive it on from where it was recorded. Waits up to waitSec like run_job. A job that already ended is returned as it ended.
idrequiredwaitSecCancel a job and kill its box. A job that already ended is returned as it ended.
idrequired90% of the applicable checks met
How complete this listing is, computed from the registry entry, the endpoint and public sources. Not a rating of the server and not a statement that it is safe or working today: reachability is a dated check, and no installs or reviews go into the score.
Declare the credential headers in the registry entry, or keep the endpoint answering the probe so its auth can be classified.
import { createRouter } from "sandboxrouting";
const router = await createRouter(); // config file + keys from the environmentconst sbx = await router.create({ timeoutSec: 600 });const r = await sbx.commands.run("python3 -c 'print(6*7)'");await sbx.files.write("/work/app.py", "print('hi')");console.log(sbx.provider, r.stdout); // e.g. "modal 42"await sbx.kill();const job = await router.jobs.run({ sandbox: { image: "python:3.12-slim" }, // routed like router.create files: { "main.py": "print('hi')" }, // the initial workdir ($HOME/work) setup: [{ run: "pip install -q requests" }], // runs again on every new box steps: [ { run: "python main.py > out.txt" }, { run: "curl -fsS -X POST https://hooks.example/done", idempotent: false }, ],});console.log(job.state, job.migrations, job.placements.map((p) => `${p.provider}:${p.endReason}`));sbr providers # free-tier status, health and circuit of every providersbr check # live create/exec/files/kill on every configured free providersbr route --needs ports # where a sandbox would go, and why the others were skippedsbr route --compare # the same request under every strategysbr strategies # the strategies, and which one is activesbr run -- python3 -c 'print(42)' # create, run, kill; exit code passes throughid=$(sbr create --image node:22 --timeout 900 --strategy fastest)sbr exec "$id" -- npm testsbr move "$id" # copy its workdir to a new box, kill the old onesbr kill "$id"sbr job run --step "make" --step "make test" # steps that survive losing a boxsbr job status <job-id> # where it ran, why it moved, how each step endedsbr job download <job-id> # the final workdir, as a .tgzclaude mcp add sandboxes -- npx -y sandboxrouting mcpimport { create } from "sandboxrouting/agentrun"; // needs @parcha/agentrun-computer tooconst provider = create({ strategy: "free-first", providers: "daytona,modal,fly", dial });{ "routing": { "strategy": "free-first" }, // cheapest | balanced | fastest | spread | yours "allowPaid": false, // SBR_ALLOW_PAID=1 for one run "maxPaidUsdPerMonth": 10, "selfHosted": "after-free", // "first" | "after-free" | "never" "defaults": { "timeoutSec": 300 }, "providers": { "e2b": { "usedBeforeUsd": 12.5 }, "daytona": { "freeTier": { "kind": "monthly-credit", "usd": 200 }, "priority": 10 }, "modal": { "options": { "ports": [8080] } }, "docker": { "isolation": "gvisor" }, // when Docker runs with runtime runsc "fly": { "enabled": false } }, "jobs": { "maxMigrations": 5, "maxWaitSec": 300, "rebalance": false }}cp deploy/.env.example deploy/.env # set POSTGRES_PASSWORD and SBR_ADMIN_TOKENdocker compose -f deploy/docker-compose.yml --env-file deploy/.env up -d --buildexport SBR_REPORT_URL=http://localhost:8787export SBR_REPORT_TOKEN=sbrk_… # an ingest key{ "report": { "url": "https://back.example", "token": "sbrk_…", "metadataKeys": ["team"] } }// src/providers/acme.tsimport { defineProvider, httpJson } from "./util.js";
export const acmeProvider = defineProvider({ info: { id: "acme", name: "Acme Sandboxes", homepage: "https://acme.dev", env: ["ACME_API_KEY"], capabilities: ["customImage"], freeTier: { tier: { kind: "monthly-credit", usd: 10 }, concurrency: 5, source: "https://acme.dev/pricing", checked: "2026-11-11", }, pricing: { vcpuSecondUsd: 0.00001, gibSecondUsd: 0.000003, defaultCpu: 1, defaultMemoryMiB: 1024 }, }, async create(spec, ctx) { const s = await httpJson<{ id: string }>("https://api.acme.dev/v1/sandboxes", { headers: { authorization: `Bearer ${ctx.env.ACME_API_KEY}` }, body: { image: spec.image, timeout: spec.timeoutSec, env: spec.env, metadata: spec.metadata }, }); return { providerSandboxId: s.id }; }, async exec(id, command, opts, ctx) { /* … */ return { stdout: "", stderr: "", exitCode: 0 }; }, async kill(id, ctx) { /* … */ },});sbr check # every configured provider that has free usage leftsbr check --provider koyeb # a paid-only provider runs only when you name itnpm installnpm run lint # ESLint over the whole repository (each check runs through hushrun)npm run typecheck # adapters are checked against the real provider SDK typesnpm test # the Docker ones run real containers when Docker is upnpm run simulate # compare the routing strategies on a simulated monthnpm run build && node dist/cli.js providers