Peanuts are typically grown in continuous monoculture in China, leading to continuous cropping obstacles and reduced yields. Cover cropping is emerging as a pivotal strategy for enhancing soil quality and promoting sustainable agriculture. However, the effects of cover crops on the rhizosphere environment, and how they benefit subsequent crops, are not well understood. We hypothesize that planting cover crop ryegrass during the winter fallow period could alter peanut rhizosphere sediments, recruit plant growth-promoting microorganisms, and ultimately enhance peanut production. This study aims to fill this gap by investigating the impact of ryegrass cover cropping on rhizosphere sediments and peanut yield. Rhizosphere soil organic carbon, total nitrogen, pH, and soil enzymes, including sucrase, urease, N-acetyl-β-D-glucosaminidase, and β-glucosidase, were analyzed, along with metabolomics, 16S rRNA, and fungal ITS sequence analyses, under traditional planting management (TP) and long-term cover crop (CC) treatments. The results showed that CC treatment significantly increased rhizosphere pH, enhanced soil organic carbon and total nitrogen levels, and elevated soil enzyme activities compared to TP treatment. Metabolomic analysis revealed that CC treatment upregulated compounds such as D-pinitol, palmitoleic acid, fructose, sorbitol, and sucrose, while downregulated compounds including benzoic acid, dodecanoic acid, and carbamic acid. This alteration in metabolite composition influenced the recruitment and function of the microbial community. Specifically, CC treatment markedly enhanced the abundance of growth-promoting microbes such as Bacillus, Paenibacillus, Pseudomonas, Lysobacter, Bradyrhizobium, and Mortierell etc., which are involved in important functions such as chemoheterotrophy, nitrate reduction, and plant saprotroph. Simultaneously, there was a decrease in pathogenic microorganisms, such as Aspergillus flavus and Fusarium oxysporum. Moreover, CC treatment positively influenced peanut root growth, resulting in longer roots and ultimately increase pod yield by 21.15 % compared to traditional winter fallow practices. These findings underscore the potential of cover cropping with ryegrass to improve rhizosphere microecosystem components, and ultimately enhance peanut productivity, providing valuable insights for sustainable agricultural practices.