Lithium metal batteries (LMBs) have attracted much attention for their potential in electronics and electric vehicle applications. However, issues such as the growth of Li dendrites and undesirable side reactions with electrolytes during electrochemical cycling hinder their widespread commercialization.