TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Open-source secure sandboxes for AI code execution

4 点作者 mlejva大约 1 年前

1 comment

mlejva大约 1 年前
Hey everyone!<p>I&#x27;m the CEO of the company that built this.<p>We&#x27;re a company called E2B [0]. We&#x27;re building and open-source [1] secure environments for running untrusted AI-generated code and AI agents. We call these environments sandboxes and they are built on top of micro VM called Firecracker [2]. We specifically decided to use Firecrackers instead of containers because of their security and ability to do snapshots.<p>You can think of us as giving small cloud computers to LLMs. We recently created a dedicated SDK for building custom code interpreters in Python or JS&#x2F;TS. We saw this need after a lot of our users have been adding code execution capabilities to their AI apps with our core SDK [3]. These use cases were often centered around AI data analysis so code interpreter-like behavior made sense<p>The way our code interpret SDK works is by spawning an E2B sandbox with Jupyter Server. We then communicate with this Jupyter server through Jupyter Kernel messaging protocol [4]. We work with an LLM and AI framework. We have different examples on how to use the SDK with Llama models, Anthropic models, LangChain, LangGraph, and more in our cookbook [5].<p>We don&#x27;t do any wrapping around LLM, any prompting, or any agent-like framework. We leave all of that to our users. We&#x27;re really just a boring code execution layer that sits at the bottom. We&#x27;re building for the future software that will be building another software. Our long-term plan is to build an automated AWS for AI apps and agents where AI can build and deploy its own software while giving developers powerful observability into what&#x27;s happening inside our sandboxes. With everything being open-source. Happy to answer any questions and hear feedback!<p>[0] <a href="https:&#x2F;&#x2F;e2b.dev" rel="nofollow">https:&#x2F;&#x2F;e2b.dev</a><p>[1] <a href="https:&#x2F;&#x2F;github.com&#x2F;e2b-dev">https:&#x2F;&#x2F;github.com&#x2F;e2b-dev</a><p>[2] <a href="https:&#x2F;&#x2F;github.com&#x2F;firecracker-microvm&#x2F;firecracker">https:&#x2F;&#x2F;github.com&#x2F;firecracker-microvm&#x2F;firecracker</a><p>[3] <a href="https:&#x2F;&#x2F;e2b.dev&#x2F;docs" rel="nofollow">https:&#x2F;&#x2F;e2b.dev&#x2F;docs</a><p>[4] <a href="https:&#x2F;&#x2F;jupyter-client.readthedocs.io&#x2F;en&#x2F;latest&#x2F;messaging.html" rel="nofollow">https:&#x2F;&#x2F;jupyter-client.readthedocs.io&#x2F;en&#x2F;latest&#x2F;messaging.ht...</a><p>[5] <a href="https:&#x2F;&#x2F;github.com&#x2F;e2b-dev&#x2F;e2b-cookbook">https:&#x2F;&#x2F;github.com&#x2F;e2b-dev&#x2F;e2b-cookbook</a>