Sandbox

Default Sandbox

Let eve select the sandbox provider for the current environment.

DefaultSandbox.environment() preserves eve's standard behavior without exposing provider-specific live creation options.

import { DefaultSandbox, defineSandbox } from "eve/sandbox";

export const environment = DefaultSandbox.environment();
export default defineSandbox(() => environment.open());

On Vercel, it selects Vercel Sandbox. Elsewhere, it tries Docker, microsandbox, and just-bash, in that order, according to host support.

Use a provider directly when you need its image, VM, network, compute, or mount options.