BlogIntroduction to TanglePart 1 of 2

AI Agent Sandbox: Isolation, Persistence and Measured Start Times for LLM Code

Choosing a hosted sandbox for coding agents, or leaving one that lost your files or started slowly? What Tangle's sandbox isolates, keeps, costs and fails at, with measured p50 and p95 start times.

We run Claude Code, Codex and OpenCode inside Tangle’s hosted sandbox, and we measure it the way you would have to defend it to your team. A Tangle sandbox keeps an agent’s files through stop and resume. It limits the network by policy, and it caps a fleet’s machines and spend before anything boots. The catches are as concrete. The default boundary is a container, where E2B gives every session a Firecracker microVM and Modal uses gVisor; on Tangle, Firecracker is something you ask for. In our benchmark week, a new sandbox was ready in 1.5 s at the median and 12.4 s at p95, eight times the median. And 13% of create attempts failed. So ask for Firecracker when the code is hostile, size timeouts to p95, and retry every create.

A hosted sandbox moves the blast radius off your machine

A coding agent installs packages, runs tests and executes code a model wrote a second ago. On a laptop, that code runs next to your SSH keys, your cloud credentials and every other repository you have checked out. A local Docker container narrows the filesystem. It still shares your network and whatever you mounted into it.

A hosted sandbox is an isolated machine with files, a terminal and, if you want one, a browser. The agent’s code runs there, and nothing of yours is on that disk unless you put it there.

The threat is runaway or prompt-injected code. One agent deletes the wrong directory. Another reads a poisoned README and tries to send your code somewhere. The sandbox contains the first on its own. The second needs a network path and something worth stealing, so close both: restrict egress, and keep the credentials you control out of the box. The box is not empty of keys: it carries a scoped per-box key that the platform mints and revokes.1 In our 18 November runs, each box’s router key allowed only the requested model, expired an hour after create and was revoked when the box was deleted.

The SDK helps with the credentials. Application secrets you inject can carry a lifetime, after which the runtime removes them. The same call refuses platform-managed credentials such as your Tangle API key.2

If you are weighing a local container library against a hosted sandbox, compare what surrounds the container. You want a disk that outlives your process, a network policy the platform enforces, caps on a fleet, and a machine that holds none of your secrets.

The default boundary is a container, so ask for Firecracker for untrusted code

The boundary on each:

  • Tangle, default. A container on the host kernel. Our recorded egress test’s default box ran on the docker runtime.
  • Tangle, on request. A Firecracker microVM with its own kernel, chosen with runtime: "firecracker" at create. It never falls back to Docker. An account not placed on Firecracker gets a runtime-disabled error.
  • E2B. A Firecracker microVM per session.
  • Modal. gVisor, according to third-party comparisons such as LogRocket’s.

The SDK README also mentions Firecracker as an isolated image builder for container boxes. That builder is a separate thing from the per-sandbox runtime above.

We think the no-fallback rule is right, because a silent downgrade is the bug you would never notice. Check availability for your account before you build on it. Our one recorded Firecracker box is the egress test below; every other recorded example in this post used the default.

Is a container enough? Anthropic’s guidance on securing source code with LLMs draws the line where we would. Containers are fine for an agent reading code, but the target and its exploit code belong in a microVM or full VM with egress locked down.3 So an agent editing your own repository can live in the default container. An agent running code from strangers gets Firecracker, where your account has it, and a blocked network: a microVM runs its own kernel, while a container shares the host’s.

Lock egress to an allowlist before the agent reads anything untrusted

Set the policy at create: egressPolicy: { mode: "strict", allowDomains: [...] } sets an allowlist of the domains you list, and includeImplicitDomains: true adds the platform’s default allowlist to yours.

  • Mode blocked refused every request in our test below. The other modes are open and strict.
  • Omit the policy and the box inherits your team’s policy, or the platform default outside a team.
  • To tighten a running box, the SDK typings document box.egress.update(). We have not run that call.
src/examples/sandboxes/browser-task.mtsRan on production 2026-11-12 from these bytes, exit 0, $0.0200 reported usage, @tangle-network/sandbox 1.0.168. View result.
import { Sandbox } from "@tangle-network/sandbox";

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

