Your AI team, working in E2B

Open-source Code Interpreting for AI Apps. Run sandboxed code execution environments with support for multiple programming languages.

Start your company

What your team can do in E2B

59 tools to work with, connected with an API key.

Assign Template Tags

Assign tags to an existing E2B template build identified by a name:tag target. Requires a team API key or supported bearer authentication with team context. Returns the assigned tags and their build ID; this operation is not paginated.

Check API HealthReads only

Tool to check the health status of the E2B API. Use when you need to verify that the API service is operational and accessible.

Check Template AliasReads only

Check whether an E2B template alias exists and return its template ID and visibility. Requires a template alias and a team API key or supported bearer authentication with team context. A missing alias raises an HTTP 404 error. This lookup is unpaginated.

Check Template TagReads only

Check whether an E2B template tag has at least one ready build. Requires a template ID, a nonempty tag name, and a team API key or supported bearer authentication with team context. Returns the existence flag and normalized tag name. A missing template or a template belonging to another team raises HTTP 404. This lookup is unpaginated.

Connect to Sandbox

Tool to connect to an existing E2B sandbox and retrieve its details. Use when you need to reconnect to a sandbox from different environments or resume a paused sandbox. The TTL is extended upon connection.

Connect to Sandbox (V2)

Connect to an existing E2B sandbox and return its details, resuming it if paused. Requires an existing sandbox and API-key or provider-supported bearer/team authentication. TTL is only extended; omitted timeout defaults to 300 seconds on the provider.

Count Template TagsReads only

Count distinct tags of an E2B template that have at least one ready build. Requires a template ID and a team API key or supported bearer authentication with team context. Returns the total, including zero. A template that does not exist or belongs to another team raises an HTTP 404 error.

Create Sandbox

Tool to create a new E2B sandbox from a template. Use when you need to launch a fresh sandbox environment for code execution, testing, or development purposes.

Create Sandbox Snapshot

Create a persistent snapshot from an existing E2B sandbox's current state. Snapshots outlive the source sandbox and can be used to create new sandboxes. The source keeps running. Requires access to the source sandbox through an API key or supported bearer authentication with team context.

Create Secured Sandbox (V2)

Create a sandbox from a template using POST /v2/sandboxes. Requires a template whose envd supports secured access and an API key or provider bearer with team authentication. All system communication is secured. Supports optional team-scoped idempotency for retries; conflicting or unknown outcomes raise errors.

Create Template

Tool to create a new E2B template with specified configuration. Use when you need to define a new sandbox template that can be used to spawn sandbox environments.

Create Volume

Create a new E2B team volume and return its identifier and content access token. Requires an API key or supported bearer authentication with team context. For BYOC teams, the response also supplies the volume content destination domain.

Create Webhook

Tool to register a new webhook to receive sandbox lifecycle events for the team. Use when you need to set up notifications for sandbox lifecycle events such as creation, updates, or termination.

Delete Sandbox

Tool to terminate and permanently delete a running E2B sandbox instance. Use when you need to kill a sandbox that is no longer needed. Once terminated, the sandbox cannot be resumed.

Delete Template

Permanently delete an E2B template that is no longer needed. The template cannot be deleted while running or paused sandboxes use it.

Delete Template Tags

Delete multiple tags from a named E2B template. Requires an existing template and a project API key or supported bearer authentication with team context. Returns success after an empty 204 response.

Delete Volume

Delete an existing E2B team volume by its identifier. Requires access to the volume's team through an API key or supported bearer authentication with team context. Returns success after an empty 204 response.

Delete Webhook

Tool to unregister a webhook and stop receiving lifecycle events. Use when you need to remove a webhook that is no longer needed or to clean up webhook registrations.

Fork Sandbox

Fork a running E2B sandbox by briefly pausing it, taking a full-memory snapshot, and resuming it with its ID and expiration unchanged. Create 1–100 new sandboxes from that snapshot. Requires an existing running sandbox and API-key auth or provider bearer auth with a team header. Inspect every fork's sandbox or error: HTTP 201 can include individual failures. A non-201 error means the request failed before any forks were attempted. No pagination.

Get SandboxReads only

Tool to retrieve detailed information about a specific sandbox by its ID. Use when you need to check sandbox status, metadata, or configuration details.

