An electrolyte includes a polar aprotic solvent; an alkali metal salt; and an electrode stabilizing compound that is a monomer, which when polymerized forms an electrically conductive polymer. The electrode stabilizing compound is a thiophene, a imidazole, a anilines, a benzene, a azulene, a carbazole, or a thiol. Electrochemical devices may incorporate such electrolytes.