Prebiotic chemical evolution on the early Earth may have been driven in part by fluctuating environments, for example wet‒dry and temperature cycling in volcanic rock pools. Here, we describe the setup, operating principle and test applications of a newly developed ‘wet‒dry apparatus’ (WDA) designed to simulate such fluctuating environments. The WDA allows adjusting the duration of the cycles, the temperature during the wet and dry phases and the organic and mineral components, which are all key parameters in wet–dry simulations. The WDA's most important features, however, are (i) that it is automated, which means that long-time experiments are possible without the need for an operator and (ii) that the virtual absence of free oxygen in the early Earth's atmosphere at ground level can be simulated. Rigorously oxygen-free conditions were achieved by passing 99.999% nitrogen gas through two alkaline pyrogallol solutions in series, prior to entering the WDA. We used three chemical systems to test the WDA: (i) the amino acid glycine in the presence and absence of clay minerals, (ii) linoleic acid (an oxygen-sensitive amphiphile) with and without the mineral olivine, and (iii) alkaline pyrogallol solution. We observed that clay minerals greatly accelerated the decomposition of glycine under wet‒dry conditions. Glycine peptides were formed as minor products. In the course of the glycine experiments, we developed a reliable gas chromatographic method to quantify the cyclic dipeptide 2,5-diketopiperazine. The decomposition of linoleic acid in wet‒dry cycles was promoted by both air and olivine. And finally, the extremely oxygen-sensitive pyrogallol solution was used as a colour indicator for residual oxygen in the WDA. The simulation facility in our laboratory currently consists of eight identical WDAs and a surrounding infrastructure. It can be made available to others who wish to perform cyclic wet–dry experiments.