Get Sandbox Lifecycle EventsReads only

Retrieve lifecycle events for a specific sandbox, with pagination and sort options. The response accepts creation, update, and termination event types; other event types fail response validation.

Get Sandbox LogsReads only

Tool to retrieve logs from a specific E2B sandbox instance. Use when you need to debug or monitor sandbox execution by viewing its console output and system logs.

Get Sandbox Logs V2Reads only

Retrieve structured logs for an existing E2B sandbox using the v2 API. Requires the sandbox ID and API-key or supported bearer/team authentication. Filter by minimum level or case-sensitive message substring. Use cursor (a timestamp in milliseconds), limit, and direction to retrieve a window of logs; the response contains logs without a continuation token.

Get Sandbox MetricsReads only

Tool to retrieve timestamped CPU, memory, and disk usage metrics for a sandbox. Use when you need to monitor resource usage of a running sandbox. Metrics are collected every 5 seconds; returns empty array if no metrics available yet.

Get SecretReads only

Get an existing secret's metadata by identifier or canonical lower-case name. Never returns the stored secret value. Requires a project API key or supported bearer authentication with team context. Returns one secret, without pagination.

Get Team Maximum MetricsReads only

Tool to retrieve the maximum value for a specific team metric in a given interval. Use when you need to check team limits or peak usage, such as maximum concurrent sandboxes allowed or highest resource usage.

Get Team MetricsReads only

Retrieve timestamped team metrics, including concurrent sandbox counts and sandbox start rates, with optional time bounds.

Get Template Build LogsReads only

Retrieve structured logs for an existing E2B template build. Requires template and build IDs and API-key or supported bearer/team authentication. Filter by level and source. Use cursor (a timestamp in milliseconds), limit, and direction to retrieve a window of logs; the response contains logs without a continuation token.

Get Template Build StatusReads only

Tool to get the status of a template build. Use when you need to check the build status of a template that was started asynchronously. Useful in polling loops to monitor template builds in progress.

Get Template FilesReads only

Tool to get an upload link for a tar file containing build layer files. Use when you need to retrieve or download template build layer files by their hash.

Get VolumeReads only

Get a team volume's ID, name, content auth token and optional BYOC domain. Requires an existing volume ID and a team API key or supported bearer authentication with team context.

Get Webhook ConfigurationReads only

Tool to retrieve the current webhook configuration for a specific webhook. Use when you need to inspect webhook settings, verify configuration, or check webhook status.

Get Webhook StatsReads only

Get aggregate delivery counts, failures, durations, and time buckets for an existing webhook. Requires a team API key or supported bearer authentication with team context. Optionally select an inclusive start and exclusive end; the provider defaults to the last 24 hours. Returns the aggregate statistics without pagination.

List All SandboxesReads only

List team sandboxes with state and metadata filters, a page size, and an optional pagination token. The response contains sandbox information but does not expose a next-page token.

List All TemplatesReads only

Tool to list all available E2B templates for your team. Use when you need to view available templates, retrieve template identifiers, or audit template configurations.

List All WebhooksReads only

Tool to retrieve all registered webhooks for your team. Use when you need to view all webhook configurations, audit webhook settings, or manage multiple webhooks.

List API KeysReads only

List all API keys for the selected team, including masked key details. Requires bearer authorization and X-Team-ID team context. Team API key authentication is not supported. Returns one unpaginated list; raw API key values are not returned.

List Default TemplatesReads only

List platform default templates, ordered by template ID, excluding deleted templates. Non-public templates are visible only to their own team and admin callers. Build resources and envd version describe the newest ready build tagged default; buildStatus describes the newest default-tagged build in any state. Usage fields are reported only for the caller's own templates and admin callers. Supports API key or supported bearer/admin authentication. Returns an unpaginated list.

List Sandboxes MetricsReads only

Retrieve timestamped CPU, memory, and disk usage metrics for multiple sandboxes, keyed by sandbox ID. Metrics are collected every 5 seconds; the metrics mapping may be empty when no metrics are available yet.

List Sandboxes V2Reads only

List a page of team sandboxes using GET /v2/sandboxes with optional filters. Requires a team API key or supported bearer authentication with team context. Pass the returned nextToken to fetch the next page; no token means no more pages.

