Intrahepatic cholangiocarcinoma (ICC) is a universally lethal malignancy with increasing incidence. However, ICC patients receive limited benefits from current drugs; therefore, we must urgently explore new drugs for treating ICC. Quinolizidine alkaloids, as essential active ingredients extracted from Sophora alopecuroides Linn, can suppress cancer cell growth via numerous mechanisms and have therapeutic effects on liver-related diseases. However, the impact of quinolizidine alkaloids on intrahepatic cholangiocarcinoma has not been fully studied. In this article, the in vitro anti-ICC activities of six natural quinolizidine alkaloids were explored. Aloperine was the most potent antitumor compound among the tested quinolizidine alkaloids, and it preferentially inhibited RBE cells rather than HCCC-9810 cells. Mechanistically, aloperine can potentially decrease glutamate content by inhibiting the hydrolysis of glutamine, reducing D-2-hydroxyglutarate levels and, consequently, leading to preferential growth inhibition in isocitrate dehydrogenase (IDH)-mutant ICC cells. In addition, aloperine preferentially resensitizes RBE cells to 5-fluorouracil, AGI-5198 and olaparib. This article demonstrates that aloperine shows preferential antitumor effects in intrahepatic cholangiocarcinoma cells harboring the mutant IDH1 by decreasing D-2-hydroxyglutarate, suggesting that aloperine could be used as a lead compound or adjuvant chemotherapy drug to treat ICC harboring the mutant IDH.