Lithium-ion batteries (LIBs) provide many benefits, but trace electrolyte leakage can cause serious safety risks such as thermal runaway. Although gas sensors offer a potential solution, the complexity of electrolyte solvents in LIBs makes it challenging to develop sensing materials capable of universally detecting multiple solvent molecules. Here, Ag@Ag