E2B integration
Cloud sandboxes for AI code execution. Run AI-generated code securely in isolated environments with full filesystem, terminal, and runtime support. Perfect for AI coding assistants, code interpreters, and automated development workflows.
Say what should happen.
The workflow builds itself.
Common E2B use cases
- Extend sandbox lifetime
- AI code execution
- Clean up resources
- Preserve work state
- Check sandbox status
- Check volume details
- Debug sandbox issues
- Continue previous work
- Monitor resource usage
- Clean up unused volumes
What you can do with E2B
Each of these is one operation on one endpoint, available both as a workflow step and as a tool an AI agent can call on its own. Nothing bundles several operations into one action, so what a run did stays readable afterwards.
Most endpoints run on the free plan. A few, mainly the ones that publish on your behalf, need a paid plan.
Sandbox, 13 operations
connect_sandboxConnect sandboxPOSTConnects to a sandbox, resuming it if paused, and extending its TTL.create_sandboxCreate sandboxPOSTCreates a new isolated sandbox environment for running code securely.get_batch_sandbox_metricsGet batch sandbox metricsGETRetrieves metrics for multiple sandboxes in a single request.get_sandboxGet sandboxGETRetrieves details and current status of a sandbox.get_sandbox_logsGet sandbox logsGETRetrieves logs from a sandbox (deprecated, use get_sandbox_logs_v2).get_sandbox_logs_v2Get sandbox logs v2GETRetrieves logs from a sandbox with advanced filtering (v2).get_sandbox_metricsGet sandbox metricsGETRetrieves resource usage metrics for a sandbox.kill_sandboxKill sandboxDELETEImmediately terminates a running sandbox and frees resources.list_sandboxesList sandboxesGETLists all running sandboxes for the authenticated team.list_sandboxes_v2List sandboxes v2GETLists all sandboxes with pagination and state filtering (v2).pause_sandboxPause sandboxPOSTPauses a sandbox, preserving its state for later resumption.refresh_sandboxRefresh sandboxPOSTRefreshes a sandbox, extending its time to live.set_sandbox_timeoutSet sandbox timeoutPOSTSets or updates the timeout duration for a running sandbox.
Volume, 4 operations
create_volumeCreate volumePOSTCreates a new persistent volume.delete_volumeDelete volumeDELETEDeletes a persistent volume permanently.get_volumeGet volumeGETRetrieves details of a persistent volume.list_volumesList volumesGETLists all persistent volumes for the team.
Template, 3 operations
delete_templateDelete templateDELETEDeletes a sandbox template permanently.get_templateGet templateGETRetrieves template details and build history.list_templatesList templatesGETLists all available sandbox templates.
Snapshot, 2 operations
create_snapshotCreate snapshotPOSTCreates a persistent snapshot from a running sandbox.list_snapshotsList snapshotsGETLists all snapshots for the team.
Use E2B from Claude Code, Cursor or Codex
Connect E2B in LiveContext, create an API key in Settings, then add the LiveContext MCP server to your client. Its E2B operations become tools the client can call, next to every other integration you connected.
claude mcp add --transport http livecontext https://livecontext.ai/mcp --header "X-API-Key: YOUR_API_KEY"[mcp_servers.livecontext]
url = "https://livecontext.ai/mcp"
[mcp_servers.livecontext.http_headers]
"X-API-Key" = "YOUR_API_KEY"{
"mcpServers": {
"livecontext": {
"type": "http",
"url": "https://livecontext.ai/mcp",
"headers": {
"X-API-Key": "YOUR_API_KEY"
}
}
}
}How to connect E2B
- Create your workspace
Sign up free. Nothing to install.
- Connect E2B once
Add your E2B connection in Settings. Every tool from this integration reuses it, and secrets are encrypted at rest and visible only to you.
- Describe the job in chat
The workflow builds itself in front of you and picks the endpoints it needs. Drag the steps yourself on the canvas whenever you would rather be explicit.
E2B integration FAQ
What can you do with the E2B integration?
LiveContext exposes 22 operations on E2B, covering sandbox, volume, template and snapshot. Common uses include Extend sandbox lifetime, AI code execution and Clean up resources.
