E2B_ACCESS_TOKEN is being deprecated for security reasons. This was announced on June 22, 2026. Switch to E2B_API_KEY before the dates below.
- July 1, 2026: you can no longer generate new access tokens in the dashboard. Existing tokens keep working until August 1.
- August 1, 2026: all access tokens stop working. After this date, any request authenticated with an access token will fail.
E2B_API_KEY alone, so it no longer needs the access token. August 1 is the date when the infrastructure stops accepting the token entirely. In practice the migration is removing a now-redundant environment variable, and upgrading the CLI if you are on an older version.
Who is affected
This affects anyone who authenticates the E2B CLI by setting theE2B_ACCESS_TOKEN environment variable. CI/CD pipelines are the most common case, but the same applies to servers, containers, and local scripts. The E2B SDKs authenticate with API keys, so SDK users are unaffected.
The interactive login commands e2b auth login and e2b auth configure set up your local workstation. They are outside the scope of this change.
Migrate your CLI authentication
First, get an API key. You can find it in the dashboard keys tab. It is the same key you use with the SDKs. Next, set a single environment variable wherever you run the CLI and remove the access token. Use CLI version 2.12.1 or later (latest recommended).Terminal
e2b auth login.
Terminal
E2B_ACCESS_TOKEN line. It is no longer needed.
Terminal