The molecular mechanism of Chinese cordyceps formation has received a substantial amount of attention because of its usage as traditional Chinese medicine. The formation process of Chinese cordyceps includes two parts: asexual proliferation (Ophiocordyceps sinensis proliferates in the hemolymph of Thitarodes armoricanus larvae) and sexual development (formation and development of fruiting bodies). Therefore, validation of reference genes under different development stages and experimental conditions is crucial for RT-qPCR analysis. However, there is no report on stable reference genes at the development stage of O. sinensis fruiting body. In this study, 10 candidate reference genes, Actin, Cox5, Tef1, Ubi, 18s, Gpd, Rpb1, Try, Tub1 and Tub2, were selected and calculated their expression stability using four methods: geNorm, NormFinder, BestKeeper, and Comparative △Ct. After comprehensive analysis of the results of these four methods with RefFinder, we determined that the most stable reference genes during asexual reproduction of O. sinensis were Tef1 and Tub1, while the most stable reference genes during fruiting body development were Tyr and Cox5, and the most stable reference genes under light-induced conditions were Tyr and Tef1. Our study provides a guidance for reference genes selections at different proliferation processes with light stress of O. sinensis, and represents a foundation for studying the molecular mechanism of Chinese cordyceps formation.