List SecretsReads only

List a page of the project's secret metadata, without stored secret values. Requires a team API key or supported bearer authentication with team context. Pass the returned nextToken to fetch the next page; no token means no more pages.

List SnapshotsReads only

List a page of team snapshots, optionally filtered by source sandbox or name. Requires a team API key or supported bearer authentication with team context. Pass the returned nextToken to fetch the next page; no token means no more pages.

List Team Sandbox Lifecycle EventsReads only

Tool to retrieve the latest lifecycle events across all sandboxes associated with the team. Use when you need to monitor sandbox activity, track lifecycle changes, or audit sandbox operations.

List TeamsReads only

List all teams for the authenticated user, including their API keys. Requires auth-provider bearer authorization; API key authentication is not supported. X-Team-ID is not required. Returns all teams in one unpaginated list.

List Template BuildsReads only

List a page of builds for an existing E2B template, including template metadata. Requires the template ID and a team API key or supported bearer authentication with team context. Pass the returned nextToken to retrieve the next page.

List Template Tag AssignmentsReads only

List one page of ready build assignments for an E2B template tag, newest first. Requires a template ID, tag name, and a team API key or supported bearer authentication with team context. Pass nextCursor as cursor for the next page; null means there are no more pages. Returns HTTP 404 when the template does not exist or belongs to another team.

List Template Tag GroupsReads only

List a page of E2B template tags with their most recent ready assignments. Requires a template ID and a team API key or supported bearer authentication with team context. Only tags with at least one ready build are listed. Pass nextCursor as tagsCursor with the same sort to continue keyset pagination over tags; null ends pagination. Each tag's hasMore describes additional assignments, not additional tag pages. Missing templates or another team's templates return 404.

List Template TagsReads only

List all tags for an existing E2B template, including build IDs and assignment times. Requires the template ID and a team API key or supported bearer authentication with team context. Returns all tags in a single, unpaginated response.

List Templates V2Reads only

List a page of E2B templates using GET /v2/templates, optionally selecting a team. Requires a team API key or supported bearer authentication with team context. Pass the returned nextToken to fetch the next page; no token means no more pages.

List VolumesReads only

List all volumes belonging to the authenticated team. Requires a team API key or supported bearer authentication with team context. Returns the volume IDs and names in a single, unpaginated response.

List Webhook DeliveriesReads only

List a page of delivery attempts for an existing team webhook, grouped by event. Requires a team API key or supported bearer authentication with team context. Filter by time, status, or event type. Pass the returned nextCursor as cursor to fetch the next page; a null nextCursor means no more pages.

Pause Sandbox

Tool to pause a running E2B sandbox preserving its filesystem and memory state. Use when you need to temporarily suspend a sandbox while maintaining its state for later resumption. Takes approximately 4 seconds per 1 GiB of RAM to pause. Paused sandboxes can be stored for up to 30 days.

Refresh Sandbox

Tool to refresh an E2B sandbox and extend its time to live. Use when you need to keep a sandbox alive longer and prevent it from timing out.

Set Sandbox Timeout

Tool to set the timeout for an E2B sandbox. Use when you need to extend or reduce the sandbox lifetime. The timeout is measured from the current time, and calling this multiple times overwrites the previous TTL.

Start Template Build

Start a build for an E2B template with specific configuration. The tool returns a success flag and message for a successful build-start response.

Update Sandbox Network

Replace the network configuration of a running E2B sandbox. Omitting a field clears it; omitting dnsServers resets the default nameserver. Requires access to the running sandbox via an API key or supported bearer authentication with team context. Returns success after a 204 response.

Update Template

Update an E2B template's public or private visibility by template ID. Public templates can be used by anyone, while private templates are restricted to the team.

Update Template (V2)

Update an existing E2B template's public or team-only visibility using the v2 API and return its names. Requires a template ID and API-key or provider-supported bearer/team authentication.

Update Webhook Configuration

Tool to update an existing webhook configuration including URL, enabled status, and subscribed events. Use when you need to modify webhook settings, change the destination URL, enable/disable a webhook, or update event subscriptions.

More in Developer tools

See them all β†’

Your company, run by an AI team

Start your company

BRAINER

Continue to B.R.A.I.N.E.R.

Continue with Google or your email.

or