// The agent installs and drives a real browser inside its own machine.
const box = await client.create({
  backend: { type: "claude-code" },
  resources: { cpuCores: 2, memoryMB: 4096 },
  // The default allowlist, plus the browser download and the one site it reads.
  egressPolicy: {
    mode: "strict",
    includeImplicitDomains: true,
    allowDomains: ["cdn.playwright.dev", "playwright.download.prss.microsoft.com", "news.ycombinator.com"],
  },
});
try {
  const run = await box.prompt(
    "Install Playwright with Chromium. Open https://news.ycombinator.com, " +
      "save a full page screenshot to /home/agent/front.png, and write the five " +
      "top story titles to /home/agent/top.json as a JSON array of strings.",
  );
  if (!run.success) throw new Error(run.error);

  console.log(JSON.parse(await box.read("/home/agent/top.json")));
  await box.fs.download("/home/agent/front.png", "front.png");
} finally {
  await box.delete();
}

That run listed the Playwright download hosts and Hacker News. Hacker News got through, and the agent read the headlines. The browser download redirected to storage.googleapis.com, which was not listed, and strict mode refused it with a 403 EGRESS_DOMAIN_NOT_ALLOWED, so the agent used the box’s own Chromium.

We have recorded a refusal in blocked mode. On 18 November 2026 we created two fresh boxes with egress blocked, one on Firecracker and one on the default docker runtime. In each, curl and Node’s fetch to example.com were refused by the egress proxy.

Summary of the recorded results, not raw output:
curl -sS -m 5 https://example.com   ->  "CONNECT tunnel failed, response 403", exit 7
fetch('https://example.com')         ->  status 403 from the egress proxy

That one refused host is our only strict-mode refusal on record; we have not run a deliberate strict-mode test, so test your own list before you rely on it.

A new sandbox was ready in 1.5 s at the median and 12.4 s at p95

The short version, from one benchmark week (2 to 9 November 2026, 11,066 samples across every measure):4

  • A new sandbox was ready in 1.5 s at the median and 12.4 s at p95: the tail was 8 times the median, so plan for p95, not the median. A base-image create’s p95 was 5.5 times its median.
  • Measured from the create call, Factory Droid, Codex and Claude Code first replied in 2.9 to 3.4 s at the median.
  • A timeout set from the median cancels creates that were about to succeed, so we set ours from p95.

These are live values, so read the benchmarks page for today’s numbers.

Figure 1 Tangle sandbox benchmark, one week

A new sandbox was ready in 1.5 s at the median and 12.4 s at p95; branching into 16 children took 12.7 s at the median.

Measured 2 Nov 2026 16:25 UTC to 9 Nov 2026 16:25 UTC seconds

0.00 s8.00 s16 s24 s32 s40 sseconds until the sandbox is ready1.54 sNewsandbox, p50p95 12.35…12.4 sNewsandbox, p954.72 sResume, p50p95 10.7 s10.7 sResume, p951.85 sFork asnapshot,p50p95 16.8 s16.8 sFork asnapshot,p9512.7 s16 children,p50p95 36.8 s36.8 s16 children,p95
0.00 s8.00 s16 s24 s32 s40 sseconds until the sandbox is ready1.54 sNewsandbox,p50p95 12…12.4 sNewsandbox,p954.72 sResume,p50p95 10…10.7 sResume,p951.85 sFork asnapshot,p50p95 16…16.8 sFork asnapshot,p9512.7 s16children,p50p95 36…36.8 s16children,p95

Sources: Measurement notes · Tangle sandbox benchmarks

Data and method

8 of 8 recorded values.

Bars start at zero. Missing values have no bar; whiskers show recorded intervals. Input order is preserved.

