FabricFabricHarness
EcosystemSandboxes

E2B

Adapt an E2B sandbox to Fabric shell and filesystem operations.

pnpm add @fabric-harness/connectors @e2b/code-interpreter
fh add e2b
import { Sandbox } from '@e2b/code-interpreter';
import { e2bSandbox } from '@fabric-harness/connectors';

const remote = await Sandbox.create({ apiKey: process.env.E2B_API_KEY });
const fabric = await init({
  sandbox: e2bSandbox(remote, { cleanup: true }),
});

The structural adapter maps E2B command and file APIs, including pause/resume when present. { cleanup: true } invokes the provider's conventional termination method when Fabric disposes the sandbox.

Run the connector live suite with FABRIC_E2B_TEST=1 and E2B_API_KEY before promoting an SDK version or template change.