Open-source, secure environment with real-world tools for enterprise-grade agents.
Python agentaiai-agentai-agentscode-interpretercopilotdevelopmentdevtoolsgptgpt-4javascriptllmnextjsopenaipythonreactsoftwaretypescript
Improve READMEs and links to get access token / api key
Jakub Novakba78ba09d5ef
diff --git a/packages/cli/README.md b/packages/cli/README.mdindex 4ed379a84..8a5a16773 100644--- a/packages/cli/README.md+++ b/packages/cli/README.md@@ -21,8 +21,11 @@ e2b auth login> [!NOTE]> To authenticate without the ability to open the browser, provide> `E2B_ACCESS_TOKEN` as an environment variable. Get your `E2B_ACCESS_TOKEN`-> from [e2b.dev/docs](https://e2b.dev/docs). Then use the CLI like this:+> from the Personal tab at [e2b.dev/dashboard](https://e2b.dev/dashboard). Then use the CLI like this:> `E2B_ACCESS_TOKEN=sk_e2b_... e2b build`.+> [!IMPORTANT]+> Note the distinction between `E2B_ACCESS_TOKEN` and `E2B_API_KEY`.+### 3. Check out docsVisit our [CLI documentation](https://e2b.dev/docs) to learn more.diff --git a/packages/js-sdk/src/api/index.ts b/packages/js-sdk/src/api/index.tsindex 977828d15..2d31fd108 100644--- a/packages/js-sdk/src/api/index.ts+++ b/packages/js-sdk/src/api/index.ts@@ -36,7 +36,7 @@ class ApiClient {) {if (!opts?.requireApiKey && !config.apiKey) {throw new AuthenticationError(- 'API key is required, please visit https://e2b.dev/docs to get your API key. ' ++ 'API key is required, please visit the Team tab at https://e2b.dev/dashboard to get your API key. ' +'You can either set the environment variable `E2B_API_KEY` ' +"or you can pass it directly to the sandbox like Sandbox.create({ apiKey: 'e2b_...' })")@@ -44,7 +44,7 @@ class ApiClient {if (opts?.requireAccessToken && !config.accessToken) {throw new AuthenticationError(- 'Access token is required, please visit https://e2b.dev/docs to get your access token. ' ++ 'Access token is required, please visit the Personal tab at https://e2b.dev/dashboard to get your access token. ' +'You can set the environment variable `E2B_ACCESS_TOKEN` or pass the `accessToken` in options.')}diff --git a/packages/python-sdk/e2b/api/__init__.py b/packages/python-sdk/e2b/api/__init__.pyindex f3d3c1988..665c3dc78 100644--- a/packages/python-sdk/e2b/api/__init__.py+++ b/packages/python-sdk/e2b/api/__init__.py@@ -61,7 +61,7 @@ class ApiClient(AuthenticatedClient):if require_api_key:if config.api_key is None:raise AuthenticationException(- "API key is required, please visit https://e2b.dev/docs to get your API key. "+ "API key is required, please visit the Team tab at https://e2b.dev/dashboard to get your API key. ""You can either set the environment variable `E2B_API_KEY` "'or you can pass it directly to the sandbox like Sandbox(api_key="e2b_...")',)@@ -70,7 +70,7 @@ class ApiClient(AuthenticatedClient):if require_access_token:if config.access_token is None:raise AuthenticationException(- "Access token is required, please visit https://e2b.dev/docs to get your access token. "+ "Access token is required, please visit the Personal tab at https://e2b.dev/dashboard to get your access token. ""You can set the environment variable `E2B_ACCESS_TOKEN` or pass the `access_token` in options.",)token = config.access_token