Rows from the benchmark panels "Inside create" (Ready: 393 timings; the panel had 425 attempts, 56 failed), "Lifecycle, base image" (Resume: 194 timings; 209 attempts, 31 failed), "Snapshots and checkpoints" (Fork a snapshot: 425 timings; 506 snapshot and fork attempts, 82 failed) and "Branching" (16 children: 147 timings; 226 attempts, 87 failed). Failures are counted per panel attempt; the percentiles cover the steps that returned a timing, so timings plus failures need not equal attempts. The benchmark data does not record which runtime its runs used. These are our own measurements and are not comparable with start times other providers publish. New sandbox, p50: 393 creates; New sandbox, p95: 393 creates; Resume, p50: 194 resumes; Resume, p95: 194 resumes; Fork a snapshot, p50: 425 forks; Fork a snapshot, p95: 425 forks; 16 children, p50: 147 branch calls; 16 children, p95: 147 branch calls

Seconds until the sandbox is ready by setup
Setupseconds until the sandbox is readyObservationsRecorded interval
New sandbox, p501.54 s393 createsnot recorded
New sandbox, p9512.4 s393 createsnot recorded
Resume, p504.72 s194 resumesnot recorded
Resume, p9510.7 s194 resumesnot recorded
Fork a snapshot, p501.85 s425 forksnot recorded
Fork a snapshot, p9516.8 s425 forksnot recorded
16 children, p5012.7 s147 branch callsnot recorded
16 children, p9536.8 s147 branch callsnot recorded

For a coding agent, the number your user feels is the first reply.

Figure 2 Tangle sandbox benchmark, one week

Claude Code and Codex first replied in 3.4 s and 3.3 s at the median; their p95 was 11.8 s and 18.1 s.

Measured 2 Nov 2026 16:25 UTC to 9 Nov 2026 16:25 UTC seconds

0.00 s4.00 s8.00 s12 s16 s20 sseconds from create to first reply2.90 sFactoryDroid, p50p95 10.9 s10.9 sFactoryDroid, p953.26 sCodex, p50p95 18.1 s18.1 sCodex, p953.38 sClaude Code,p50p95 11.8 s11.8 sClaude Code,p957.44 sOpenCode,p50p95 19.1 s19.1 sOpenCode,p95
0.00 s4.00 s8.00 s12 s16 s20 sseconds from create to first reply2.90 sFactoryDroid, p50p95 10…10.9 sFactoryDroid, p953.26 sCodex,p50p95 18…18.1 sCodex,p953.38 sClaudeCode, p50p95 11…11.8 sClaudeCode, p957.44 sOpenCode,p50p95 19…19.1 sOpenCode,p95

Sources: Measurement notes · Tangle sandbox benchmarks

Data and method

8 of 8 recorded values.

Bars start at zero. Missing values have no bar; whiskers show recorded intervals. Input order is preserved.

Rows from the benchmark panel "First reply, from create": the clock starts at the create call and stops at the coding agent's first reply. Attempts: Factory Droid 45 (3 failed), Codex 47 (3 failed), Claude Code 48 (3 failed), OpenCode 48 (3 failed). The panel has ten rows; the benchmarks page lists the rest, from Prime Agent at 3.3 s to OpenClaw at 25.1 s at the median. With the sandbox already running ("First reply, sandbox running"), the medians were Codex 0.66 s, Claude Code 1.06 s and OpenCode 3.4 s. The first reply includes the model's own latency. Factory Droid, p50: 42 replies; Factory Droid, p95: 42 replies; Codex, p50: 44 replies; Codex, p95: 44 replies; Claude Code, p50: 45 replies; Claude Code, p95: 45 replies; OpenCode, p50: 45 replies; OpenCode, p95: 45 replies

Seconds from create to first reply by setup
Setupseconds from create to first replyObservationsRecorded interval
Factory Droid, p502.90 s42 repliesnot recorded
Factory Droid, p9510.9 s42 repliesnot recorded
Codex, p503.26 s44 repliesnot recorded
Codex, p9518.1 s44 repliesnot recorded
Claude Code, p503.38 s45 repliesnot recorded
Claude Code, p9511.8 s45 repliesnot recorded
OpenCode, p507.44 s45 repliesnot recorded
OpenCode, p9519.1 s45 repliesnot recorded

The tail varies by agent here. Codex’s p95 was 5.5 times its median and Claude Code’s was 3.5 times. With the sandbox already running, Codex replied in 0.66 s at the median and Claude Code in 1.06 s. If the first reply sits on your product’s critical path, keep a sandbox running per user.

