Due to its promise in electronics and electric car applications, lithium metal batteries (LMBs) have received a lot of interest. However, problems like Li dendrite formation and unfavorable electrolyte side reactions during electrochemical cycling prevent their broad commercialization.