登录 注册
AI 应用与 AI Agent开发者工具内容创作与媒体工具 agentaiai-agentai-agentscode-interpretercopilot
14,801
Stars
1,166
Forks
83
Watchers
130
Open Issues
Apache-2.0
许可证
Python
语言
2023-03-04
创建时间
2026-11-10
最近更新

项目能做什么

面向企业级 Agent 的开源安全执行环境,内置多种真实场景实用工具。
来源:AI 基于仓库事实生成 · 内容以仓库实际 README 为准

使用说明 查看原始 README 原仓库文档

中文使用说明暂未生成。下面保留原仓库 README 摘录,命令与配置均以原文为准。
原始 README 摘录(英文原文,节选前 3000 字符)
<p align="center">
  <img src="/readme-assets/logo-black.png#gh-light-mode-only" alt="E2B Logo" width="200">
  <img src="/readme-assets/logo-white.png#gh-dark-mode-only" alt="E2B Logo" width="200">
</p>

<h4 align="center">
  <a href="https://pypi.org/project/e2b/">
    <img alt="Last 1 month downloads for the Python SDK" loading="lazy" decoding="async" style="color:transparent;width:170px;height:18px" src="https://static.pepy.tech/personalized-badge/e2b?period=monthly&units=INTERNATIONAL_SYSTEM&left_color=BLACK&right_color=GREEN&left_text=PyPi%20Monthly%20Downloads">
  </a>
  <a href="https://www.npmjs.com/package/e2b">
    <img alt="Last 1 month downloads for the JavaScript SDK" loading="lazy" width="200" height="30" decoding="async" data-nimg="1"
    style="color:transparent;width:170px;height:18px" src="https://img.shields.io/npm/dm/e2b?label=NPM%20Monthly%20Downloads">
  </a>
</h4>