Rivals’ start numbers come from different tests

As published on 17 November 2026, Daytona advertises sub-90 ms sandbox creation. Modal says sub-second starts, and its July post reports a median under half a second in a test of a million sandboxes. Northflank says ready in 0.8 seconds, and Beam says about half a second. E2B publishes usage, not a start time.

Each of those is the vendor’s own number from the vendor’s own test. We have not run any of them through our benchmark, so they cannot be ranked against our 1.5 s, and we will not try. The compare pages link each claim to its source.

If start time decides your choice, time your own image and task on each provider. This script times create, first command and delete.

src/examples/runtime/time-a-cold-start.mtsRan on production 2026-11-20 from these bytes, exit 0, @tangle-network/sandbox 1.0.443. View result.
import { createTangleProvider } from "@tangle-network/agent-provider-tangle";
import { providerAsSandboxClient } from "@tangle-network/agent-runtime/kernel";
import { Sandbox } from "@tangle-network/sandbox";

// Swap the provider and these three numbers compare clouds like for like.
const provider = createTangleProvider({
  client: new Sandbox({
    apiKey: process.env.TANGLE_API_KEY!,
    baseUrl: "https://sandbox.tangle.tools",
  }),
});
const client = providerAsSandboxClient(provider);

const ms = (from: number) => `${Math.round(performance.now() - from)} ms`;
const t0 = performance.now();
const box = await client.create({
  backend: { profile: { name: "timer", harness: "claude-code" } },
});
console.log("create", ms(t0));
try {
  const t1 = performance.now();
  await box.exec("true");
  console.log("first command", ms(t1));
} finally {
  const t2 = performance.now();
  await box.delete();
  console.log("delete", ms(t2));
}

Files survive stop and resume, and a parked sandbox keeps them for 30 days

What happens to a stopped sandbox:

  • Files. stop() keeps the filesystem and resume() brings every file back. The run below shows it.
  • Retention. Without deleteAfterStoppedSeconds, the platform keeps a parked sandbox at least 30 days and may reclaim it after that. Set the field for a shorter life.
  • Secrets. When the platform removes a stopped box’s runtime, resume must supply your secret env values again. It throws ResumeEnvRequiredError, which names the missing keys.
  • Cost. A stopped sandbox accrues no compute charge. The SDK README says compute, which covers vCPU, memory, disk and the hourly minimum, accrues only while the sandbox runs (rate card).
src/examples/sandboxes/stop-and-resume.mtsRan on production 2026-11-12 from these bytes, exit 0, @tangle-network/sandbox 1.0.168. View result.
import { Sandbox } from "@tangle-network/sandbox";

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

// Stopped: the disk stays and nothing is billed. Resumed: every file is there.
const box = await client.create();
try {
  await box.exec("echo 'first draft' > notes.md");
  await box.stop();
  await box.resume();
  const { stdout } = await box.exec("cat notes.md");
  console.log(stdout.trim());
} finally {
  await box.delete();
}

I got persistence wrong in the first version of this post, which implied that only a snapshot or a durable session kept files. Keep anything precious in a snapshot or your own repository.

Branching copies the workspace into parallel attempts

Fan out from a snapshot or from a running box:

  • Snapshot, then create. box.snapshot() saves the filesystem, and client.create({ fromSnapshot }) starts new sandboxes from it. The fork took 1.85 s at the median.
  • Branch. parent.branch(n) copies a running sandbox into n children. Sixteen children took 12.7 s at the median.
  • Memory. The example’s comment says memory is copied too. Our run shows files only, and we have not tested process state.
src/examples/sandboxes/branch-into-two.mtsRan on production 2026-11-12 from these bytes, exit 0, @tangle-network/sandbox 1.0.168. View result.
import { Sandbox } from "@tangle-network/sandbox";

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

