---
title: AutoGen Code Interpreter with E2B
description: "Check out a new AutoGen code interpreter where the LLM-generated code is executed in the cloud, using E2B sandbox."
date: 2024-02-19
author: tereza-tizkova
categories:
  - community
thumbnail: "./thumbnail.png"
thumbnailAlt: AutoGen Code Interpreter with E2B
---

Last week, our community contributor built an open-source [cookbook example](https://github.com/e2b-dev/e2b-cookbook) of a code interpreter using AutoGen agents.

<Video provider="youtube" id="iSJGqSJNVtg" url="https://www.youtube.com/embed/iSJGqSJNVtg" title="AutoGen Code Interpreter with E2B Cloud Sandbox" uploadDate="2024-02-19T11:37:49-08:00" />

The LLM-generated code in this example project is executed in the cloud, using [E2B sandbox](https://docs.e2b.dev). By default, AutoGen agents do the code execution locally via Docker which can be [limiting](/resources/limitations-of-running-ai-agents-locally) for some use cases or possess some [risks](/resources/microsoft-s-autogen).

### The E2B Sandbox

The [E2B Sandbox](https://docs.e2b.dev) is a secure way to run your AI app. It is a long-running cloud environment where you can let any LLM (GPTs, Claude, local LLMs, etc) use tools exactly like you would do locally. E2B is fully [open sourced](https://github.com/e2b-dev/e2b) including the infrastructure layer. To try E2B sandboxes for free, start with [documentation](https://docs.e2b.dev).

### Credits

The author of this example is [Keegan McCallum](https://github.com/keeganmccallum), the founder of Xler.ai. Xler is a general-purpose multi-agent platform built on top of AutoGen. It also provides production-grade services like evaluation, deployment, monitoring, and fine-tuning.

### Want to show your example?

Write us at [hello@e2b.dev](mailto:hello@e2b.dev) or make a pull request to the [E2B cookbook](https://github.com/e2b-dev/e2b-cookbook). We have a strong preference for accepting projects such as LLM-powered code interpreters or coding AI agents. The condition is that the app uses E2B sandboxes.

Check out other open-source community examples in the [E2B cookbook.](https://github.com/e2b-dev/e2b-cookbook)
