Skip to main content
To use the API key, you can either:
  • Set the API key as the E2B_API_KEY environment variable to avoid passing it each time you create a sandbox.
  • Or pass it directly to the Sandbox constructor as shown below:

Where to find API key

You can get your API key at dashboard. The same API key authenticates both the SDKs and the CLI.