Abstract. We consider the quasi-de Sitter geometry of the inflationary universe. We calculate the energy flux of the slowly rolling background scalar field through the quasi-de Sitter apparent horizon and set it equal to the change of the entropy (1/4 of the area) multiplied by the temperature, dE = TdS. Remarkably, this thermodynamic law reproduces the Friedmann equation for the rolling scalar field. The flux of the slowly rolling field through the horizon of the quasi-de Sitter geometry is similar to the accretion of a rolling scalar field onto a black hole, which we also analyse. Next we add inflaton fluctuations which generate scalar metric perturbations. Metric perturbations result in a variation of the area entropy. Again, the equatio...