+ {codexAuthStatus?.authenticated ? (
+ <>
+
+
+
+ Method:{" "}
+
+ {codexAuthStatus.method === "cli_verified" ||
+ codexAuthStatus.method === "cli_tokens"
+ ? "CLI Login (OpenAI Account)"
+ : codexAuthStatus.method === "api_key"
+ ? "API Key (Auth File)"
+ : codexAuthStatus.method === "env"
+ ? "API Key (Environment)"
+ : "Unknown"}
+
+
+
+ {codexAuthStatus.method === "cli_verified" ||
+ codexAuthStatus.method === "cli_tokens" ? (
+
+
+ Account authenticated
+
+ ) : codexAuthStatus.apiKeyValid ? (
+
+
+ API key configured
+
+ ) : null}
+ {apiKeyStatus?.hasOpenAIKey && (
+
+
+ Environment variable detected
+
+ )}
+ {apiKeys.openai && (
+
+
+ Manual API key in settings
+
+ )}
+ >
+ ) : apiKeyStatus?.hasOpenAIKey ? (
+
+
+ Using environment variable (OPENAI_API_KEY)
+
+ ) : apiKeys.openai ? (
+
+
+ Using manual API key from settings
+
+ ) : (
+
+ )}
+