THE WORKSPACE FOR WHAT’S NEXT
Isolated computers
for every agent.
Build, run, preview, snapshot, and recover untrusted code with durable operations.
A dedicated computer. A world of possibilities.
agent.tsTypeScript SDK
const created = await client.sandboxes.create(
projectId,
{
snapshotId,
resources: { cpuMillis: 2000, memoryMib: 4096, diskMib: 8192 },
},
{ idempotencyKey: "agent-create-1" },
);
const sandbox = await client.sandboxes.waitUntilReady(
created.resource.id, { operationId: created.operation.id },
);
const result = await client.sandboxes.exec(
sandbox.id,
{ argv: ["/bin/echo", "Hello, agent."] },
{ idempotencyKey: "agent-exec-1" },
);
console.log(new TextDecoder().decode(result.stdout));TerminalExample output
$ echo "Hello, agent." Hello, agent. ✓ Process exited with code 0
- Isolation
- microVM
- CPU
- 2 vCPU
- Memory
- 4 GiB
- Workspace
- /workspace
Operations timeline
Durable operations with clear lifecycle states.