one interfaceTypeScript
await withSandbox({
provider: e2b(),
}, async (sandbox) => {
const result = await sandbox.run(
"pnpm test",
);
}); same API, native runtime
Run commands, stream processes, move files, and expose ports through one typed interface.
The contract stays put
Sandbox SDK gives every provider the same small, typed vocabulary while preserving the native SDK underneath.
await withSandbox({
provider: e2b(),
}, async (sandbox) => {
const result = await sandbox.run(
"pnpm test",
);
});Change one line.
Real exit codes, byte streams, abort signals, and idempotent cleanup.
Read, write, seed, resolve, and remove paths across every runtime.
Expose ports, inspect capabilities, and keep lifecycle ownership explicit.