The article uses computer modeling to study the use of ground heat pumps from alternative energy sources in the heat supply of the city of Kelbajar. For this purpose, the experience of developed countries was studied and a diagram of the heat supply system of the object under study was selected using computer modeling. The bivalent-parallel operating mode of the heat pump system was adopted and studied, and the conversion coefficient of the heat pump was calculated. The storage tank and its parameters for heat accumulation are selected. An auxiliary boiler was selected to meet the heating demand during the peak period and its characteristic parameters were determined. A solar collector was used as an additional heat source. The quantity, geometric dimensions and other parameters of the solar collector have been determined. The characteristics of the soil probe are given in the table. It is accepted that the working fluid of the probe is a 25% water-glycol solution. The temperature of the soil around the probe, the temperature of the working fluid at the inlet and outlet of the heat pump are determined and specified in the form of a graph. For the heating system, the heat load of the heat pump, solar collector, auxiliary boiler into the system and the conversion coefficient of the heat pump are graphically shown. As a result of the simulation, the energy produced (annual), losses (annual), energy used (annual), solar circuit, the required power and presented in the form of a table. The influence of the heat pump system on the environment is studied and it is shown that it is an environmentally friendly heat and cold supply system.