Abstract. In recent years the variability of the cosmic ray flux has become one of the main issues interpreting cosmogenic elements and especially their connection with climate. In this review, an interdisciplinary team of scientists brings together our knowledge of the evolution and modulation of the cosmic ray flux from its origin in the Milky Way, during its propagation through the heliosphere, up to its interaction with the Earth's magnetosphere, resulting, finally, in the production of cosmogenic isotopes in the Earth' atmosphere. The interpretation of the cosmogenic isotopes and the cosmic ray -cloud connection are also intensively discussed. Finally, we discuss some open questions.