Peanut allergy has garnered worldwide attention due to its high incidence rate and severe symptoms, stimulating the demand for the ultrasensitive detection method of peanut allergen. Herein, we successfully developed a novel electrochemical aptasensor for ultrasensitive detection Ara h1, a major allergenic protein present in peanuts. A conductive nickel atoms Anchored Hydrogen-Bonded Organic Frameworks (PFC-73-Ni) were utilized as excellent electrocatalysts toward hydroquinone (HQ) oxidation to generate a readable current signal. The developed electrochemical aptasensor offers wide linear range (1–120 nM) and low detection limit (0.26 nM) for Ara h1. This method demonstrated a recovery rate ranging from 95.00% to 107.42% in standard addition detection of non-peanut food samples. Additionally, the developed electrochemical method was validated with actual samples and demonstrated good consistency with the results obtained from a commercial ELISA kit. This indicates that the established Ara h1 detection method is a promising tool for peanut allergy prevention.