Open-source, secure environment with real-world tools for enterprise-grade agents.
Python agentaiai-agentai-agentscode-interpretercopilotdevelopmentdevtoolsgptgpt-4javascriptllmnextjsopenaipythonreactsoftwaretypescript
Replace docs links in mdx files
Vasek Mlejnsky66fab5da1b27
diff --git a/apps/docs/src/app/(docs)/docs/code-interpreter/installation/page.mdx b/apps/docs/src/app/(docs)/docs/code-interpreter/installation/page.mdxindex 51fac52f5..5408877d9 100644--- a/apps/docs/src/app/(docs)/docs/code-interpreter/installation/page.mdx+++ b/apps/docs/src/app/(docs)/docs/code-interpreter/installation/page.mdx@@ -50,5 +50,5 @@ with CodeInterpreter() as sandbox:```### 3. Hello World guide-Dive depeer and check out the [JavaScript](/hello-world/js) and [Python](/hello-world/py) the Hello World guides to learn how o connect code interpreter LLMs.+Dive depeer and check out the [JavaScript](/docs/hello-world/js) and [Python](/docs/hello-world/py) the Hello World guides to learn how o connect code interpreter LLMs.diff --git a/apps/docs/src/app/(docs)/docs/getting-started/installation/page.mdx b/apps/docs/src/app/(docs)/docs/getting-started/installation/page.mdxindex 542657d85..5d899c97e 100644--- a/apps/docs/src/app/(docs)/docs/getting-started/installation/page.mdx+++ b/apps/docs/src/app/(docs)/docs/getting-started/installation/page.mdx@@ -21,8 +21,8 @@ pip install e2b## Next steps-1. [Get your API key](/getting-started/api-key)-1. [Explore the Sandbox API](/sandbox/api/envs)-{/* 1. [Follow the "Hello World" example](/guides/) */}-{/* 1. [Check out the official guides](/guides/overview) */}-{/* 1. [Explore integrations with AI frameworks and LLMs](/integrations/overview) */}+1. [Get your API key](/docs/getting-started/api-key)+1. [Explore the Sandbox API](/docs/sandbox/api/envs)+{/* 1. [Follow the "Hello World" example](/docs/guides/) */}+{/* 1. [Check out the official guides](/docs/guides/overview) */}+{/* 1. [Explore integrations with AI frameworks and LLMs](/docs/integrations/overview) */}diff --git a/apps/docs/src/app/(docs)/docs/guide/connect-bucket/page.mdx b/apps/docs/src/app/(docs)/docs/guide/connect-bucket/page.mdxindex 7626cf01e..2261b05b1 100644--- a/apps/docs/src/app/(docs)/docs/guide/connect-bucket/page.mdx+++ b/apps/docs/src/app/(docs)/docs/guide/connect-bucket/page.mdx@@ -2,7 +2,7 @@To enable persistence of the data in the sandbox we can use a bucket to store the data. We are leveraging the fuse file system to mount the bucket to the sandbox.-You will need to build a custom sandbox template with the fuse file system installed. The guide how to build a custom sandbox template can be found [here](/guide/custom-sandbox).+You will need to build a custom sandbox template with the fuse file system installed. The guide how to build a custom sandbox template can be found [here](/docs/guide/custom-sandbox).## Google Cloud Storagediff --git a/apps/docs/src/app/(docs)/docs/guide/custom-sandbox/page.mdx b/apps/docs/src/app/(docs)/docs/guide/custom-sandbox/page.mdxindex 410651a95..92453ed6e 100644--- a/apps/docs/src/app/(docs)/docs/guide/custom-sandbox/page.mdx+++ b/apps/docs/src/app/(docs)/docs/guide/custom-sandbox/page.mdx@@ -7,7 +7,7 @@ Once the sandbox is built, we'll show how to spawn and control it with our SDK.## Prerequisites1. [Node.js](https://nodejs.org/) 18.0.0 or later-1. [E2B CLI](/cli/installation)+1. [E2B CLI](/docs/cli/installation)1. Running Docker instance## 1. Install E2B CLI@@ -32,12 +32,12 @@ e2b auth login</CodeGroup><Note>-You need to have an existing E2B account to login. Sign up [here](/getting-started/api-key).+You need to have an existing E2B account to login. Sign up [here](/docs/getting-started/api-key).</Note>## 3. Create `e2b.Dockerfile`To describe how your custom sandbox will look like, create a new Dockerfile and name it `e2b.Dockerfile`.-We use this Dockerfile as the [template file](/sandbox/templates/template-file).+We use this Dockerfile as the [template file](/docs/sandbox/templates/template-file).<Note>Run `e2b template init` to create `e2b.Dockerfile` in the current directory.@@ -65,8 +65,8 @@ Now it's time to create your custom sandbox based on the sandbox template file (Run the following command inside the template file directory in your terminal.<Note>-[Pro users](/pricing) can use the `--cpu-count=` ([docs](/cli/commands#template-build)) and `--memory-mb=` ([docs](/cli/commands#template-build)) flags to customize the sandbox compute.-Read more about the compute [here](/sandbox/compute).+[Pro users](/docs/pricing) can use the `--cpu-count=` ([docs](/docs/cli/commands#template-build)) and `--memory-mb=` ([docs](/docs/cli/commands#template-build)) flags to customize the sandbox compute.+Read more about the compute [here](/docs/sandbox/compute).</Note><CodeGroup isTerminalCommand title="Build sandbox template" isRunnable={false}>@@ -161,7 +161,7 @@ e2b template build## 5. Spawn and control your sandbox-Now you can use the [E2B SDK](/getting-started/installation) to spawn & control your new custom sandbox.+Now you can use the [E2B SDK](/docs/getting-started/installation) to spawn & control your new custom sandbox.The sandbox template name is `my-agent-sandbox`. We'll use it as an unique identifier and pass it to the SDK as the `template` parameter.This way, we'll be able to spawn our custom sandbox and control it with the SDK.diff --git a/apps/docs/src/app/(docs)/docs/hello-world/js/page.mdx b/apps/docs/src/app/(docs)/docs/hello-world/js/page.mdxindex 8f9f6f610..0e650b5ef 100644--- a/apps/docs/src/app/(docs)/docs/hello-world/js/page.mdx+++ b/apps/docs/src/app/(docs)/docs/hello-world/js/page.mdx@@ -34,7 +34,7 @@ npm init -y \```</CodeGroup>-Get your E2B API key [here](/getting-started/api-key) and save it to `.env` in your root directory.+Get your E2B API key [here](/docs/getting-started/api-key) and save it to `.env` in your root directory.<CodeGroup isFileName title=".env" isRunnable={false}>```bashE2B_API_KEY="e2b-api-key"diff --git a/apps/docs/src/app/(docs)/docs/hello-world/py/page.mdx b/apps/docs/src/app/(docs)/docs/hello-world/py/page.mdxindex cd9884a96..40bdda1f1 100644--- a/apps/docs/src/app/(docs)/docs/hello-world/py/page.mdx+++ b/apps/docs/src/app/(docs)/docs/hello-world/py/page.mdx@@ -33,7 +33,7 @@ pip install e2b_code_interpreter python-dotenv```</CodeGroup>-Get your E2B API key [here](/getting-started/api-key) and save it to `.env` in your root directory.+Get your E2B API key [here](/docs/getting-started/api-key) and save it to `.env` in your root directory.<CodeGroup isFileName title=".env" isRunnable={false}>```bashE2B_API_KEY="e2b-api-key"diff --git a/apps/docs/src/app/(docs)/docs/page.mdx b/apps/docs/src/app/(docs)/docs/page.mdxindex dd75a13dc..de638db03 100644--- a/apps/docs/src/app/(docs)/docs/page.mdx+++ b/apps/docs/src/app/(docs)/docs/page.mdx@@ -52,4 +52,4 @@ with CodeInterpreter() as sandbox:</CodeGroup>### 3. Hello World guide-Dive depeer and check out the [JavaScript](/hello-world/js) and [Python](/hello-world/py) Hello World guides to learn how to connect the code interpreter to LLMs.+Dive depeer and check out the [JavaScript](/docs/hello-world/js) and [Python](/docs/hello-world/py) Hello World guides to learn how to connect the code interpreter to LLMs.diff --git a/apps/docs/src/app/(docs)/docs/pricing/page.mdx b/apps/docs/src/app/(docs)/docs/pricing/page.mdxindex a42f75749..cd25c9756 100644--- a/apps/docs/src/app/(docs)/docs/pricing/page.mdx+++ b/apps/docs/src/app/(docs)/docs/pricing/page.mdx@@ -26,12 +26,12 @@ Additionally to the usage costs, you can also select a tier that includes dedica- One-time $100 of usage in credits- Dedicated Slack channel with live Pro support from our team- Prioritized features-- Customize your [sandbox compute](/sandbox/compute)+- Customize your [sandbox compute](/docs/sandbox/compute)- Up to 24 hours sandbox session length- Up to 100 concurrently running sandboxes-If you need any additional features or resources, please [reach out to us](/getting-help) with your use case.+If you need any additional features or resources, please [reach out to us](/docs/getting-help) with your use case.---@@ -51,8 +51,8 @@ Pro customers can customize the sandbox with **any combination** of the CPU and<Note><b>By default your sandbox has 2 vCPU and 512 MiB RAM.</b>-To customize your sandbox compute, you need to build your custom sandbox template using the [E2B CLI](/cli/installation).-Run [`e2b template build`](/cli/commands#template-build) and specify the `--cpu-count` and `--memory-mb` options.+To customize your sandbox compute, you need to build your custom sandbox template using the [E2B CLI](/docs/cli/installation).+Run [`e2b template build`](/docs/cli/commands#template-build) and specify the `--cpu-count` and `--memory-mb` options.For example this custom build gives your sandbox 8 vCPU and 4GiB of RAM```sh@@ -63,4 +63,4 @@ e2b template build --cpu-count 8 --memory-mb 4096<SandboxSpec/><br/>-[Let us know](/getting-help) if you need more powerful compute.+[Let us know](/docs/getting-help) if you need more powerful compute.diff --git a/apps/docs/src/app/(docs)/docs/sandbox/api/process/page.mdx b/apps/docs/src/app/(docs)/docs/sandbox/api/process/page.mdxindex a2f19a414..0519cf5ef 100644--- a/apps/docs/src/app/(docs)/docs/sandbox/api/process/page.mdx+++ b/apps/docs/src/app/(docs)/docs/sandbox/api/process/page.mdx@@ -2,12 +2,12 @@Here are the basic operations you can do with the process inside the sandbox:-- [Start process](/sandbox/api/process#start-process)-- [Stop process](/sandbox/api/process#stop-process)-- [Stdout](/sandbox/api/process#stream-stdout)-- [Stdin](/sandbox/api/process#send-stdin)-- [Stderr](/sandbox/api/process#stream-stderr)-- [On exit](/sandbox/api/process#on-process-exit)+- [Start process](/docs/sandbox/api/process#start-process)+- [Stop process](/docs/sandbox/api/process#stop-process)+- [Stdout](/docs/sandbox/api/process#stream-stdout)+- [Stdin](/docs/sandbox/api/process#send-stdin)+- [Stderr](/docs/sandbox/api/process#stream-stderr)+- [On exit](/docs/sandbox/api/process#on-process-exit)## Start processdiff --git a/apps/docs/src/app/(docs)/docs/sandbox/api/reconnect/page.mdx b/apps/docs/src/app/(docs)/docs/sandbox/api/reconnect/page.mdxindex 6aed66c26..f97f8b001 100644--- a/apps/docs/src/app/(docs)/docs/sandbox/api/reconnect/page.mdx+++ b/apps/docs/src/app/(docs)/docs/sandbox/api/reconnect/page.mdx@@ -8,7 +8,7 @@ The sandboxes are by default kept alive only when connected to them. When you diIf you want to keep the sandbox alive even after disconnecting from it, you can explicitly say for how long you want to keep it alive. You can then disconnect from the sandbox and reconnect to it later. This can be useful for example in a **serverless environment** or **chatbot application**.-The duration limit to keep the sandbox alive is 1 hour. If you need more, feel free to [reach out to us](/getting-help) with your use.+The duration limit to keep the sandbox alive is 1 hour. If you need more, feel free to [reach out to us](/docs/getting-help) with your use.## Keep sandbox alive@@ -39,4 +39,4 @@ You can then reconnect to the sandbox from anywhere./>## Use sandbox metadata-Sandbox metadata can be very useful to store information about the sandbox. You can use it to store the user ID or any other information you need to keep track of and then use this info for reconnecting to the sandbox. You can read more about sandbox metadata [here](/sandbox/api/metadata).\ No newline at end of file+Sandbox metadata can be very useful to store information about the sandbox. You can use it to store the user ID or any other information you need to keep track of and then use this info for reconnecting to the sandbox. You can read more about sandbox metadata [here](/docs/sandbox/api/metadata).\ No newline at end of filediff --git a/apps/docs/src/app/(docs)/docs/sandbox/api/upload/page.mdx b/apps/docs/src/app/(docs)/docs/sandbox/api/upload/page.mdxindex 162f394f8..27362f525 100644--- a/apps/docs/src/app/(docs)/docs/sandbox/api/upload/page.mdx+++ b/apps/docs/src/app/(docs)/docs/sandbox/api/upload/page.mdx@@ -5,7 +5,7 @@ You can upload any file to the sandbox. This is useful if you want to let the LLA popular workflow is for example to upload a CSV data file and then let the LLM generate and execute Python code that operates with the uploaded CSV file inside the sandbox. This way, you can essentially create your own AI data analyst or code interpreter.<Note>-We support uploading files up to 100MB at the moment. If you need to upload larger files, please [reach out to us](/getting-help).+We support uploading files up to 100MB at the moment. If you need to upload larger files, please [reach out to us](/docs/getting-help).</Note><CodeGroupAutoload path="basics/upload_file" isRunnable={false}/>diff --git a/apps/docs/src/app/(docs)/docs/sandbox/compute/page.mdx b/apps/docs/src/app/(docs)/docs/sandbox/compute/page.mdxindex b86b53256..9c05f7315 100644--- a/apps/docs/src/app/(docs)/docs/sandbox/compute/page.mdx+++ b/apps/docs/src/app/(docs)/docs/sandbox/compute/page.mdx@@ -3,13 +3,13 @@ import SandboxSpec from '@/components/SandboxSpec'# Sandbox computePro customers can customize the sandbox with **any combination** of the CPU and RAM based on the following tables.-Read a dedicated page to [learn more about pricing](/pricing).+Read a dedicated page to [learn more about pricing](/docs/pricing).<Note><b>By default your sandbox has 2 vCPU and 512 MiB RAM.</b>-To customize your sandbox compute, you need to build your custom sandbox template using the [E2B CLI](/cli/installation).-Run [`e2b template build`](/cli/commands#template-build) and specify the `--cpu-count` and `--memory-mb` options.+To customize your sandbox compute, you need to build your custom sandbox template using the [E2B CLI](/docs/cli/installation).+Run [`e2b template build`](/docs/cli/commands#template-build) and specify the `--cpu-count` and `--memory-mb` options.For example, this custom build command gives your sandbox 8 vCPU and 4GiB of RAM```sh@@ -21,4 +21,4 @@ e2b template build --cpu-count 8 --memory-mb 4096<br/>-[Let us know](/getting-help) if you need more powerful compute.\ No newline at end of file+[Let us know](/docs/getting-help) if you need more powerful compute.\ No newline at end of filediff --git a/apps/docs/src/app/(docs)/docs/sandbox/custom/page.mdx b/apps/docs/src/app/(docs)/docs/sandbox/custom/page.mdxindex 6d560050a..e21b47066 100644--- a/apps/docs/src/app/(docs)/docs/sandbox/custom/page.mdx+++ b/apps/docs/src/app/(docs)/docs/sandbox/custom/page.mdx@@ -1,13 +1,13 @@# Customizing SandboxCustom sandboxes allows you to spawn a sandbox with a pre-defined environment by you and then control it with our SDK.-You can build a custom sandbox by creating the [Sandbox Template](/sandbox/templates/overview). Sandbox template is a Dockerfile that describes the environment of your sandbox.+You can build a custom sandbox by creating the [Sandbox Template](/docs/sandbox/templates/overview). Sandbox template is a Dockerfile that describes the environment of your sandbox.Once you build your custom sandbox template, you can spawn multiple isolated sandboxes from it.## How it works-1. [Provide the sandbox template file](/sandbox/templates/template-file)-1. [Build a sandbox template from it using our CLI](/guide/custom-sandbox#4-build-custom-sandbox)+1. [Provide the sandbox template file](/docs/sandbox/templates/template-file)+1. [Build a sandbox template from it using our CLI](/docs/guide/custom-sandbox#4-build-custom-sandbox)1. Get a template ID from the CLI:```sh# ... truncated CLI output@@ -45,5 +45,5 @@ Now you can do step 4/5 multiple times using the same ID, always creating a sepa<Note>-Read more on [Sandbox Templates](/sandbox/templates/overview) if you want to create your own custom sandbox.+Read more on [Sandbox Templates](/docs/sandbox/templates/overview) if you want to create your own custom sandbox.</Note>\ No newline at end of filediff --git a/apps/docs/src/app/(docs)/docs/sandbox/overview/page.mdx b/apps/docs/src/app/(docs)/docs/sandbox/overview/page.mdxindex 23a1905bd..250facfb9 100644--- a/apps/docs/src/app/(docs)/docs/sandbox/overview/page.mdx+++ b/apps/docs/src/app/(docs)/docs/sandbox/overview/page.mdx@@ -55,10 +55,10 @@ E2B Sandboxes are made exactly to solve these challenges. The sandbox is like an## How sandboxes work under the hoodWhen you create a new sandbox session, we start a small VM in our cloud. This VM is running a Ubuntu OS and it takes about 400-600ms to start it.-Inside 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.+Inside this sandbox, your AI app can [run code and start any programs](/docs/sandbox/api/process), access the internet to download or upload data, use the [filesystem](/docs/sandbox/api/filesystem), start long running processes such as web servers, and more.+You can also [upload](/docs/sandbox/api/upload) to sandbox and [download](/docs/sandbox/api/upload) from sandbox any file you want.-To start and control the sandbox, use the [E2B SDK](/getting-started/installation) for Python or JavaScript.+To start and control the sandbox, use the [E2B SDK](/docs/getting-started/installation) for Python or JavaScript.<CodeGroupAutoloadtitle="Starting Sandbox"@@ -66,5 +66,5 @@ To start and control the sandbox, use the [E2B SDK](/getting-started/installatio/><Note>-Make sure you have the `E2B_API_KEY` environment variable set with your [API key](/getting-started/api-key).+Make sure you have the `E2B_API_KEY` environment variable set with your [API key](/docs/getting-started/api-key).</Note>diff --git a/apps/docs/src/app/(docs)/docs/sandbox/templates/overview/page.mdx b/apps/docs/src/app/(docs)/docs/sandbox/templates/overview/page.mdxindex 88ef9cc14..2b062e002 100644--- a/apps/docs/src/app/(docs)/docs/sandbox/templates/overview/page.mdx+++ b/apps/docs/src/app/(docs)/docs/sandbox/templates/overview/page.mdx@@ -8,17 +8,17 @@ Custom sandboxes allow you to spawn a sandbox with an environment predefined by<Note>The E2B Sandbox is a secure way to run your AI app. It is a long-running cloud environment where you can let any LLM (GPTs, Claude, local LLMs, etc) use tools exactly like you would do locally.-Read more about E2B Sandboxes [here](/sandbox/overview).+Read more about E2B Sandboxes [here](/docs/sandbox/overview).</Note>## How Custom Sandboxes Work<Note>-Follow our [guide](/guide/custom-sandbox) on how to create a custom sandbox.+Follow our [guide](/docs/guide/custom-sandbox) on how to create a custom sandbox.</Note>-1. You build a custom sandbox by creating the [Sandbox Template](/sandbox/templates/template-file) which is a Dockerfile describing the environment of your sandbox.+1. You build a custom sandbox by creating the [Sandbox Template](/docs/sandbox/templates/template-file) which is a Dockerfile describing the environment of your sandbox.1. Build a sandbox template from it using our CLI1. Get a template ID from the CLI:```sh@@ -65,5 +65,5 @@ Once you build your custom sandbox template, you can spawn multiple isolated san/><Note>-Follow [our guide](/guide/custom-sandbox) on how to create a custom sandbox.+Follow [our guide](/docs/guide/custom-sandbox) on how to create a custom sandbox.</Note>\ No newline at end of filediff --git a/apps/docs/src/app/(docs)/docs/sandbox/templates/start-cmd/page.mdx b/apps/docs/src/app/(docs)/docs/sandbox/templates/start-cmd/page.mdxindex fd27ad580..73f4b68ba 100644--- a/apps/docs/src/app/(docs)/docs/sandbox/templates/start-cmd/page.mdx+++ b/apps/docs/src/app/(docs)/docs/sandbox/templates/start-cmd/page.mdx@@ -7,7 +7,7 @@ The idea behind the start command feature is to lower the wait times for your us## How to add start command-When you are building a sandbox template you can specify the start command by using the [`-c`](/cli/commands#build) option:+When you are building a sandbox template you can specify the start command by using the [`-c`](/docs/cli/commands#build) option:```bashe2b build -c "<your-start-command>"@@ -17,7 +17,7 @@ When you spawn the custom sandbox you built, the start command will be already r## How it works-Every time you are building a [custom sandbox](/guide/custom-sandbox), we create a container based on the [`e2b.Dockerfile`](/sandbox/templates/template-file) file you create in the process.+Every time you are building a [custom sandbox](/docs/guide/custom-sandbox), we create a container based on the [`e2b.Dockerfile`](/docs/sandbox/templates/template-file) file you create in the process.We extract the container's filesystem and start a sandbox with this extracted filesystem.We call this sandbox a _template sandbox_.diff --git a/apps/docs/src/app/(docs)/docs/sandbox/templates/template-file/page.mdx b/apps/docs/src/app/(docs)/docs/sandbox/templates/template-file/page.mdxindex 3e94c31f4..be02d47a0 100644--- a/apps/docs/src/app/(docs)/docs/sandbox/templates/template-file/page.mdx+++ b/apps/docs/src/app/(docs)/docs/sandbox/templates/template-file/page.mdx@@ -6,7 +6,7 @@ import imgCustomSandbox from '@/images/custom-sandbox.png'The template file is a Dockerfile named `e2b.Dockerfile`. The template file is used to define an environment for your custom sandbox. {{ className: 'lead' }}<Note>-Follow our [guide](/guide/custom-sandbox) on how to create a custom sandbox.+Follow our [guide](/docs/guide/custom-sandbox) on how to create a custom sandbox.</Note><Image