// Each child starts as a copy of the parent, files and memory included.
const parent = await client.create();
try {
  await parent.exec("echo 'shared setup' > base.txt");
  const [a, b] = await parent.branch(2);
  try {
    await a.exec("echo 'child a' >> base.txt");
    await b.exec("echo 'child b' >> base.txt");
    for (const child of [a, b]) {
      const { stdout } = await child.exec("cat base.txt");
      console.log(child.id, stdout.trim().split("\n"));
    }
  } finally {
    await Promise.all([a.delete(), b.delete()]);
  }
} finally {
  await parent.delete();
}

Both children saw the shared setup plus their own line. Branching is also the least reliable call we measured: in the Branching panel, 87 of 226 attempts failed. Snapshot-and-fork attempts failed 16% of the time. If you fan out four approaches today, we would fork from a snapshot and retry the failures.

Run Claude Code, Codex or OpenCode inside the box

The whole loop is short:

  • Clone the repository at create with git: { url }.
  • Name the coding agent in backend: { type }: claude-code, codex, opencode or pi.
  • Send the task with box.prompt().
  • Check the result yourself with box.exec("npm test"). The agent’s own report of success is not the check.
  • Keep model credentials on a trusted server: grant a stored one with grantNativeCredential, or route model calls through Tangle Router.
src/examples/sandboxes/fix-a-test.mtsRan on production 2026-11-12 from these bytes, exit 0, $0.0145 reported usage, @tangle-network/sandbox 1.0.168. View result.
import { writeFile } from "node:fs/promises";
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" }, // or "codex", "opencode", "pi"
});
try {
  const run = await box.prompt("`npm test` fails. Find the cause and fix it.");
  if (!run.success) throw new Error(run.error);

  // Check the result yourself.
  const tests = await box.exec("npm test");
  if (tests.exitCode !== 0) throw new Error("The tests still fail.");

  await writeFile("fix.patch", (await box.exec("git diff")).stdout);
  console.log(run.usage, run.costUsd); // metered per turn
} finally {
  await box.delete();
}

A clean second sandbox that applies the patch is a stricter check still. The benchmarks page lists every coding agent we measure.

You pay for compute by the hour and for model tokens per turn

We price compute per CPU core-hour, memory GB-hour and disk GB-hour, with a minimum hourly charge. Rates change, so read them from the pricing endpoint.

Model spend is billed separately. Each turn reports its token usage and its model cost. The test fix above cost $0.0145 in model spend, and most of its input tokens were cache reads. The browser task cost $0.02.

Cap machines and spend before the fleet boots

Use the control that fits the job:

  • Fleet policy. Hard caps on machines, concurrent creates, CPU, memory and spend, checked before the platform provisions anything. They sit under your account quotas, not in place of them.
  • Fleet budget. The platform refuses any charge past it, mid-turn included.
  • runBatch(). For one-off parallel tasks, it creates temporary sandboxes and removes them after the run.

This is the policy from the SDK README’s fleet example. We have not run it.

  policy: {
    maxMachines: 3,
    maxConcurrentCreates: 2,
    maxTotalCpu: 6,
    maxTotalMemoryMb: 12_288,
    maxSpendUsd: 2,
    allowAccelerators: false,
  },

This recorded example sets a $2 hard cap and cancels every agent once the fleet has spent $0.20, checked from the client; the run stopped all six at $0.21 total.

src/examples/fleets/cancel-on-cap.mtsRan on production 2026-11-18 from these bytes, exit 0, $0.2129 reported usage, @tangle-network/sandbox 1.0.443. View result.
import { Sandbox } from "@tangle-network/sandbox";

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

// Claude Code harness, DeepSeek V4.1 Flash. The Platform refuses any charge past $2; this script stops everyone at $0.20.
const ideas = ["a lookup table", "a streaming parser", "fewer allocations",
  "worker threads", "WebAssembly", "a hand written tokenizer"];
const fleet = await client.fleets.create({
  agents: ideas.map((idea) => ({
    task: `Make bench/parse.js faster with ${idea}. Report the speedup.`,
  })),
  placement: "dedicated",
  defaults: {
    git: { url: "https://github.com/tangle-network/sandbox-demo" },
    backend: { type: "claude-code", model: { model: "deepseek/deepseek-v4.1-flash" } },
  },
  budgetUsd: 2,
});

