The poor electrochemical stability window and low ionic conductivity in solid-state electrolytes hinder the development of safe, high-voltage, and energy-dense lithium metal batteries. Herein, taking advantage of the unique electronic effect of nitrile groups, we designed a novel azanide-based single-ion covalent organic framework (CN-iCOF) structure that possesses effective Li