The multipole polymer framework decorated with cyanide and fluorine bipolar groups (CNF-COF) has been explored as an efficient and stable ion sieve, which can be combined with solid polymer electrolytes through electronic modulation for high probability use in long-life all solid state (ASS) lithium batteries. The combination of CNF-COF not only provides rapid and selective lithium ion conduction, but also enables the formation of SEI rich in LiF, thereby forming a stable lithium anode. Therefore, the newly developed composite electrolyte with ultra-low CNF-COF content of 0.5wt% endows ASS lithium metal batteries with excellent cycling stability of over 2000 cycles at 1 ℃ and over 1000 cycles at 2 ℃.