Agent frameworks

Agent frameworks that create sandboxes with E2B's SDK run them on LumiCloud with the same two environment variables.

Set the domain and the key

shexport E2B_DOMAIN=lumicloud.dev
export E2B_API_KEY=<your LumiCloud key>

The frameworks below create sandboxes with E2B's SDK and set no domain of their own, so the SDK takes it from E2B_DOMAIN. Set E2B_DOMAIN, not only E2B_API_URL: E2B_API_URL moves the API calls but not the traffic to the sandboxes. Some frameworks also take a domain option.

Frameworks

FrameworkPackageNotes
CrewAIcrewai-tools[e2b]Takes domain=. E2BPythonTool uses code-interpreter-v1.
LangChain Deep Agentslangchain-e2bPass your own Sandbox.create(...), or let the provider create one; it reads E2B_TEMPLATE.
OpenAI Agents SDKopenai-agents[e2b], @openai/agents-extensionsPauses sandboxes at their timeout by default; they resume when used again.
Agnoagno, e2b_code_interpretersandbox_options passes domain.
smolagentssmolagents[e2b]executor_type="e2b"; executor_kwargs passes domain.
Mastra@mastra/e2b, @mastra/e2b-desktopSet template: 'base': without one it builds a template of its own, which needs Pro. The desktop one uses the desktop template.
Vercel AI SDK@e2b/ai-sdk-sandboxTakes domain.
Pydantic AIpydantic-ai-harness[e2b]Pauses sandboxes at their timeout. Takes client=E2B(domain=...).
Google ADKgoogle-adk[e2b]Uses base by default.
Haystacke2b-haystackUses base by default.
AG2ag2create_options passes domain.
TanStack AI@tanstack/ai-sandbox-e2bTakes domain.

Most of them use the public template base or code-interpreter-v1 unless you name another. Read each framework's own docs for its tools and options.

What they use from the SDK

Beyond creating sandboxes and running code, these frameworks use the features below. Each was checked against LumiCloud with E2B's Python SDK 2.64.0.

  • Pause at the timeout instead of ending (lifecycle={"on_timeout": "pause"}), and resume with Sandbox.connect, files and memory kept.
  • Resume when a request reaches a paused sandbox's port (auto_resume).
  • Metadata on create, and listing sandboxes by metadata and state.
  • Snapshots: create_snapshot, and new sandboxes from a snapshot.
  • Sandboxes without internet access (allow_internet_access=False).
NextMCP server →