In this study, we identified IDO1 as a biomarker to distinguish T cell dysfunction subtypes in BRAF V600E-mutant CRC through LASSO and random forest algorithms. The gene discussed is BRAF; the disease is colorectal carcinoma.