Compare

Tangle vs Blaxel: run a fleet of coding agents under a dollar budget

Give each agent in a fleet its task, set one budget in dollars, and the platform refuses any charge past it.

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 fleet = await client.fleets.create({
  agents: [
    { agentId: "tests", task: "List the three slowest tests and why." },
    { agentId: "todos", task: "Find every TODO and group them by file." },
    { agentId: "deps", task: "Say what each dependency is used for." },
  ],
  placement: { agentsPerSandbox: 3 },
  defaults: {
    git: { url: "https://github.com/tangle-network/sandbox-demo" },
    backend: { type: "claude-code" },
    maxLifetimeSeconds: 900,
  },
  budgetUsd: 1,
});
try {
  const results = await fleet.runAll();
  for (const r of results) console.log(r.agentId, r.status, r.result?.response);
  console.log(await fleet.spend());
} finally {
  await fleet.delete();
}

Each agent's result and the fleet's spend come back from one run (docs.tangle.tools/sandbox/agents-fleet). 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 Blaxel

-import { SandboxInstance } from "@blaxel/core";
+import { Sandbox } from "@tangle-network/sandbox";
 
-const sandbox = await SandboxInstance.createIfNotExists({
-  name: "my-sandbox",
-  image: "blaxel/base-image:latest",
-});
+const client = new Sandbox({
+  apiKey: process.env.TANGLE_API_KEY!,
+  baseUrl: "https://sandbox.tangle.tools",
+});
+const sandbox = await client.create({ name: "my-sandbox" });
 try {
-  const result = await sandbox.process.exec({ command: "echo hello", waitForCompletion: true });
+  const result = await sandbox.exec("echo hello");
   console.log(result.stdout);
 } finally {
-  await SandboxInstance.delete("my-sandbox");
+  await sandbox.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)
SDKs
TypeScript, Python (tangle-sandbox on PyPI) and the tangle CLI (docs.tangle.tools/sandbox/sdk-python)