Containers

Run the code your agent writes.

Lean microVMs that start and exit in seconds, a fresh, isolated machine for every interpreter turn, tool call and CI shard. Fan out dozens at once, each with its own kernel, billed by the second, free while paused.

code-interpreter.tsCreate → exec → fan out
import { Sandal } from "@sandal-dev/sdk";
const sandal = new Sandal({ baseUrl, apiToken, organizationId, projectId });
const key = () => crypto.randomUUID();
const rev = async (id) => (await sandal.sandboxes.get(id)).revision;
// A lean container from the published base template.
const templateId = "sandal-sandbox-base-beta-20261030-1";
const tpl = await sandal.builds.templates.getPublished(templateId);
const { sandbox, operation } = await sandal.sandboxes.create({
idempotencyKey: key(), kind: "container", size: "xs",
templateId, templateDigest: tpl.templateDigest,
architecture: tpl.architecture,
lifecycle: { expiresAt: new Date(Date.now() + 600_000) },
});
await sandal.sandboxes.waitForOperation(operation.id);
// Run the code the model just wrote.
const run = await sandal.processes.execAndWait(sandbox.id, {
idempotencyKey: key(), command: ["sh", "-c", modelOutput],
expectedSandboxRevision: await rev(sandbox.id),
});
~2swarm create
~155msexec p50
$0.0045per container-hr, from
1kernel each
$0while paused
What it’s for

Built for code that runs once and exits.

A container is the right shape when the work is short, parallel and disposable, the code an agent generates, not a machine it lives on.

Code interpreter

Run what the model wrote.

Run model-generated Python, JS or shell against a real machine and stream the result back into context. The worst case is a wasted container, not a shared host.

const out = await sandal.code.runAndWait(id, {
idempotencyKey: key(), language: "python", code: modelOutput,
});
messages.push({ role: "tool", content: out.stdout });
Agent tool calls

A machine per turn.

The model proposes a command, the container runs it, the output returns. The filesystem carries over from turn to turn, and an idle container can stop on its own policy.

for await (const turn of agent.run(task)) {
const r = await sandal.processes.execAndWait(id, {
idempotencyKey: key(), command: ["sh", "-c", turn.command],
expectedSandboxRevision: await rev(id),
});
turn.observe(r); // output events + exit status
}
Untrusted code

Nothing it does leaves the box.

Arbitrary code from users or an LLM runs in its own kernel. Create it with allowInternet: false and nothing it does reaches the host, another tenant or the internet.

const { sandbox } = await sandal.sandboxes.create({
idempotencyKey: key(), kind: "container", size: "xs",
templateId, templateDigest, architecture,
lifecycle: { expiresAt },
networkPolicy: { allowInternet: false }, // reaches nothing
});
CI fan-out

Install once, fork many.

Shard a test suite across dozens of containers that start on a merge and tear straight down. Fork a parent that already ran the install, so you pay the install once, not per shard; a fork takes about 10-15 seconds.

A project runs up to 64 workloads at once today. Fork a warm parent so each shard skips the install.

shard.ts
// pay the install a single time
await sandal.processes.execAndWait(base, {
idempotencyKey: key(), expectedSandboxRevision: await rev(base),
command: ["sh", "-c", "pnpm install --frozen-lockfile"],
});
// then branch it, each fork is a graph op, not a copy
const { sandbox: shard } = await sandal.sandboxes.fork(base, {
idempotencyKey: key(), expectedRevision: await rev(base),
});
The problem

Regular containers share one kernel.

A standard container runs on the host’s kernel next to everyone else’s. That shared kernel is an escape route you patch forever instead of removing. Running code you didn’t write, from a user or a model, right beside your own workload is a bet that eventually goes wrong.

Shared kernel = shared blast radius

One container escape reaches the host and its neighbours. A microVM has its own kernel, so there is nothing next door to escape into.

Secrets leak through the filesystem

A token written into the guest is a token the code can read. Brokered secrets (preview) keep it out of the guest: Sandal injects it only into HTTPS requests to the hosts you allow.

Deletion you have to trust

A deleted machine’s disk is wiped: its blocks are zeroed before the space is reused. Persistent volumes are encrypted with their own key, and erasing one destroys that key on the host.

How it works

A fresh, locked-down
machine per run.

Boot in about 2 seconds from a warm pool, run the code behind its own kernel, take the result, and leave nothing behind.

