Open-source, secure environment with real-world tools for enterprise-grade agents.
Python agentaiai-agentai-agentscode-interpretercopilotdevelopmentdevtoolsgptgpt-4javascriptllmnextjsopenaipythonreactsoftwaretypescript
Respect `E2B_DOMAIN` for `e2b auth login` in CLI (#701)
Jakub Novák64f2f71309db
diff --git a/.changeset/spotty-eagles-complain.md b/.changeset/spotty-eagles-complain.mdnew file mode 100644index 000000000..5728c6a96--- /dev/null+++ b/.changeset/spotty-eagles-complain.md@@ -0,0 +1,5 @@+---+'@e2b/cli': patch+---++Use `E2B_DOMAIN` for auth logindiff --git a/packages/cli/src/user.ts b/packages/cli/src/user.tsindex b2dbbfcd5..808933c9a 100644--- a/packages/cli/src/user.ts+++ b/packages/cli/src/user.ts@@ -14,7 +14,7 @@ export interface UserConfig {}export const USER_CONFIG_PATH = path.join(os.homedir(), '.e2b', 'config.json') // TODO: Keep in Keychain-export const DOCS_BASE = process.env.E2B_DOCS_BASE || 'https://e2b.dev/docs'+export const DOCS_BASE = process.env.E2B_DOCS_BASE || `https://${process.env.E2B_DOMAIN || 'e2b.dev'}/docs`export function getUserConfig(): UserConfig | null {if (!fs.existsSync(USER_CONFIG_PATH)) return null