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
| Framework | Package | Notes |
|---|---|---|
| CrewAI | crewai-tools[e2b] | Takes domain=. E2BPythonTool uses code-interpreter-v1. |
| LangChain Deep Agents | langchain-e2b | Pass your own Sandbox.create(...), or let the provider create one; it reads E2B_TEMPLATE. |
| OpenAI Agents SDK | openai-agents[e2b], @openai/agents-extensions | Pauses sandboxes at their timeout by default; they resume when used again. |
| Agno | agno, e2b_code_interpreter | sandbox_options passes domain. |
| smolagents | smolagents[e2b] | executor_type="e2b"; executor_kwargs passes domain. |
| Mastra | @mastra/e2b, @mastra/e2b-desktop | Set 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-sandbox | Takes domain. |
| Pydantic AI | pydantic-ai-harness[e2b] | Pauses sandboxes at their timeout. Takes client=E2B(domain=...). |
| Google ADK | google-adk[e2b] | Uses base by default. |
| Haystack | e2b-haystack | Uses base by default. |
| AG2 | ag2 | create_options passes domain. |
| TanStack AI | @tanstack/ai-sandbox-e2b | Takes 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 withSandbox.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).