interpreter.ts
const { sandbox, operation } = await sandal.sandboxes.create({
idempotencyKey: key(), kind: "container", size: "xs",
templateId, templateDigest, architecture, lifecycle: { expiresAt },
networkPolicy: { allowInternet: false }, // reaches nothing
});
await sandal.sandboxes.waitForOperation(operation.id);
const run = await sandal.processes.execAndWait(sandbox.id, {
idempotencyKey: key(), command: ["sh", "-c", untrustedCode],
expectedSandboxRevision: await rev(sandbox.id),
});
// delete: the disk is wiped before reuse
await sandal.sandboxes.delete(sandbox.id, {
idempotencyKey: key(), expectedRevision: await rev(sandbox.id),
});
  1. 01

    Start with no access

    Create it with allowInternet: false and the microVM starts with no outbound network and its own isolated stack. It can reach nothing, not the host, not another customer, not the internet.

  2. 02

    Run the code

    Execute the untrusted code against its own kernel. The worst case is a wasted machine, not a compromised host or a leaked secret.

  3. 03

    Take the result

    Read stdout, stderr and the exit code, or pull a file off the disk. Need the network? Allow only the domains or CIDRs the job needs.

  4. 04

    Leave nothing behind

    Delete the machine and its disk is wiped before the space is reused. Erase any persistent volume you attached, and its encryption key is destroyed.

Concurrency

Dozens at once, install paid once.

High concurrency is the whole point of a container fleet. The trap is re-installing dependencies in every one, 500 boxes a day is 500 billable installs. Do the expensive part once in a parent, then fork; each fork starts from the finished disk in about 10-15 seconds.

Fork, don’t reinstall

Near-constant cost per child.

A fork takes about 10-15 seconds. Every child starts from the parent’s finished disk with a new ID, new tokens and its own clock; processes start fresh.

64 at once

Sized for the burst.

A project runs up to 64 workloads at once today, within 256 vCPU and 512 GiB. Size s claims from a warm pool in about 2 seconds; larger sizes boot cold in about 12-16.

Paused is free

A slow agent costs nothing.

Between turns a container pauses to $0 and resumes in about 1-2.5 seconds, so the idle minutes while a model thinks never touch the meter.

Plans

One balance. Every machine you run.

Containers draw from the same credit pool as your VMs and runners, billed by the second at one published rate card.

Starter

For a solo build or a first agent in production.

$20/ month

$20 of usage credits

≈ 550 VM-hours or 33,000 CI minutes

Contact us
  • 20 concurrent machines
  • Committed in-plan rates on every product
  • Linux sandboxes, VMs, runners; Windows in preview
  • Per-second billing, paused is free
  • Full API, SDKs, CLI & local MCP server
  • Unlimited seats
  • Community support
Most popular

Team

Apple silicon on request, and a balance that rolls over.

$100/ month

$100 of usage credits

≈ 2,700 VM-hours or 10,000 Mac build minutes

Contact us
  • 100 concurrent machines
  • Everything in Starter, plus:
  • macOS VMs & iOS simulators (on request), Xcode builds (coming); Android (preview)
  • Unused credits roll over one month
  • Usage exports & per-second line items (coming)
  • Email support

Business

Higher ceilings for a team leaning on the fleet daily.

$250/ month

$250 of usage credits

≈ 6,900 VM-hours or 25,000 Mac build minutes

Contact us
  • 300 concurrent machines
  • Everything in Team, plus:
  • Raised concurrency
  • Priority support & shared Slack channel
  • Single sign-on, SAML / OIDC (coming)
  • Volume credit rate

Enterprise

Dedicated capacity, your compliance surface, one invoice.

Custom

Committed volume rate

Committed volume rate, negotiated per account

Talk to sales
  • Reserved bare-metal capacity
  • BYOC or self-host the control plane (coming)
  • SSO & SCIM (coming), audit events, EU data residency
  • Annual invoicing, MSA, DPA
  • Support SLA (coming) & solutions engineering
  • More regions (coming; EU today)

Every plan spends its credit pool first, then usage keeps flowing and bills per second at your committed in-plan rate, no hard stop mid-run, no forced upgrade. Without a plan you pay the on-demand rate instead. Prices are illustrative pending final list pricing; the per-second billing model is final.

Rate card

The container rate card.

Linux

MachineIn-plan / container-hrOn-demand / container-hr
0.5 vCPU / 1 GB$0.0045$0.0067
1 vCPU / 2 GB$0.009$0.013
2 vCPU / 4 GB$0.018$0.027
4 vCPU / 8 GB$0.036$0.054
8 vCPU / 16 GB$0.072$0.108
16 vCPU / 32 GB$0.144$0.216

Priced from the Linux formula: $0.0065 / vCPU-hr + $0.00125 / GB-hr. Any vCPU:RAM combination in between is priced the same way. On-demand is 1.5× the in-plan rate. All usage bills by the second; paused machines are not billed.

Get started

Give your AI agents somewhere to run today.

Your agents get their own machines on Linux today, Windows and Android in preview, macOS VMs and iOS simulators on request, and you stop paying for idle.

Private beta · request access