The electrochemical reaction rate strongly depends on the pH of the solution and the relatively sluggish alkaline hydrogen evolution reaction (HER) process, attributed to alterations in the type of proton donor and binding energy, has consistently presented a significant challenge. Here, we report a new method for boosting alkaline HER via spontaneous built-in electric field strategy employed on cobalt phosphide nanofibers (NFs) electrocatalyst. The anion–cation dual-introduction of V and N on the NFs not only increases the electrochemical surface area but also enhances the catalytic activity, thereby elevating the performance of alkaline HER. An investigation strategy combining experiments and calculations revealed the charge transfer law between multiple active components and the enhanced regulation mechanism of alkaline HER process, ultimately achieving a nearly twice increase in reaction overpotential of the as-fabricated catalyst at − 10 mA·cm−2. This new approach provides a potential strategy for improving the efficiency of core catalyst for energy conversion technologies.