Integrations
E2B's SDKs, agent frameworks, multi-provider SDKs and MCP clients run 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 tools 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 of them also take a domain option.
SDKs and templates
- E2B's Python and JavaScript SDKs and the Code Interpreter: see Quick start.
- E2B Desktop uses the desktop template: see Templates.
Agent 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. 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. |
| CAMEL-AI | camel-ai, e2b-code-interpreter<2 | E2BInterpreter reads E2B_DOMAIN. Needs E2B's Python SDK 1.x, as CAMEL-AI's own extras pin it. |
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.
Multi-provider SDKs
These put one interface over several sandbox providers. Choose their E2B provider; it reads the two variables above.
| SDK | Package | Notes |
|---|---|---|
| ComputeSDK | computesdk, @computesdk/e2b | Creates from base unless given templateId. Its size classes boot templates named csdk-node22-<cpu>cpu-<memory>gb, which you build on your account or replace with sizeTemplates. |
| sandboxes | cased-sandboxes, e2b | Sandbox.create(provider="e2b"); also a CLI. |
ComputeSDK:
tsimport { compute } from "computesdk"
import { e2b } from "@computesdk/e2b"
compute.setConfig({ provider: e2b({ apiKey: process.env.E2B_API_KEY }) })
const sandbox = await compute.instances.create()
const r = await sandbox.runCommand("node -v")
console.log(r.stdout)
await sandbox.destroy()sandboxes:
pythonimport asyncio
from sandboxes import Sandbox
async def main():
async with await Sandbox.create(provider="e2b") as sandbox:
r = await sandbox.execute("python3 -V")
print(r.stdout)
asyncio.run(main())LumiCloud's Benchmarks run ComputeSDK's open-source sandbox-tti workload every day.
MCP clients
Claude, Cursor and any other MCP client reach LumiCloud through the MCP server, with a LumiCloud API key.
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).