This repository collects guidance and examples for building retrieval-augmented generation applications.
E2B Cookbook
This repository contains example code and guides for building with the E2B SDK.

About E2B Cookbook
E2B Cookbook is a GitHub repository of example code and guides for building with the E2B SDK. It collects working examples for connecting AI models and agent frameworks to E2B sandboxes, which are used to run code.
The examples cover LLM providers such as OpenAI, Anthropic, Mistral, Groq, and Together AI, along with frameworks including LangChain, LangGraph, Pydantic AI, CrewAI, and the Vercel AI SDK. Many examples are available in Python, and some are available in TypeScript. Not every integration has examples in both languages.
Key features
- Code interpreter examples for several LLM providers in Python and TypeScript
- Integrations with LangChain, LangGraph, Pydantic AI, and CrewAI
- Vercel AI SDK examples in TypeScript, including sandboxed tools
- Code rewards for TRL GRPO reinforcement learning with sandboxed Python execution
- CSV data analysis example with visualization by an LLM
- Basic MCP client example connecting to an E2B sandbox
- Covers many LLM providers and AI frameworks with example code
- Several topics include examples in both Python and TypeScript
- Many integrations have Python examples only, with no TypeScript version listed
- The repository contains examples and guides, not a standalone application
E2B Cookbook at a glance
- Category
- AI & Machine Learning › AI Learning & Guides
- Type
- Open-source project
- Pricing
- Not confirmed. Check the site
- Open source
- Not stated
- Language
- English
- Last checked
- Oct 6, 2026 · Online when checked
- Listed
- Oct 5, 2026
E2B Cookbook alternatives
Tools and sites you could use instead, ranked by how closely they match.
This BrainSoup knowledge base provides setup, usage, and troubleshooting articles for its agent software.
Popular in AI Learning & Guides
Well-known listings from the same topic.
E2B Cookbook FAQ
Which programming languages are the examples written in?
Where can I find more documentation about E2B?
Tell us and an editor will check it.
Claim the listing and suggest updates yourself. An editor checks every claim first.







