mirage-core implementation.
Create the sandbox from a template, then connect by ID. Details:
Python · TypeScript.
- Python SDK
- TypeScript SDK
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Connect either Mirage SDK to an existing E2B sandbox.
mirage-core implementation.
Create the sandbox from a template, then connect by ID. Details:
Python · TypeScript.
pip install 'mirage-ai[e2b]'
from mirage.runtime.sandbox.e2b import E2BRuntime
runtime = E2BRuntime(captures=["python3"], config={"sandbox_id": "sandbox-id"})
pnpm add e2b
import { E2BRuntime } from '@struktoai/mirage-node'
const runtime = new E2BRuntime({
captures: ['python3'],
config: { sandboxId: 'sandbox-id' },
})
@struktoai/mirage-browser/runtime/sandbox/e2b/runtime and supply apiKey.