AI Agent News/stories/e2b-cli-2-24-0-moves-requests-to-login-tokens-and-adds-project-commands.md

Infrastructure

E2B CLI 2.24.0 moves requests to login tokens and adds project commands

E2B has released version 2.24.0 of its @e2b/cli package, which now authenticates each request with the access token from a login instead of a stored API key. The release also adds workspace and project commands, resizable template support and stricter validation of options and arguments.

Source: github.com/e2b-dev/E2B/releases/tag/%40e2b%2Fcli%402.24.0

The CLI sends each request with the access token from e2b auth login and refreshes that token automatically before it expires, including during long-running commands such as sandbox logs --follow. The project API key in ~/.e2b/config.json is no longer used or written. E2B_API_KEY still works and takes precedence, which keeps it available for CI/CD and other non-interactive use.

A new E2B_ACCESS_TOKEN variable authenticates the CLI with an OAuth access token where there is no login, but it must be paired with E2B_PROJECT_ID, and setting both credentials is refused. New e2b workspace list, e2b project list, e2b project use and e2b project info commands select the project. Template list output with -f json now prints TemplateInfo objects with different field names, which is a breaking change.

Options and arguments are now validated with zod, so values such as a non-numeric --limit fail before the command runs. Commands also reject unexpected extra positional arguments after the upgrade to commander v15. Templates can be built with maxCpuCount, and each sandbox can pick its own cpuCount on create.

Why it matters if you build agents

Scripts that parse e2b template list -f json need updating because the field names changed. CI jobs should use E2B_ACCESS_TOKEN with E2B_PROJECT_ID, or E2B_API_KEY, and anyone who downgrades the CLI must run e2b auth login again. Commands that previously ignored stray arguments or malformed flags will now return errors.

Get stories like this every weekday

One short email with the day's agent tooling news.

Subscribe