# E2B integration

> Open-source secure sandboxes for AI code execution — create, manage, and observe isolated compute environments via REST API.

- Authentication: apiKey

## Tools (27)

- **Connect to Sandbox**: Reconnect to an existing sandbox; resumes it if paused and extends the TTL.
- **Create Sandbox**: Create a new sandbox from a template with optional env vars, metadata, and timeout.
- **Create Template**: Create a new sandbox template definition with CPU/memory configuration; build is started separately.
- **Create Webhook**: Register a webhook to receive sandbox lifecycle event notifications.
- **Delete Template**: Permanently delete a template and all of its builds.
- **Delete Webhook**: Unregister a webhook so it no longer receives sandbox lifecycle events.
- **Get Sandbox**: Get detailed information about a specific sandbox by ID, including state and resource allocation.
- **Get Sandbox Lifecycle Events**: Retrieve the latest lifecycle events (created/updated/paused/resumed/killed) for a sandbox.
- **Get Sandbox Logs**: Retrieve console output and system logs from a specific sandbox.
- **Get Sandbox Metrics**: Retrieve timestamped CPU, memory, and disk usage for a sandbox (5s granularity).
- **Get Team Maximum Metrics**: Get the maximum value of a team metric (e.g. concurrency limit) over an optional time window.
- **Get Team Metrics**: Retrieve timestamped CPU, memory, and disk usage aggregated across all sandboxes for a team.
- **Get Webhook**: Retrieve the configuration of a specific webhook.
- **Health Check**: Check whether the E2B control plane is healthy and reachable with the current API key.
- **Kill Sandbox**: Terminate and permanently delete a sandbox. Cannot be undone — use Pause to preserve state.
- **List Sandboxes**: List all running and paused sandboxes for the team, with optional state and metadata filters.
- **List Sandboxes Metrics**: Batch-fetch CPU, memory, and disk metrics for multiple sandboxes in one request.
- **List Team Sandbox Lifecycle Events**: Retrieve recent lifecycle events across all sandboxes for the team — useful for audit and dashboards.
- **List Templates**: List all templates available to the team, including public templates and team-owned templates.
- **List Webhooks**: List all webhooks registered for the team.
- **Pause Sandbox**: Pause a running sandbox, snapshotting its filesystem and memory for later resumption (up to 30 days).
- **Refresh Sandbox**: Reset a sandbox's TTL to keep it alive; alternative to explicitly setting a timeout.
- **Resume Sandbox**: Resume a paused sandbox, restoring its filesystem and memory snapshot.
- **Set Sandbox Timeout**: Replace a sandbox's TTL with a new value measured from the current time.
- **Start Template Build**: Trigger an asynchronous build for a template using a base image or another template plus a list of steps.
- **Update Template**: Update a template's configuration; primary use is toggling public/private visibility.
- **Update Webhook**: Modify an existing webhook's URL, enabled state, or subscribed event types.

## Related prompts

- [Rescue paused E2B sandboxes before the 30-day cliff](https://www.generalinput.com/prompts/rescue-paused-e2b-sandboxes-before-the-30-day-cliff.md)
- [Compliance audit log for every E2B sandbox launch](https://www.generalinput.com/prompts/compliance-audit-log-for-every-e2b-sandbox-launch.md)
- [Weekly E2B sandbox cost and usage brief to Slack and Notion](https://www.generalinput.com/prompts/weekly-e2b-sandbox-cost-and-usage-brief-to-slack-and-notion.md)
- [Turn E2B sandbox crashes into Linear bugs in real time](https://www.generalinput.com/prompts/turn-e2b-sandbox-crashes-into-linear-bugs-in-real-time.md)
- [Auto-kill idle E2B sandboxes and post hourly Slack triage](https://www.generalinput.com/prompts/auto-kill-idle-e2b-sandboxes-and-post-hourly-slack-triage.md)

Connect E2B in General Input: https://www.generalinput.com/apps/e2b