We prove the existence and uniqueness of the weak Kähler–Ricci flow on projective varieties with log terminal singularities. We also show that the weak Kähler–Ricci flow can be uniquely continued through divisorial contractions and flips if they exist. Finally we propose an analytic version of the minimal model program with Ricci flow.