E2B Cookbook

This repository contains example code and guides for building with the E2B SDK.

github.com/e2b-dev/e2b-cookbook
E2B Cookbook homepage screenshot

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
Best for: Developers building AI agents or LLM applications with the E2B SDK who want working Python or TypeScript examples to adapt.
Good for
  • Covers many LLM providers and AI frameworks with example code
  • Several topics include examples in both Python and TypeScript
Watch out for
  • 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

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.

Docs

help.nurgo-software.com/collection/148-brainsoup

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.

All 29

E2B Cookbook FAQ

Which programming languages are the examples written in?
The examples are in Python and TypeScript. Some topics have examples in only one of the two languages.
Where can I find more documentation about E2B?
The repository points to the E2B website and the official E2B documentation for more information.
Is something wrong or out of date?

Tell us and an editor will check it.

Own this website?

Claim the listing and suggest updates yourself. An editor checks every claim first.

Claim this listing