Sandbox.list()
import { Sandbox } from '@e2b/code-interpreter' // Create sandbox with metadata. const sandbox = await Sandbox.create({ metadata: { userId: '123', }, }) // List running sandboxes and access metadata. const runningSandboxes = await Sandbox.list() console.log(runningSandboxes[0].metadata) // Example output: // { userId: '123' }
Was this page helpful?