Sharing heating infrastructure on the basis of energy cooperatives can be a solution for decarbonising a significant part of residential buildings in cities. Heat supply accounts for a significant part of energy consumption and greenhouse gas emissions in cities. At the same time, many buildings are equipped with single-storey gas-fired boilers, which are unsustainable to operate in the longer term with the rising carbon price and the shift away from natural gas.