Compare

Tangle vs boat.dev: run the coding agent with no AI key to connect

Create a sandbox with Claude Code in it, give it a task, and its model calls go through Tangle Router and bill to your Tangle balance.

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: "claude-code" },
});
try {
  // No model key: the model bills to your Tangle balance.
  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). Claude Code's first reply arrives 3.4s after create at p50 and 12s at p95, over 45 measured runs (tangle.tools/benchmarks).

What else you get

Move your code from boat.dev

-import { BoatApi, Configuration, waitUntilReady, execCommand } from "@boatdev/sdk";
+import { Sandbox } from "@tangle-network/sandbox";
 
-const boat = new BoatApi(new Configuration({
-  basePath: "https://boat.dev/api/v1",
-  accessToken: process.env.BOAT_API_KEY!,
-}));
-const created = await boat.create({ ttlSeconds: 3600 });
-const id = created.sandbox.id;
-await waitUntilReady(boat, id);
-const result = await execCommand(boat, id, "echo hello");
+const client = new Sandbox({
+  apiKey: process.env.TANGLE_API_KEY!,
+  baseUrl: "https://sandbox.tangle.tools",
+});
+const box = await client.create({ maxLifetimeSeconds: 3600 });
+const result = await box.exec("echo hello");
 console.log(result.stdout);
+await box.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)