An electrochemical system that can serve as a heat engine or heat pump is disclosed. The electrochemical system comprises a first electrode assembly a second electrode assembly a first electrolyte and a second electrolyte. The first electrode assembly configured to operate at a first temperature includes a first ele...