Compare

Tangle vs Runloop: start any of eight installed coding agents with one create call

Name Pi, Hermes, Kimi Code, Prime Agent or another installed agent when you create the sandbox, and one prompt call returns its result, token usage and cost.

Create a sandbox
import { Sandbox } from "@tangle-network/sandbox";

const client = new Sandbox({
  apiKey: process.env.TANGLE_API_KEY!,
  baseUrl: "https://sandbox.tangle.tools",
});

const box = await client.create({
  git: { url: "https://github.com/tangle-network/sandbox-demo" },
  backend: { type: "pi" },
});
try {
  const run = await box.prompt("`npm test` fails. Find the cause and fix it.");
  console.log(run.success, run.response);
  console.log(run.usage, run.costUsd);
} finally {
  await box.delete();
}

The result, token usage and cost come back from one call (docs.tangle.tools/sandbox/cloud-agents). Pi's first reply arrives 5s after create at p50 and 15s at p95, over 42 measured runs (tangle.tools/benchmarks).

What else you get

Move your code from Runloop

-import { RunloopSDK } from "@runloop/api-client";
+import { Sandbox } from "@tangle-network/sandbox";
 
-const runloop = new RunloopSDK();
-const devbox = await runloop.devbox.create();
+const client = new Sandbox({
+  apiKey: process.env.TANGLE_API_KEY!,
+  baseUrl: "https://sandbox.tangle.tools",
+});
+const devbox = await client.create();
 try {
-  const result = await devbox.cmd.exec("echo hello");
-  console.log(await result.stdout());
+  const result = await devbox.exec("echo hello");
+  console.log(result.stdout);
 } finally {
-  await devbox.shutdown();
+  await devbox.delete();
 }

What every sandbox includes

Isolation
A container or a Firecracker microVM, chosen per sandbox (docs.tangle.tools/sandbox/security)
Snapshots and forks
Snapshot, revert, and split a running sandbox into copies (docs.tangle.tools/sandbox/snapshots)
Secrets
Stored once; you choose whether the sandbox can read a secret or only the network proxy can (docs.tangle.tools/sandbox/secrets)
Network
Open, a strict allowlist, or blocked, changeable while the sandbox runs (docs.tangle.tools/sandbox/egress)
Getting a shell
SSH, a PTY or a browser terminal (docs.tangle.tools/sandbox/terminals)