# E2B





<DocImage src="features/sandbox/e2b-settings" alt="Settings → Sandbox showing the E2B tab with the Default and Pro sizes" width="1792" height="840" />

[E2B](https://e2b.dev) is a sandbox platform built for AI agents. Each project runs in its own isolated cloud machine on your E2B account, where the agent can install packages, run your app and test changes safely.

## Why E2B? [#why-e2b]

<Cards>
  <Card title="Open Source" icon="<FaGithub />" description="E2B's platform is open source and can be self-hosted." />

  <Card title="Isolated by Design" icon="<Lock />" description="Every sandbox is its own lightweight virtual machine, kept apart from every other sandbox." />

  <Card title="Compliance" icon="<ShieldCheck />" description="SOC 2 Type II compliant, with HIPAA available on request." />

  <Card title="Transparent Billing" icon="<MdOutlineAttachMoney />" description="Usage shows up in your E2B dashboard, billed by E2B with no markup." />
</Cards>

## Sizes [#sizes]

| Size        | CPU    | RAM  | Price    | Best For                     |
| ----------- | ------ | ---- | -------- | ---------------------------- |
| **Default** | 4 vCPU | 4 GB | $0.27/hr | Most apps                    |
| **Pro**     | 8 vCPU | 8 GB | $0.53/hr | Heavy builds and test suites |

Start on **Default**. Move to **Pro** if installs, builds or tests feel slow.

<Callout type="info">
  New E2B accounts get $100 in free credits.
</Callout>

## Connect Your Key [#connect-your-key]

<Steps>
  <Step>
    Open 

    **Settings → Sandbox**

     and select the 

    **E2B**

     tab.
  </Step>

  <Step>
    Click **Connect**, then **Get API key** to create one in E2B.
  </Step>

  <Step>
    Paste the key (it starts with 

    `e2b_`

    ) and save.
  </Step>
</Steps>

## Use E2B for Your Projects [#use-e2b-for-your-projects]

* **New projects:** on the home page, open **Settings → Sandbox**, pick a size on the E2B tab and save. New projects start on E2B.
* **An existing project:** open **Settings → Sandbox** inside it, pick a size on the E2B tab and click **Switch**.

<Callout type="info">
  Out of E2B credits? You can switch the project to Boat from the error
  screen. See [When a Provider Stops
  Working](/docs/features/sandbox#when-a-provider-stops-working).
</Callout>

## FAQ [#faq]

<Accordions>
  <Accordion title="My key is invalid or expired">
    Create a new key in E2B, then disconnect E2B in Ideavo and connect the new
    key. If E2B is your default and Boat is also connected, make Boat the
    default from the home page first.
  </Accordion>

  <Accordion title="`&#x22;E2B team is blocked&#x22;`">
    Add or update the payment method in your E2B account.
  </Accordion>

  <Accordion title="Can I use E2B and Boat together?">
    Yes. Connect both, then choose a provider per project.
  </Accordion>

  <Accordion title="Where do I see my usage?">
    In your [E2B dashboard](https://e2b.dev/dashboard). E2B bills you directly.
  </Accordion>
</Accordions>
