Integration

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.

Ask it in chat

Say what should happen.
The workflow builds itself.

When this happens, do that in E2B.Built from the 22 E2B tools below, on the connection you add once.

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.

Each badge shows the default agent permission of an endpoint (allowed: an agent calls it without asking; ask first: you are asked before an agent calls it, when the agent or chat asks permission for sensitive actions; never: no agent may call it), which every user can change endpoint by endpoint in their credential settings.

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 sandboxPOSTAgents: ask firstConnects to a sandbox, resuming it if paused, and extending its TTL.
  • create_sandboxCreate sandboxPOSTAgents: ask firstCreates a new isolated sandbox environment for running code securely.
  • get_batch_sandbox_metricsGet batch sandbox metricsGETAgents: ask firstRetrieves metrics for multiple sandboxes in a single request.
  • get_sandboxGet sandboxGETAgents: ask firstRetrieves details and current status of a sandbox.
  • get_sandbox_logsGet sandbox logsGETAgents: ask firstRetrieves logs from a sandbox (deprecated, use get_sandbox_logs_v2).
  • get_sandbox_logs_v2Get sandbox logs v2GETAgents: ask firstRetrieves logs from a sandbox with advanced filtering (v2).
  • get_sandbox_metricsGet sandbox metricsGETAgents: ask firstRetrieves resource usage metrics for a sandbox.
  • kill_sandboxKill sandboxDELETEAgents: ask firstImmediately terminates a running sandbox and frees resources.
  • list_sandboxesList sandboxesGETAgents: ask firstLists all running sandboxes for the authenticated team.
  • list_sandboxes_v2List sandboxes v2GETAgents: ask firstLists all sandboxes with pagination and state filtering (v2).
  • pause_sandboxPause sandboxPOSTAgents: ask firstPauses a sandbox, preserving its state for later resumption.
  • refresh_sandboxRefresh sandboxPOSTAgents: ask firstRefreshes a sandbox, extending its time to live.
  • set_sandbox_timeoutSet sandbox timeoutPOSTAgents: ask firstSets or updates the timeout duration for a running sandbox.

Volume, 4 operations

  • create_volumeCreate volumePOSTAgents: ask firstCreates a new persistent volume.
  • delete_volumeDelete volumeDELETEAgents: ask firstDeletes a persistent volume permanently.
  • get_volumeGet volumeGETAgents: ask firstRetrieves details of a persistent volume.
  • list_volumesList volumesGETAgents: ask firstLists all persistent volumes for the team.

Template, 3 operations

  • delete_templateDelete templateDELETEAgents: ask firstDeletes a sandbox template permanently.
  • get_templateGet templateGETAgents: ask firstRetrieves template details and build history.
  • list_templatesList templatesGETAgents: ask firstLists all available sandbox templates.

Snapshot, 2 operations

  • create_snapshotCreate snapshotPOSTAgents: ask firstCreates a persistent snapshot from a running sandbox.
  • list_snapshotsList snapshotsGETAgents: ask firstLists 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 Code
claude mcp add --transport http livecontext https://livecontext.ai/mcp --header "X-API-Key: YOUR_API_KEY"
Codex (~/.codex/config.toml)
[mcp_servers.livecontext]
url = "https://livecontext.ai/mcp"

[mcp_servers.livecontext.http_headers]
"X-API-Key" = "YOUR_API_KEY"
Cursor, Claude Desktop and other JSON configs
{
  "mcpServers": {
    "livecontext": {
      "type": "http",
      "url": "https://livecontext.ai/mcp",
      "headers": {
        "X-API-Key": "YOUR_API_KEY"
      }
    }
  }
}

Set up the MCP server step by step

How to connect E2B

  1. Create your workspace

    Sign up free. Nothing to install.

  2. 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.

  3. 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.

Popular integrations

Browse the whole catalog