- 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
Sandbox.createas shown below:
Getting started
API key
Authenticate the E2B SDKs and CLI with your API key. Set E2B_API_KEY as an environment variable or pass the key to Sandbox.create, and find it in the console.
To use the API key, you can either:
Was this page helpful?