const softCapUsd = 0.2;
async function checkSpend() {
  const { spentUsd } = await fleet.spend();
  if (spentUsd < softCapUsd) return;
  clearInterval(watch);
  const { interrupted } = await fleet.cancel();
  console.log(`$${spentUsd.toFixed(2)} spent, ${interrupted} agents stopped`);
}
const watch = setInterval(() => void checkSpend().catch(console.error), 5_000);

try {
  const results = await fleet.runAll();
  // status: completed, cancelled or budget_exhausted
  for (const r of results) console.log(r.agentId, r.status, r.costUsd);
} finally {
  clearInterval(watch);
  await fleet.delete();
}

Expect parallel creates to slow down as the batch grows. In the benchmark, 25 creates at once were ready in 4.0 s at the median, and 100 at once took 14.4 s.5

Your agent code can move to E2B or Daytona, but Tangle cannot move to your servers

Tangle’s agent-runtime puts Tangle, E2B and Daytona behind one provider interface. Swap the provider and keep the profile, the coding agent and the task.

src/examples/runtime/any-cloud-e2b.mtsTypechecked against the published packages.
import { createE2BProvider } from "@tangle-network/agent-provider-e2b";
import { providerAsSandboxClient } from "@tangle-network/agent-runtime/kernel";

const provider = createE2BProvider({
  apiKey: process.env.E2B_API_KEY!,
  router: { key: process.env.TANGLE_API_KEY! },
});

const client = providerAsSandboxClient(provider);
const model = process.env.TANGLE_MODEL;
if (!model) throw new Error("Set TANGLE_MODEL to a model your Router key can use.");

const box = await client.create({
  git: { url: "https://github.com/tangle-network/sandbox-demo" },
  backend: {
    profile: { name: "repo-reader", harness: "claude-code", model: { default: model } },
  },
});
try {
  const task = "Read this repository. In two sentences, say what it does.";
  for await (const event of box.streamPrompt(task)) {
    if (event.type === "result") console.log(event.data.finalText);
  }
} finally {
  await box.delete();
}

We have recorded the Tangle version of this script on production. The E2B and Daytona versions typecheck against the published packages, and we have not run them.

Self-hosting is the harder answer. Tangle offers hosted infrastructure only, and on-premises hosting is planned but not available today.6

Expect failed creates, and retry with the same idempotency key

In the benchmark week, 56 of 425 create attempts failed, and so did 31 of 209 base-image lifecycle runs. Your code needs a retry path on day one:

  • Pass an idempotency key on create, and reuse it only when retrying the same logical request.
  • Let the SDK pace its own retries from the platform’s retry-after value.
  • Set create timeouts from the p95, not the median.
  • For one sandbox per customer, call client.instances.ensure(). It creates, resumes or replaces a sandbox that was deleted or keeps failing to start. While it waits to replace a sandbox that keeps failing to start (60 s by default), it throws a restarting error with a retry delay.

Figure 3 Tangle sandbox benchmark, one week

Between 13% and 16% of create, lifecycle and snapshot attempts failed; branching failed 38%.

Measured 2 Nov 2026 16:25 UTC to 9 Nov 2026 16:25 UTC percent of attempts in the benchmark

0%10%20%30%40%50%attempts that failed13%Inside create56 failed15%Lifecycle, baseimage31 failed16%Snapshots82 failed38%Branching87 failed
0%10%20%30%40%50%attempts that failed13%Insidecreate56 failed15%Lifecycle,base image31 failed16%Snapshots82 failed38%Branching87 failed

Sources: Measurement notes · Tangle sandbox benchmarks

Data and method

4 of 4 recorded values.

Bars start at zero. Missing values have no bar; whiskers show recorded intervals. Input order is preserved.

Failed attempts divided by attempts, per benchmark panel: "Inside create" 56 of 425, "Lifecycle, base image" 31 of 209, "Snapshots and checkpoints" (snapshot and fork) 82 of 506, "Branching" 87 of 226. The benchmark data does not record whether a failure came from the platform or from the benchmark's own client, so these are failed attempts in our test, not a service level. Read the benchmarks page for the current window. Inside create: 425 attempts; Lifecycle, base image: 209 attempts; Snapshots: 506 attempts; Branching: 226 attempts

