The integration of methanol oxidation reaction (MOR) with hydrogen evolution reaction (HER) represents an advanced approach to hydrogen production technology. Nonetheless, the rational design and synthesis of bifunctional catalysts for both MOR and HER with exceptional activity, stability and selectivity present formidable challenges. In this work, firstly, density functional theory (DFT) was utilized to design and evaluate material models with high performance for both MOR and HER. Secondly, guided by DFT, Co30Ni60/CC (CC, carbon cloth) composites with a leaf-like nanosheet structure were successfully fabricated via electrodeposition. In the MOR process, Ni acts as the predominant active center, while Co amplifies the electrochemically active surface area (ECSA) and enhances the selectivity of methanol oxidation. Conversely, in the HER process, Co serves as the primary active center, with Ni augmenting the charge transfer rate. The electrochemical results demonstrate that Co30Ni60/CC exhibits exceptional performance in both MOR and HER at a current density (j) of 10 mA cm−2, with peak potentials of 1.323 V and −95 mV, respectively. Additionally, it shows remarkable selectivity for the oxidiation of methanol to high value-added formic acid. Thirdly, following a 100 h chronopotentiometry (CP) test, the required potential demonstrates an increase of 4.9 % (MOR) and 8.1 % (HER), signifying the superior stability of Co30Ni60/CC compared to those reported in the literature. The exceptional performance of Co30Ni60/CC can be primarily attributed to that the leaf-like nanosheets structure not only exposes a plethora of active sites but also facilitates electrolyte diffusion, the monolithic structure prepared by electrodeposition enhances its stability, and the transfer of electrons from Co to Ni regulates its electronic structure, as corroborated by X-ray photoelectron spectroscopy (XPS) and density of states (DOS) analyses. Finally, at the same j, the voltage required by the Co30Ni60/CC||Co30Ni60/CC electrolytic cell, powered by an electrochemical workstation, is 198 mV lower than that required for alkaline water-splitting. Meanwhile, at higher j (100 mA cm−2), the electrolytic cell exhibits sustained and stable operation for 150 h, enabling high-efficiency hydrogen production and the synthesis of high value-added formic acid.