---
title: "E2B Cookbook"
description: "Ready-to-run JavaScript, TypeScript, and Python examples for sandboxed code execution and agent workflows."
url: "https://e2b.dev/cookbook"
---

# E2B Cookbook

> Complete example projects for combining E2B sandboxes with language models, agent frameworks, data sources, and web applications.

## What the examples cover

- Code interpreters in Python, JavaScript, and TypeScript.
- Streaming code execution from Next.js applications.
- Dataset upload, analysis, and visualization.
- Agent frameworks including LangChain, LangGraph, and AutoGen.
- Model providers including Anthropic, OpenAI, Meta, Mistral, Together AI, Fireworks AI, IBM watsonx.ai, and Groq.
- Web research and scraping workflows using Firecrawl.

## Selected examples

- [Claude Code Interpreter in Python](https://github.com/e2b-dev/e2b-cookbook/tree/main/examples/claude-code-interpreter-python)
- [Claude Code Interpreter in JavaScript and TypeScript](https://github.com/e2b-dev/e2b-cookbook/tree/main/examples/claude-code-interpreter-js)
- [OpenAI Code Interpreter in Python](https://github.com/e2b-dev/e2b-cookbook/tree/main/examples/gpt-4o-python)
- [OpenAI Code Interpreter in JavaScript and TypeScript](https://github.com/e2b-dev/e2b-cookbook/tree/main/examples/gpt-4o-js)
- [Next.js code interpreter with streaming](https://github.com/e2b-dev/e2b-cookbook/tree/main/examples/nextjs-code-interpreter)
- [LangChain with code interpreting](https://github.com/e2b-dev/e2b-cookbook/tree/main/examples/langchain-python)
- [LangGraph with code interpreting](https://github.com/e2b-dev/e2b-cookbook/tree/main/examples/langgraph-python)
- [Analyze an uploaded dataset with Llama 3](https://github.com/e2b-dev/e2b-cookbook/tree/main/examples/upload-dataset-code-interpreter)
- [Scrape and analyze Airbnb data with Firecrawl](https://github.com/e2b-dev/e2b-cookbook/tree/main/examples/firecrawl-scrape-and-analyze-airbnb-data)
- [IBM watsonx.ai Code Interpreter in Python](https://github.com/e2b-dev/e2b-cookbook/tree/main/examples/watsonx-ai-code-interpreter-python)

## Choose an interface

Use the base Sandbox SDK for commands, files, networking, and lifecycle control. Use Code Interpreter when the application needs `runCode()` and rich notebook-style results. Use Desktop Sandbox when the agent needs a screen, mouse, keyboard, or browser.

## Start building

- [Browse the complete cookbook repository](https://github.com/e2b-dev/e2b-cookbook/tree/main/examples)
- [Read the E2B quickstart](https://docs.e2b.dev/quickstart)
- [Read the SDK documentation](https://docs.e2b.dev)
- [Suggest an example](https://e2b.dev/contact.md)
