Peak alignment is a crucial step in liquid chromatography-mass spectrometry (LC-MS)-based large-scale untargeted metabolomics workflows, as it enables the integration of metabolite peaks across multiple samples, which is essential for accurate data interpretation. Slight differences or fluctuations in chromatographic separation conditions, however, can cause the chromatographic retention time (RT) shift between consecutive analyses, ultimately affecting the accuracy of peak alignment between samples. Here, we introduce a novel RT shift correction method based on the retention index (RI) and apply it to peak alignment. We synthesized a series of Nacyl glycine (C2−C23) homologues via the amidation reaction between glycine with normal saturated fatty acids (C2−C23) as calibrants able to respond proficiently in both mass spectrometric positive-and negative-ion modes. Using these calibrants, we established an N-acyl glycine RI system. This RI system is capable of covering a broad chromatographic space and addressing chromatographic RT shift caused by variations in flow rate, gradient elution, instrument systems, and LC separation columns. Moreover, based on the RI system, we developed a peak shift correction model to enhance peak alignment accuracy. Applying the model resulted in a significant improvement in the accuracy of peak alignment from 15.5 to 80.9% across long-term data spanning a period of 157 days. To facilitate practical application, we developed a Python-based program, which is freely available at https://github.com/WHU-Fenglab/RI-based-CPSC.