E2B provides hosted micro-VM sandboxes purpose-built for executing AI-generated code. Phoenix uses E2B as a hosted backend for Python code evaluators, giving each invocation a fresh VM with kernel-level isolation, runtime dependency installation, and opt-in outbound network access — without exposing the rest of your deployment.
Configure#
- Sign up at e2b.dev and create an API key.
- Add it as
E2B_API_KEYfrom Settings → Sandboxes.
See Settings → Sandboxes → E2B for full configuration details and Sandbox Backends for self-hosting setup.

