Open-source, secure environment with real-world tools for enterprise-grade agents.
Python agentaiai-agentai-agentscode-interpretercopilotdevelopmentdevtoolsgptgpt-4javascriptllmnextjsopenaipythonreactsoftwaretypescript
Update docs page about env vars
Vasek Mlejnskyc1a883b61516
diff --git a/apps/web/src/app/(docs)/docs/sandbox/environment-variables/page.mdx b/apps/web/src/app/(docs)/docs/sandbox/environment-variables/page.mdxindex f9e94bd08..4aea88861 100644--- a/apps/web/src/app/(docs)/docs/sandbox/environment-variables/page.mdx+++ b/apps/web/src/app/(docs)/docs/sandbox/environment-variables/page.mdx@@ -4,9 +4,8 @@ This page covers how to set and use environment variables in a sandbox, and defa## Default environment variables### Knowing if you are inside a sandbox-<Note>-Sometimes it's useful to know if you are inside a sandbox. Upon creating a sandbox, an environment variable `E2B_SANDBOX` is set to `true`.-</Note>+Sometimes it's useful to know if the code is running inside a sandbox. Upon creating a sandbox, an environment variable `E2B_SANDBOX` is automatically set to `true`.+You can try it out by running the following code in the sandbox:<CodeGroup>```js@@ -15,7 +14,7 @@ const result = await sandbox.commands.run('echo $E2B_SANDBOX')``````pythonsandbox = Sandbox()-result = sandbox.run_code("import os; os.getenv('E2B_SANDBOX')")+result = sandbox.commands.run("echo $E2B_SANDBOX")```</CodeGroup>