The most used hole transport material in high-performance perovskite solar cells (PSCs) is the lithium compounds-doped 2,2′,7,7′-tetrakis(N,N-di-p-methoxyphenylamine)-9,9′-spirobifluorene (Spiro-OMeTAD). However, PSCs based on the Spiro-OMeTAD suffer from serious instability induced by Li+ migration and aggregation. Herein, nano-graphdiyne (nano-GDY) was incorporated into the Spiro-OMeTAD to retard such free Li+ movement and reduce its impact on device operation stability. We verify that the nano-GDY-modified HTL efficiently enhances carrier transport and promotes favorable energy level alignment compared to that of the control HTL, contributing to improved device performance. Furthermore, the coordination interaction between the nano-GDY and Li+ significantly retrains the Li+ migration into the perovskite and SnO2 layers, and meanwhile, eliminates their aggregation with HTLs under elevated temperature and prolonged light soaking. Consequently, the nano-GDY incorporated PSCs exhibit a champion power-conversion efficiency (PCE) of 24.16 % with negligible hysteresis. Encouragingly, the devices also exhibit robust stability, retaining 97 % and 80 % of peak PCE at maxima power point tracking for 6000 s and continuous illumination for 1080 h, respectively.