<!---
<img width="100%" src="/readme-assets/preview.png" alt="Cover image">
--->
## What is E2B?
[E2B](https://e2b.dev/?utm_source=github&utm_medium=referral&utm_campaign=readme&utm_content=E2B) is an open-source infrastructure that allows you to run AI-generated code in secure isolated sandboxes in the cloud. To start and control sandboxes, use our [JavaScript SDK](https://www.npmjs.com/package/e2b) or [Python SDK](https://pypi.org/project/e2b).

## Run your first Sandbox

### 1. Install SDK

JavaScript / TypeScript
```
npm i e2b
```

Python
```
pip install e2b
```

### 2. Get your E2B API key
1. Sign up to E2B [here](https://e2b.dev/?utm_source=github&utm_medium=referral&utm_campaign=readme&utm_content=E2B).
2. Get your API key [here](https://e2b.dev/dashboard?tab=keys&utm_source=github&utm_medium=referral&utm_campaign=readme&utm_content=E2B).
3. Set environment variable with your API key
```
E2B_API_KEY=e2b_***
```

### 3. Start a sandbox and run commands

JavaScript / TypeScript
```ts
import Sandbox from 'e2b'

const sandbox = await Sandbox.create()
const result = await sandbox.commands.run('echo "Hello from E2B!"')
console.log(result.stdout) // Hello from E2B!
```

Python
```py
from e2b import Sandbox

with Sandbox.create() as sandbox:
    result = sandbox.commands.run('echo "Hello from E2B!"')
    print(result.stdout)  # Hello from E2B!
```

### 4. Code execution with Code Interpreter

If you need to execute code with [`runCode()`](https://e2b.dev/docs/code-interpreting?utm_source=github&utm_medium=referral&utm_campaign=readme&utm_content=E2B)/[`run_code()`](https://e2b.dev/docs/code-interpreting?utm_source=github&utm_medium=referral&utm_campaign=readme&utm_content=E2B), install the Code Interpreter SDK ([JavaScript](./packages/code-interpreter-js) / [Python](./packages/code-interpreter-python)):

```
npm i @e2b/code-interpreter  # JavaScript/TypeScript
pip install e2b-code-interpreter  # Python
```

```ts
import { Sandbox } from '@e2b/code-interpreter'

const sandbox = await Sandbox.create()
const execution = await sandbox.runCode('x = 1; x += 1; x')
conso
阅读完整原文

商业机会分析 AI 生成

垂直场景专属 AI Code Interpreter 托管 API

产品构想基于 E2B 核心能力封装即开即用的垂直场景(如金融量化分析、复杂报表自动化生成、学术论文代码复现)沙箱 API,预装常用重型依赖包并提供开箱即用的图表/文件交付管道。
核心功能针对垂直领域深度预热的微型沙箱环境、多格式分析图表与文件自动导出存储、支持按请求或按运行分钟数计量计费的开发者 API 接口
目标用户垂直领域 AI SaaS 开发者、个人独立开发者、中小企业数据团队
难度/周期中等 · 1 - 2 个月 · 成本:服务器/虚拟化算力资源采购费、带宽及存储成本
收费模式免费额度 + 阶梯调用按量付费(按秒/按并发)或月度订阅制
竞争风险恶意代码滥用(如加密挖矿、攻击外网)的安全风控风险;资源闲置成本控制难度大
依据 AI推测

Agent 安全行为网关与执行审计代理

产品构想为企业内部部署的 E2B 沙箱提供一层安全控制与行为审计代理网关,拦截 Agent 异常系统命令、敏感数据外发检测及调用合规归档。
核心功能实时命令与执行代码静态分析过滤、沙箱出入站流量监控与阻断、完整的执行回放与审计合规报表生成
目标用户对数据合规与网络安全要求严苛的中大型企业内审/IT运维部门
难度/周期高 · 3 - 5 个月 · 成本:专有安全规则研发与测试环境算力投入
收费模式企业软件授权买断(私有化部署)或按保护节点/沙箱实例规模收取年度维保订阅费
竞争风险对企业网络拓扑适配要求高,销售周期长,中小团队获客门槛高
依据 尚需验证的假设

无头浏览器与脚本自动化 Agent 执行工作台

产品构想利用 E2B 沙箱集成浏览器与 Python 环境,打造面向运营、爬虫与办公自动化任务的托管式 Agent 执行面板,提供定时运行、网页操作回放与结果通知。
核心功能沙箱内网页操作过程录屏与调试日志、预设任务调度器、多 Agent 协作工作流可视化配置面板
目标用户自动化测试工程师、爬虫工程师、无代码/低代码流程自动化个人或团队
难度/周期中等 · 2 - 3 个月 · 成本:云端算力消耗、流媒体录制存储成本
收费模式SaaS 月度/年度席位费,根据并发任务数与存储空间分级收费
竞争风险目标网站反爬策略升级导致自动化任务失败率高,引发用户流失
依据 AI推测
AI 基于仓库公开数据分析生成,含推测成分,不构成收益承诺。
报告会保存到 个人中心

竞品与相似项目 GitHub Search 真实检索

项目中文简介Stars语言
morluto/rea 中文介绍暂未生成
Reverse engineer anything with agents, from app behavior dow
449,328 TypeScript
mattpocock/skills 中文介绍暂未生成
Skills for Real Engineers. Straight from my .agents director
320,637 Shell
obra/superpowers 中文介绍暂未生成
An agentic skills framework & software development methodolo
315,579 Shell
affaan-m/ECC 中文介绍暂未生成
The agent harness performance optimization system. Skills, i
300,647 JavaScript
NousResearch/hermes-agent 中文介绍暂未生成
The agent that grows with you
262,369 Python
anomalyco/opencode 中文介绍暂未生成
The open source coding agent.
225,857 TypeScript
以上为通过 GitHub 官方 Search API 检索的相似项目,功能差异与优劣势需进一步人工确认,配置 AI 后可生成对比分析。

项目优势与风险

技术成熟度创建于 2023-03-04,近 30 天仍在推送,发布过 100 个 Release
社区活跃Star 14,801 / Fork 1,166 / Issue 130(数据支持,可自行核实)
许可证Apache-2.0
主要风险上游项目方向可能变化;同赛道竞争者较多(见竞品表);热度与需求不完全等价

安装与使用

快速开始(以仓库 README 为准)
git clone https://github.com/e2b-dev/E2B.git
cd E2B
# 请阅读仓库 README 获取确切安装步骤(依赖、配置、启动命令)
阅读原仓库文档
术语说明:Docker=应用容器(把程序和依赖打包运行);API Key=调用外部服务的密钥;Git Clone=把仓库代码下载到本地。常见错误:API Key 未配置 / 端口占用 / 数据库连接失败,多数项目在 README 的 Troubleshooting 章节有说明。