At present, the energy density of commercial lithium-ion batteries has been approaching the limit. Liquid lithium metal batteries (LMBs) are favored for their high-energy-density (>500 Wh kg−1), but commercialization is hampered by the flammability and explosiveness of the liquid solvent and the growth of Li dendrites.