Skip to main content

At a glance

Credentials

Set these per environment. See Connect an integration.

Setup

  1. Create an E2B account: Sign up at https://e2b.dev - the free hobby tier includes sandbox usage credits, so no payment method is needed to test.
  2. Get an API key: Open the E2B Dashboard (https://e2b.dev/dashboard), go to the Keys tab, and copy your API key (starts with e2b_) or create a new one.
  3. Set the environment variable: Copy the key into your .env as E2B_API_KEY.
  4. Verify access: Run List Templates and List Sandboxes to confirm the key works.
  • The platform REST API is served on https://api.e2b.app and authenticates with the X-API-Key header
  • Sandboxes are killed automatically when their timeout (TTL) elapses unless autoPause is set
  • Running sandboxes consume billable compute - kill sandboxes you no longer need
  • Code execution, filesystem, and process control inside a sandbox are SDK-first (served per sandbox on {port}-{sandboxID}.e2b.app) and are not covered by these platform tools
Provider API reference: https://e2b.dev/docs/api-reference

Tools

Example prompts

  • List my running E2B sandboxes with their template, state, and expiry time.
  • Create a new E2B sandbox from the base template with a 5 minute timeout and show me its ID.
  • List my running E2B sandboxes and kill any that I confirm are no longer needed.