https://github.com/e2b-dev/e2b-cookbook
Examples of using E2B
https://github.com/e2b-dev/e2b-cookbook
agent ai ai-agents code-interpreter cookbook devtools e2b example gpt gpt4 guides javascript llm openai python python3 sdk tutorial typescript
Last synced: about 23 hours ago
JSON representation
Examples of using E2B
- Host: GitHub
- URL: https://github.com/e2b-dev/e2b-cookbook
- Owner: e2b-dev
- Created: 2023-09-27T11:02:43.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-03-31T12:40:41.000Z (14 days ago)
- Last Synced: 2025-04-06T17:03:10.800Z (8 days ago)
- Topics: agent, ai, ai-agents, code-interpreter, cookbook, devtools, e2b, example, gpt, gpt4, guides, javascript, llm, openai, python, python3, sdk, tutorial, typescript
- Language: TypeScript
- Homepage: https://e2b.dev/docs
- Size: 140 MB
- Stars: 913
- Watchers: 11
- Forks: 159
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
- Codeowners: CODEOWNERS
Awesome Lists containing this project
- awesome-ai-agents - E2B Cookbook
- awesome-ChatGPT-repositories - e2b-cookbook - Examples of using E2B (Tutorials)
- jimsghstars - e2b-dev/e2b-cookbook - Examples of using E2B (TypeScript)
README

# β΄οΈ E2B Cookbook
Example code and guides for building with [E2B SDK](https://github.com/e2b-dev/e2b).
Read more about E2B on the [E2B website](https://e2b.dev) and the official [E2B documentation](https://e2b.dev/docs).
## Examples
**Hello World guide**
- [TypeScript](https://github.com/e2b-dev/e2b-cookbook/tree/main/examples/hello-world-js)
- [Python](https://github.com/e2b-dev/e2b-cookbook/tree/main/examples/hello-world-python)**Open-source apps**
- [E2B AI Analyst](https://github.com/e2b-dev/ai-analyst) - analyze your data & create interactive charts
- [E2B Fragments](https://github.com/e2b-dev/fragments) - prompt different LLMS to generate apps with UI
- [E2B Surf](https://github.com/e2b-dev/surf) - computer use AI agent powered by OpenAI**LLM providers**
Provider
Model(s)
Example
Python
TypeScript
OpenAI
o1, o3-mini
Data analysis and visualization of a CSV
Python
TypeScript
GPT-4o
Code interpreter and reasoning on image data
Python
TypeScript
o1, o3-mini, GPT-4
Code interpreter for ML on dataset
Python
TypeScript
Anthropic
Claude 3 Opus
Code interpreter
Python
TypeScript
Mistral
Codestral
Code interpreter
Python
TypeScript
Groq
Llama 3
Code interpreter via function calling
Python
TypeScript
Fireworks AI
Qwen2.5-Coder-32B-Instruct
Code interpreter
Python
-
Llama 3.1 405B, 70B, 8B
Code interpreter
Python
-
Together AI
Llama 3.1, Qwen 2, Code Llama, DeepSeek Coder
Code interpreter
Python
TypeScript
WatsonX AI
IBM Graphite, Llama, Mistral
Code interpreter
Python
TypeScript
**AI frameworks integrations**
Framework
Description
Python
TypeScript
π¦βοΈ LangChain
LangChain with Code Interpreter
Python
-
π¦πΈοΈ LangGraph
LangGraph with code interpreter
Python
-
Autogen
Autogen with secure sandboxed for code interpreting
Python
-
β² Vercel AI SDK
Next.js + AI SDK + Code Interpreter
-
TypeScript
AgentKit
AgentKit Coding Agent
-
TypeScript
**Example use cases**
- Upload dataset and analyze it with Llama 3 - [Python](https://github.com/e2b-dev/e2b-cookbook/tree/main/examples/upload-dataset-code-interpreter)
- Scrape Airbnb and analyze data with Claude 3 Opus and Firecrawl - [TypeScript](https://github.com/e2b-dev/e2b-cookbook/tree/main/examples/firecrawl-scrape-and-analyze-airbnb-data)
- Visualize website topics with Claude 3.5 Sonnet and Firecrawl - [Python](https://github.com/e2b-dev/e2b-cookbook/tree/main/examples/claude-visualize-website-topics)
- Next.js app with LLM + Code Interpreter and streaming - [TypeScript](https://github.com/e2b-dev/e2b-cookbook/tree/main/examples/nextjs-code-interpreter)
- How to run a Docker container in E2B - [Python/TypeScript](https://github.com/e2b-dev/e2b-cookbook/tree/main/examples/docker-in-e2b)
- How to run Playwright in E2B - [TypeScript](https://github.com/e2b-dev/e2b-cookbook/tree/main/examples/playwright-in-e2b)