> ## Documentation Index
> Fetch the complete documentation index at: https://docs.e2b.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Client

## E2BClientParams

```python theme={"theme":{"light":"github-light","dark":"github-dark-default"}}
class E2BClientParams(ApiParams)
```

Params bound to an :class:`E2B` client, used as the defaults for every
call made through its resource classes. Same shape as :class:`ApiParams`.

## E2B

```python theme={"theme":{"light":"github-light","dark":"github-dark-default"}}
class E2B()
```

E2B client with an explicitly bound connection configuration.

The resource classes exposed by the client (`Sandbox`, `AsyncSandbox`,
`Volume`, `AsyncVolume`, `Template`, `AsyncTemplate`, `Secret`,
`AsyncSecret`) behave exactly like the top-level exports of the same name,
except the params passed to the client are used as the defaults instead of
the environment variables.
Per-call params still take precedence over the client's params.

Multiple clients are fully isolated from each other and from the top-level
env-configured exports.

**Example**:

```python theme={"theme":{"light":"github-light","dark":"github-dark-default"}}
from e2b import E2B

client = E2B(api_key="e2b_...", domain="e2b.dev")

sandbox = client.Sandbox.create()
volumes = client.Volume.list()
exists = client.Template.exists("my-template")
```

### \_\_init\_\_

```python theme={"theme":{"light":"github-light","dark":"github-dark-default"}}
def __init__(**opts: Unpack[E2BClientParams])
```

Create a new client with the API params bound to it.

**Arguments**:

* `opts`: API params used as the defaults for every call made
  through this client's resource classes.
