In this work, 3-Bromo-N-methylbenzylamine (3-B-N-MB) was designed to modify CsPbI2Br/hole transport layer interface to reduce the interfacial non-radiative recombination loss of all-inorganic CsPbI2Br perovskite solar cells (PSCs). The effects of 3-B-N-MB modification on the morphology, structure, optical absorption, defect concentration, carrier lifetime, energy level, hydrophobicity of CsPbI2Br perovskite film and device performance, and carrier dynamics, as well as their mechanisms were systematically studied. The results show that the lone pair electrons in the N atom of N-H group in strongly alkaline 3-B-N-MB is more conducive to coordinate with uncoordinated Pb2+/Cs+ in CsPbI2Br, meanwhile the H atom of N-H group in 3-B-N-MB can react with I−/Br− in CsPbI2Br through hydrogen bonding, passivating interface defects to increase grain size and enhance the crystallinity and density of CsPbI2Br films, optimizing interface energy level matching to promote carrier transport, thus suppressing interfacial non-radiative recombination to improve device performance. As a result, the PCE of the 3-B-N-MB modified PSCs significantly enhanced ∼32.5 % as compared to that of the pristine one and the air stability of the device has also improved. The 3-B-N-MB modification provides a new strategy to enhance the efficiency and stability of all-inorganic perovskite solar cells.