e2b-cookbook Agent工作流 是 AI Skill Hub 本期精选Agent工作流之一。已获得 1.3k 颗 GitHub Star,综合评分 8.2 分,整体质量较高。我们强烈推荐将其纳入你的 AI 工具库,帮助提升工作效率。
E2B官方开源项目,提供AI代理和工作流的实践示例集合。包含代码解释器、AI智能体等多种应用场景的完整工程代码示例,适合开发者学习和快速集成AI能力。
e2b-cookbook Agent工作流 是一套完整的 AI Agent 自动化工作流方案。通过可视化的节点编排,将复杂的多步骤任务拆解为清晰的自动化流程,实现全程无人值守的智能处理。支持与数百种外部服务和 API 无缝集成,适合构建数据处理管线、业务自动化和 AI 辅助决策系统。
E2B官方开源项目,提供AI代理和工作流的实践示例集合。包含代码解释器、AI智能体等多种应用场景的完整工程代码示例,适合开发者学习和快速集成AI能力。
e2b-cookbook Agent工作流 是一套完整的 AI Agent 自动化工作流方案。通过可视化的节点编排,将复杂的多步骤任务拆解为清晰的自动化流程,实现全程无人值守的智能处理。支持与数百种外部服务和 API 无缝集成,适合构建数据处理管线、业务自动化和 AI 辅助决策系统。
# 方式一:npm 全局安装 npm install -g e2b-cookbook # 方式二:npx 直接运行(无需安装) npx e2b-cookbook --help # 方式三:项目依赖安装 npm install e2b-cookbook # 方式四:从源码运行 git clone https://github.com/e2b-dev/e2b-cookbook cd e2b-cookbook npm install npm start
# 命令行使用
e2b-cookbook --help
# 基本用法
e2b-cookbook [options] <input>
# Node.js 代码中使用
const e2b_cookbook = require('e2b-cookbook');
const result = await e2b_cookbook.run(options);
console.log(result);
# e2b-cookbook 配置说明 # 查看配置选项 e2b-cookbook --config-example > config.yml # 常见配置项 # output_dir: ./output # log_level: info # workers: 4 # 环境变量(覆盖配置文件) export E2B_COOKBOOK_CONFIG="/path/to/config.yml"
Example code and guides for building with E2B SDK.
Read more about E2B on the E2B website and the official E2B documentation.
Hello World guide
Open-source apps
LLM providers
| Provider | Topic(s) | Example | Python | TypeScript |
|---|---|---|---|---|
| OpenAI | Agents SDK | Agentic workflows running in E2B sandboxes | Python | - |
| GPT-5.6 | Data analysis and visualization of a CSV | Python | TypeScript | |
| GPT-5.6 | Code interpreter and reasoning on image data | Python | TypeScript | |
| GPT-5.6 | Code interpreter for ML on dataset | Python | TypeScript | |
| Codex CLI | OpenAI Codex, running inside a Sandbox | Python | TypeScript | |
| Anthropic | Claude Opus 5 | Code interpreter | Python | TypeScript |
| Claude Code | Claude Code, running inside a Sandbox | Python | TypeScript | |
| Claude Managed Agents | Self-hosted worker running inside a Sandbox | Python | - | |
| Meta | Muse Spark | Coding agent with E2B as its execution backend | Python | - |
| 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 | - |
| CrewAI | CrewAI agent with sandboxed Python execution | Python | - |
| Hermes Agent | Learn an incident-triage skill in one sandbox and apply it in a fresh session | Python | - |
| ▲ Vercel AI SDK | Next.js + AI SDK + Code Interpreter | - | TypeScript |
| ▲ Vercel AI SDK | AI SDK sandbox provider: sandboxed tools via restricted sessions, and harness coding agents (Claude Code, Codex) running inside E2B | - | TypeScript |
| ▲ Vercel eve | Feedback analyst agent whose sandbox backend is E2B, publishing an HTML report from the sandbox | - | TypeScript |
| Flue | Feedback analyst agent running entirely inside an E2B sandbox, publishing an HTML report from the sandbox | - | TypeScript |
| Pi | Pi builds its own E2B code-interpreter extension in a sandbox, then uses it to analyze data | - | TypeScript |
| AgentKit | AgentKit Coding Agent | - | TypeScript |
| Sandbox Agent SDK | Run Sandbox Agent inside E2B and connect with the SDK | - | TypeScript |
| Stirrup | The lightweight framework for building agents | Python | - |
Remote execution integrations
| Integration | Description | Python | TypeScript |
|---|---|---|---|
| Crabbox | Warm one E2B sandbox, sync local changes, and rerun a test suite on the same lease | Python | - |
Model Context Protocol (MCP)
| Example | Description | TypeScript |
|---|---|---|
| MCP Client | Basic MCP client connection to E2B sandbox | TypeScript |
| MCP Custom Server | Connect to custom filesystem MCP server from GitHub | TypeScript |
| MCP Custom Template | Create custom E2B template with pre-installed MCP servers | TypeScript |
| MCP Research Agent | Research agent using arXiv and DuckDuckGo MCP servers | TypeScript |
| MCP Claude Code | Claude Code with MCP integration | TypeScript |
| MCP Browserbase | Web automation agent using Browserbase MCP server | TypeScript |
| MCP Groq Exa | AI research using Groq with Exa MCP server | TypeScript |
Example use cases
Every example is exercised nightly against live E2B by tests/run-examples.ts: each one is uploaded into a fresh sandbox, installed with its own toolchain (npm, uv, Poetry, or nbconvert for notebooks) and run. An example passes if it exits 0.
npm install
npm test # all of them
npm test -- hello-world # substring filter, one or a few
You need an E2B_API_KEY plus whichever provider key the examples you are running use - see .env.example. hello-world-js and hello-world-python need only the E2B key, so they are the ones to try first.
What counts as a failure. The suite checks the sandbox, not the model. A provider rate limit or an exhausted quota counts as OK, because the sandbox still built, installed and ran; non-deterministic model behaviour - no chart produced, a malformed tool call, generated code raising inside the sandbox - is reported as skipped. Real failures are the things that are actually broken: missing templates, dependency resolution, wrong entrypoints, auth, retired model ids, sandbox timeouts.
Some examples are deliberately not covered - they need a provider key this repo does not hold, a long-lived server the runner cannot assert on, or an upstream fix. Each exclusion is listed with its reason at the top of tests/run-examples.ts, so a gap is never silent.
E2B官方高质量示例库,TypeScript实现规范,代码可读性强,持续维护更新,是学习AI工作流的优秀资源。
该工具未明确声明开源协议,商业使用前请联系原作者确认授权范围,避免侵权风险。
AI Skill Hub 为第三方内容聚合平台,本页面信息基于公开数据整理,不对工具功能和质量作任何法律背书。
建议在沙箱或测试环境中充分验证后,再部署至生产环境,并做好必要的安全评估。
经综合评估,e2b-cookbook Agent工作流 在Agent工作流赛道中表现稳健,质量优秀。如果你已有明确的使用需求,可以直接上手体验;如果还在评估阶段,建议对比同类工具后再做决策。
| 原始名称 | e2b-cookbook |
| 原始描述 | 开源AI工作流:Examples of using E2B。⭐1.3k · TypeScript |
| Topics | AI工作流代码执行器AI智能体示例代码开源 |
| GitHub | https://github.com/e2b-dev/e2b-cookbook |
| 语言 | TypeScript |
收录时间:2026-05-14 · 更新时间:2026-05-16 · License:未公布 · AI Skill Hub 不对第三方内容的准确性作法律背书。
选择 Agent 类型,复制安装指令后粘贴到对应客户端