Sex determination in animals is not only determined by karyotype but can also be modulated by environmental cues like temperature via unclear transduction mechanisms. Moreover, in contrast to earlier views that sex may exclusively be determined by either karyotype or temperature, recent observations suggest that these factors rather co-regulate sex, posing another mechanistic mystery. Here, we discovered that certain wild-isolated and mutant C. elegans strains displayed genotypic germline sex determination (GGSD), but with a temperature-override mechanism. Further, we found that BiP, an ER chaperone, transduces temperature information into a germline sex-governing signal, thereby enabling the coexistence of GGSD and temperature-dependent germline sex determination (TGSD). At the molecular level, increased ER protein-folding requirements upon increased temperatures lead to BiP sequestration, resulting in ERAD-dependent degradation of the oocyte fate-driving factor, TRA-2, thus promoting male germline fate. Remarkably, experimentally manipulating BiP or TRA-2 expression allows to switch between GGSD and TGSD. Physiologically, TGSD allows C. elegans hermaphrodites to maintain brood size at warmer temperatures. Moreover, BiP can also influence germline sex determination in a different, non-hermaphroditic nematode species. Collectively, our findings identify thermosensitive BiP as a conserved temperature sensor in TGSD, and provide mechanistic insights into the transition between GGSD and TGSD.