API key
- Open the E2B Console.
- Copy a key from the Keys tab.
- Expose it as the
E2B_API_KEYenvironment variable.
E2B_API_KEY=e2b_***The JavaScript and Python SDKs read E2B_API_KEY automatically, so Sandbox.create() needs no arguments once it is set.
E2B_ACCESS_TOKEN no longer works
Access tokens were disabled on August 1, 2026. Builds and CLI commands authenticate with E2B_API_KEY only. If a script or CI job still exports E2B_ACCESS_TOKEN, see Migrating to the V2 build system.