In this study, we detected the Kyn to Trp ratio to evaluate the value of IDO activity as a predictive biomarker of PCP in AIDS patients. Here, IDO1 is linked to pneumocystosis.