Overview

API key

  1. Open the E2B Console.
  2. Copy a key from the Keys tab.
  3. Expose it as the E2B_API_KEY environment 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.

Next#

Updated

Was this page helpful?