Attempts that failed by setup
Setupattempts that failedObservationsRecorded interval
Inside create13%425 attemptsnot recorded
Lifecycle, base image15%209 attemptsnot recorded
Snapshots16%506 attemptsnot recorded
Branching38%226 attemptsnot recorded

The benchmark does not say whether each failure came from the platform or from the benchmark’s own client. Read these as failed attempts in our test, not a service level.

Which sandbox should you pick?

Pick Tangle’s sandbox when your agents need files across sessions, a fleet with a spend cap, and percentiles you can plan against. Ask for Firecracker before you run code from strangers, and confirm your account has it. If you need a microVM per session by default, E2B’s default gives you one. If you must run on your own servers, Tangle does not fit yet. Whichever you shortlist, run the cold-start script with your own image on each, and decide on the p95.

How we tested

  • Benchmark window. 2 November 2026 16:25 UTC to 9 November 2026 16:25 UTC, from the data behind https://tangle.tools/benchmarks/. The window’s 11,066 samples count every measure together; no single row has that many. Each figure’s note gives its rows’ sample and attempt counts. Failures are counted per panel attempt; the percentiles cover the steps that returned a timing.
  • Runtime. The recorded examples set no runtime, so they ran on the platform default. The benchmark data does not record which runtime its runs used. Our one Firecracker box is the egress refusal run.
  • Egress. The browser run used strict mode with the default allowlist plus the Playwright hosts and news.ycombinator.com; it proves listed domains pass. On 18 November 2026 we created two boxes with egressPolicy: { mode: "blocked" }, one with runtime: "firecracker" (sandbox-96e412dc6d06) and one on the default docker runtime (sandbox-5ca151905f1b). In each, curl -sS -m 5 https://example.com exited 7 with “CONNECT tunnel failed, response 403”, and Node’s fetch got status 403 from the egress proxy. Both boxes were deleted and read back as deleted. Strict-mode refusal of an unlisted domain has not been deliberately tested; the browser run’s receipt shows one incidental refusal of storage.googleapis.com.
  • Recorded examples. Each <Example> renders the example file with its production run receipt; the receipts’ call lines and output match the files. All were recorded on 12 November 2026 with @tangle-network/sandbox 1.0.168, except fleets/cancel-on-cap, which was re-recorded on 18 November 2026 with 1.0.443 (tangle-website#547). The stop-and-resume run printed “first draft” after the resume. The branch run printed “shared setup” plus each child’s line in both children. fix-a-test reported $0.0145 of model spend over 192,627 input tokens, 175,408 of them cache reads. browser-task reported $0.02. The E2B example has no run receipt; it is typechecked only.
  • One cold-start run. runtime/time-a-cold-start on 12 November 2026: create 1,842 ms, first command 567 ms, delete 872 ms. One run is a smoke test, not a distribution.
  • Lifecycle extras. Base-image stop took 1.2 s at the median. Resume took 4.7 s at the median and 10.7 s at p95. Fork a snapshot: 1.85 s at the median and 16.8 s at p95. The “Snapshots and checkpoints” panel, snapshot and fork together, failed 82 of 506 attempts.
  • Tail ratios. For a new sandbox (Ready), p95 was 8.0 times the median; for a base-image create, 5.5 times. Other create rows in the data fall outside that range, such as a desktop-image create at 3.0 times and a large-size create at 22 times.
  • Stopped-sandbox billing. From the @tangle-network/sandbox 1.0.447 README, read 18 November 2026: “A stopped sandbox accrues no compute charge”. An earlier version of this post, through its example’s comment, said a stopped sandbox bills for its disk; that was wrong. That comment, line 8 of the stop-and-resume example, was corrected on 17 November 2026 (tangle-website#545), after the example’s 12 November run; the receipt’s call lines and output still match the file; only that comment changed.
  • Rivals. Daytona, Modal, Northflank and Beam figures are their own published claims, as linked from https://tangle.tools/compare/. Modal’s half-second median is from its post of 16 July 2026. E2B’s Firecracker microVM is from the same compare data. We have not run any rival through our benchmark.
  • SDK behaviour. Runtime, credential, retention, retry, fleet-policy, batch and ensure behaviour is from the @tangle-network/sandbox README, version 1.0.440, read on 17 November 2026. The egress modes and box.egress.update() are from its typings.

Measurement notes

  1. Rows from the benchmark panels "Inside create" (Ready: 393 timings; the panel had 425 attempts, 56 failed), "Lifecycle, base image" (Resume: 194 timings; 209 attempts, 31 failed), "Snapshots and checkpoints" (Fork a snapshot: 425 timings; 506 snapshot and fork attempts, 82 failed) and "Branching" (16 children: 147 timings; 226 attempts, 87 failed). Failures are counted per panel attempt; the percentiles cover the steps that returned a timing, so timings plus failures need not equal attempts. The benchmark data does not record which runtime its runs used. These are our own measurements and are not comparable with start times other providers publish. New sandbox, p50: 393 creates; New sandbox, p95: 393 creates; Resume, p50: 194 resumes; Resume, p95: 194 resumes; Fork a snapshot, p50: 425 forks; Fork a snapshot, p95: 425 forks; 16 children, p50: 147 branch calls; 16 children, p95: 147 branch calls ↩
  2. Rows from the benchmark panel "First reply, from create": the clock starts at the create call and stops at the coding agent's first reply. Attempts: Factory Droid 45 (3 failed), Codex 47 (3 failed), Claude Code 48 (3 failed), OpenCode 48 (3 failed). The panel has ten rows; the benchmarks page lists the rest, from Prime Agent at 3.3 s to OpenClaw at 25.1 s at the median. With the sandbox already running ("First reply, sandbox running"), the medians were Codex 0.66 s, Claude Code 1.06 s and OpenCode 3.4 s. The first reply includes the model's own latency. Factory Droid, p50: 42 replies; Factory Droid, p95: 42 replies; Codex, p50: 44 replies; Codex, p95: 44 replies; Claude Code, p50: 45 replies; Claude Code, p95: 45 replies; OpenCode, p50: 45 replies; OpenCode, p95: 45 replies ↩
  3. Failed attempts divided by attempts, per benchmark panel: "Inside create" 56 of 425, "Lifecycle, base image" 31 of 209, "Snapshots and checkpoints" (snapshot and fork) 82 of 506, "Branching" 87 of 226. The benchmark data does not record whether a failure came from the platform or from the benchmark's own client, so these are failed attempts in our test, not a service level. Read the benchmarks page for the current window. Inside create: 425 attempts; Lifecycle, base image: 209 attempts; Snapshots: 506 attempts; Branching: 226 attempts ↩

Footnotes

  1. Our run receipt for six boxes on 18 Nov 2026: each box got its own router key named auto:sandbox:router:<sandbox id>, limited to the requested model, set to expire one hour after create, and revoked at box delete. We did not confirm which environment variable holds it; the recorded browser run’s environment listed a TANGLE_API_KEY and a model auth token, values redacted. ↩

  2. The README says the runtime rejects platform-managed credentials, including TANGLE_API_KEY, when you call setRuntimeEnv, and that { ttlMs } removes each injected key after its lifetime. That covers what you inject through that call. It is not a statement about every credential a box can hold. ↩

  3. Anthropic, “Using LLMs to secure source code”, 27 May 2026: “Containers are fine for the discovery agent reading code, but run the target and its PoCs in a microVM (like Firecracker) or a full VM with egress locked down.” ↩

  4. The window ran from 2 to 9 November 2026. Numbers in this post are from that window; the benchmarks page shows the current one. ↩

  5. “Many at once” panel: 10 at once had a median of 1.4 s (n=10); 25 at once 4.0 s (n=25); 100 at once 14.4 s at the median and 20.4 s at p95 (n=7). The 100-wide sample is small. ↩

  6. From https://tangle.tools/llms.txt: “Tangle offers hosted infrastructure; on-premises hosting is planned and is not available today.” ↩

Next in Introduction to Tangle: Is your LLM router safe for agents?