- Set the API key as the
E2B_API_KEYenvironment variable to avoid passing it each time you create a sandbox. - Or pass it directly to the
Sandboxconstructor as shown below:
Getting started
API key
To use the API key, you can either: