Open-source sandbox cloud giving AI agents isolated machines, with a REST API and CLI.

CLIAPI

What your agent can do

  • Complete E2B developer API.

    Via API.

  • sign in through your browser

    Via CLI.

Tasks depend on the interface and permissions.

Connection methods

Choose a route that fits your agent.

CLI connection
CLI package
e2b

Authentication
export E2B_API_KEY=your_api_key_here
API connection

Documentation & experience

  • 2 of 2 connection paths checked
  • Latest documentation check 7 Oct 2026
View sources and checks
How documentation is checked