Skip to content

armgit / E2B

Public Imported from GitHub
0

Open-source, secure environment with real-world tools for enterprise-grade agents.

Use the configured team

Jakub Novakdab4975df8c6
diff --git a/packages/cli/src/api.ts b/packages/cli/src/api.ts
index 0bed5aa02..e8530630c 100644
--- a/packages/cli/src/api.ts
+++ b/packages/cli/src/api.ts
@@ -26,7 +26,7 @@ export function ensureAPIKey() {
// If apiKey is not already set (either from env var or from user config), try to get it from config file
if (!apiKey) {
const userConfig = getUserConfig()
- apiKey = userConfig?.defaultTeamApiKey
+ apiKey = userConfig?.teamApiKey || userConfig?.defaultTeamApiKey
}
if (!apiKey) {