Open-source, secure environment with real-world tools for enterprise-grade agents.
Python agentaiai-agentai-agentscode-interpretercopilotdevelopmentdevtoolsgptgpt-4javascriptllmnextjsopenaipythonreactsoftwaretypescript
Update docs & readme
Vasek Mlejnskycf6b3cf23550
diff --git a/README.md b/README.mdindex 89348bb72..195358c45 100644--- a/README.md+++ b/README.md@@ -1,13 +1,13 @@<h1 align="center"><font size="30"><b>- E2B - Sandbox Runtime for LLMs+ Sandbox for AI Apps & Agents</b></font></h1><h3 align="center">- Sandboxed cloud environments for AI-powered apps and agentic workflows+ Secure sandboxed cloud environments made for AI agents and AI apps</h3><h4 align="center">@@ -35,36 +35,78 @@</a></h4>-[E2B](https://e2b.dev) is cloud for AI agents and AI apps. With E2B, you can-create AI playgrounds. In these AI playgrounds, you can let your AI agents and-apps:+## What is E2B?-- Run any code and terminal command in a sandboxed environment-- Install dependencies and programs-- Use filesystem-- Upload and download files-- Access the internet-- Start a web server that's accessible from the internet-- Clone git repositories-- Start any process (even long-running such as a database)+E2B Sandbox is a secure sandboxed cloud environment made for AI agents and AI+apps. Sandboxes allow AI agents and apps to have long running cloud secure+environments. In these environments, large language models can use the same+tools as humans do. For example:-This just a few examples of what can be done with our agent cloud environments.+- Cloud browsers+- GitHub repositories and CLIs+- Coding tools like linters, autocomplete, "go-to defintion"+- Running code+- Audio & video editing-**Our SDK works with any AI agent (no matter what framework, you're using), and-without the need to manage any infrastructure.**+**The E2B sandbox can be connected to any LLM and any AI agent or app.**## Getting Started & Documentation-Visit [docs](https://e2b.dev/docs) to get started with the SDK.+> Please visit [documentation](https://e2b.dev/docs) to get started.++To create and control a sandbox, you use our SDK:### Python+#### Install SDK+```bashpip install e2b```+#### Start sandbox++```py+from e2b import Sandbox++# Create sandbox+sandbox = Sandbox()++# Let an LLM use the sandbox here+# Visit https://e2b.dev/docs/sandbox/overview to learn more about sandboxes.++# Close sandbox once done+sandbox.close()+```+### JavaScript & TypeScript+#### Install SDK+```bashnpm install @e2b/sdk```++#### Start sandbox++```js+import { Sandbox } from "@e2b/sdk";++// Create sandbox+const sandbox = await Sandbox.create();++// Let an LLM use the sandbox here+// Visit https://e2b.dev/docs/sandbox/overview to learn more about sandboxes.++// Close sandbox once done+await sandbox.close();+```++## Repository Structure++This repository is a monorepo containing:++1. [Python SDK](packages/python-sdk)+1. [JS SDK](packages/js-sdk)+1. [CLI](packages/cli)+1. [Documentation](apps/docs/)diff --git a/apps/docs/src/app/getting-started/installation/page.mdx b/apps/docs/src/app/getting-started/installation/page.mdxindex 8697dde79..e7e24c70a 100644--- a/apps/docs/src/app/getting-started/installation/page.mdx+++ b/apps/docs/src/app/getting-started/installation/page.mdx@@ -2,7 +2,7 @@ import { Libraries } from '@/components/Libraries'# Installation-You create and control LLM sandboxes with our SDKs.+You create and control sandboxes with our SDKs.We offer SDKs for [JavaScript / TypeScript](https://www.npmjs.com/package/@e2b/sdk), and [Python](https://pypi.org/project/e2b/).<Libraries/>diff --git a/apps/docs/src/app/page.mdx b/apps/docs/src/app/page.mdxindex 9ab72eedf..f88850cc2 100644--- a/apps/docs/src/app/page.mdx+++ b/apps/docs/src/app/page.mdx@@ -8,12 +8,13 @@ import { useSignIn } from '@/utils/useSignIn'<HeroPattern />-# Sandbox Runtime for Large Language Models+# Sandbox for AI Apps & Apps-Sandboxes allow AI apps to have long running cloud environments where large language models can use the same tools as humans do. {{ className: 'lead' }}+E2B Sandbox is a secure sandboxed cloud environment made for AI agents and AI apps.+Sandboxes allow AI agents and apps to have long running cloud secure environments. In these environments, large language models can use the same tools as humans do. {{ className: 'lead' }}## Use cases-Our Sandboxes are general purpose machines powered by Ubuntu. Most of the things your AI app or agent can do locally can also be done in our sandboxes.+Under the hood, the sandbox is a general purpose machines powered by Ubuntu. Most of the things your AI app or agent can do locally can also be done in our sandboxes.Here are a few use cases:- **AI data analysis**diff --git a/apps/docs/src/app/sandbox/api/process/page.mdx b/apps/docs/src/app/sandbox/api/process/page.mdxindex 1bc78b78c..c2316b62c 100644--- a/apps/docs/src/app/sandbox/api/process/page.mdx+++ b/apps/docs/src/app/sandbox/api/process/page.mdx@@ -1,6 +1,6 @@# Starting process inside a sandbox-Here are the basic operations you can do with the process inside a LLM sandbox:+Here are the basic operations you can do with the process inside the sandbox:- [Start process](/sandbox/process#start-process)- [Stop process](/sandbox/process#stop-process)diff --git a/apps/docs/src/app/sandbox/overview/page.mdx b/apps/docs/src/app/sandbox/overview/page.mdxindex 3a79c8349..1bede40b1 100644--- a/apps/docs/src/app/sandbox/overview/page.mdx+++ b/apps/docs/src/app/sandbox/overview/page.mdx@@ -5,9 +5,9 @@ import { Check } from 'lucide-react'import { features } from './features'# Overview-**The E2B's LLM sandboxes are isolated cloud environments made specifcially for AI apps.**+**The E2B's sandboxes are isolated cloud environments made specifcially for AI apps and agents.**-LLM sandboxes are an ideal fit as a playground for AI assistants like coding copilots, code interpreters, AI data analysts, AI browser assistants, and other AI-powered apps.+The E2B sandboxes are an ideal fit as a playground for AI assistants like coding copilots, code interpreters, AI data analysts, AI browser assistants, and other AI-powered apps.## Features<div className="flex flex-col items-start space-y-2">@@ -58,10 +58,10 @@ When you create a new sandbox session, we start a small VM in our cloud. This VMInside this sandbox, your AI app can [run code and start any programs](/sandbox/api/process), access the internet to download or upload data, use the [filesystem](/sandbox/api/filesystem), start long running processes such as web servers, and more.You can also [upload](/sandbox/api/upload) to sandbox and [download](/sandbox/api/upload) from sandbox any file you want.-To start and control the LLM sandbox, use the [E2B SDK](/getting-started/installation) for Python or JavaScript.+To start and control the sandbox, use the [E2B SDK](/getting-started/installation) for Python or JavaScript.<CodeGroupAutoload- title="Starting LLM Sandbox"+ title="Starting Sandbox"path="basics/init"/>