Trehalose-6-phosphate phosphatase (TPP), a key enzyme for trehalose biosynthesis in plants, plays a pivotal role in the growth and development of higher plants, as well as their adaptations to various abiotic stresses. Employing bioinformatics techniques, 45 TPP genes distributed across 17 chromosomes were identified with conserved Trehalose-PPase domains in the peanut genome, aiming to screen those involved in salt tolerance. Collinearity analysis showed that 22 TPP genes from peanut formed homologous gene pairs with 9 TPP genes from Arabidopsis and 31 TPP genes from soybean, respectively. Analysis of cis-acting elements in the promoters revealed the presence of multiple hormone- and abiotic stress-responsive elements in the promoter regions of AhTPPs. Expression pattern analysis showed that members of the TPP gene family in peanut responded significantly to various abiotic stresses, including low temperature, drought, and nitrogen deficiency, and exhibited certain tissue specificity. Salt stress significantly upregulated AhTPPs, with a higher number of responsive genes observed at the seedling stage compared to the podding stage. The intuitive physiological effect was reflected in the significantly higher accumulation of trehalose content in the leaves of plants under salt stress compared to the control. These findings indicate that the TPP gene family plays a crucial role in peanut’s response to abiotic stresses, laying the foundation for further functional studies and utilization of these genes.