Skip to main content
You are currently viewing documentation for version 2.60.0 of the E2B SDK (JavaScript).View the latest version of this page.

E2B

E2B client with an explicitly bound connection configuration. The resources exposed by the client (E2B.Sandbox, E2B.Volume, E2B.Template, E2B.Secret) behave exactly like the top-level Sandbox / Volume / Template / Secret exports, except the options passed to the client are used as the defaults instead of the environment variables. Per-call options still take precedence over the client’s options. Multiple clients are fully isolated from each other and from the top-level env-configured exports.

Example

Constructors

Create a new client with the connection options bound to it.
Parameters
Returns
E2B

Properties

Type Aliases

E2BClientOpts

Connection options bound to an E2B client. Same as ConnectionOpts without signal, which cancels a single request and therefore can only be passed per call.