This paper proposes an energy management method based on cloud computing to promote the integration of renewable energy in heterogeneous energy systems. Firstly, energy suppliers and energy producers and consumers form a virtual energy provider to directly participate in the transaction of heterogeneous energy systems. Secondly, establish a cloud computing model for energy trading in the system. Then, considering minimizing the energy use cost of customers and maximizing the income of energy suppliers, a linear programming model is established to promote the integration of renewable energy. The proposed method is tested in the scenarios of different number of users, proportion of renewable energy and energy storage structure, and compared with the traditional management method. Simulation results show that compared with MT method, the proposed method can reduce the system cost by more than 30%, and the calculation time can meet the real-time energy management service.