We present Sipgi, a spectroscopic pipeline to reduce optical/near-infrared data from slit-based spectrographs. Sipgi is a complete spectroscopic data reduction environment, which retains the high level of flexibility and accuracy typical of the standard ‘by-hand’ reduction methods but is characterized by a significantly higher level of efficiency. The current version of Sipgi manages data from the MODS and LUCI spectrographs mounted at the Large Binocular Telescope