by ComputeSDK
Route to any sandbox provider
Sandbox Router sends each sandbox create to one of 26 providers, in the order you choose, with failover when a create fails and live prices. This is Sandbox Router's official home, made by ComputeSDK. What is a sandbox router?
$5 in free credit, BYOK optional.
Failover at create
If a provider fails to create the sandbox, the router tries the next one. Running sandboxes stay where they are.
Your order
Use ComputeSDK's recommended order, the cheapest price for your size, or your own order.
One API
One key and one SDK, CLI or REST call, whichever provider runs the sandbox.
Where would your sandbox go?
Pick a size and a runtime to see the order the router tries providers in, with live prices.
First try: Superserve at $0.1656 per hour, about $0.17 for this run. If that create fails, the router tries the next row.
| # | Provider | Resources | Per hour | This run |
|---|---|---|---|---|
| 1 | 2 vCPU · 4 GB · 8 GB disk | $0.1656 | $0.17 | |
| 2 | 2 vCPU · 4 GB · 512 GB disk | $0.23796 | $0.24 | |
| 3 | 2 vCPU · 4 GB | $0.1656 | $0.17 | |
| 4 | 2 vCPU · 4 GB | $0.14 | $0.14 | |
| 5 | 2 vCPU · 4 GB · 16 GB disk | $0.11 | $0.11 | |
| 6 | 2 vCPU · 4 GB | $0.1656 | $0.17 | |
| 7 | 2 vCPU · 4 GB · 20 GB disk | $0.1656 | $0.17 | |
| 8 | 2 vCPU · 4 GB · 20 GB disk | $0.11664 | $0.12 | |
| 9 | 2 vCPU · 4 GB · 10 GB disk | $0.20 | $0.20 | |
| 10 | 2 vCPU · 4 GB | $0.05 | $0.05 | |
| 11 | 2 vCPU · 4 GB · 10 GB disk | $0.1656 | $0.17 | |
| 12 | 2 vCPU · 4 GB · 50 GB disk | $0.0864 | $0.09 | |
| 13 | 2 vCPU · 4 GB · 10 GB disk | $0.20 | $0.20 | |
| 14 | 2 vCPU · 4 GB · 64 GB disk | $0.3408 | $0.34 | |
| 15 | 2 vCPU · 4 GB · 11718 MB disk | $0.18 | $0.18 | |
| 16 | 2 vCPU · 4 GB | $0.19 | $0.19 | |
| 17 | 2 vCPU · 16 GB | $0.158 | $0.16 | |
| 18 | 2 vCPU · 4 GB · 48 GB disk | $0.18 | $0.18 | |
| 19 | 2 vCPU · 4 GB · 10 GB disk | $0.0893 | $0.09 | |
| 20 | 2 vCPU · 4 GB | $0.00604 | $0.0060 | |
| 21 | 2 vCPU · 4 GB | $0.06 | $0.06 | |
| 22 | 2 vCPU · 4 GB | $0.4167 | $0.42 |
Recommended is ranked by ComputeSDK's benchmark results and price. Estimate for ComputeSDK-managed accounts, without your own provider keys, at live feed prices. Sandboxes on your own keys are billed by the provider. ComputeSDK bills for sandboxes it runs on these providers through the router, and scores every provider with the same public benchmarks.
Start a sandbox in a few lines
const api = "https://platform.computesdk.com/api/v1";
const headers = {
Authorization: `Bearer ${process.env.COMPUTE_API_KEY}`,
"Content-Type": "application/json",
};
// The router picks the provider and fails over if a create fails.
const { sandbox } = await fetch(`${api}/sandboxes`, {
method: "POST",
headers,
body: JSON.stringify({}),
}).then((res) => res.json());
try {
const result = await fetch(`${api}/sandboxes/${sandbox.id}/commands`, {
method: "POST",
headers,
body: JSON.stringify({ command: "echo hello" }),
}).then((res) => res.json());
console.log(result.stdout);
} finally {
await fetch(`${api}/sandboxes/${sandbox.id}`, { method: "DELETE", headers });
}Create a sandbox with one request. The router picks the provider from your order, runs your commands there and destroys the sandbox through the same API.
Read the Sandboxes docs or see how it works.