Large-scale access to distributed energy resources leads to new energy consumption problems and safe operation risks in the power system. Virtual power plants and shared energy storage are effective ways to promote the flexible consumption of distributed energy resources and improve the reliability and economy of power system operation. Based on the concept of sharing economy and considering the complementary characteristics of source and load resources between different virtual power plants, this paper focuses on the optimisation of shared energy storage and multi-virtual power plant operation. Firstly, distributed wind power, distributed photovoltaic and flexible load resources are aggregated into virtual power plants to analyze the cooperative operation mode of shared energy storage and multi-virtual power plant systems. Secondly, a two-layer decision model for shared energy storage configuration and multi-VPP system operation optimisation is constructed, with the upper model solving the optimal energy storage configuration scheme by maximising the revenue of the shared energy storage operator, and the lower model optimising the multi-VPP system operation strategy by minimising the total operation cost, the maximum amount of new energy consumed, and the minimum amount of carbon emission as the multi-objective optimisation strategy. Finally, a simulation analysis is carried out, and the results show that compared with the independent operation mode of each virtual power plant, the model proposed in this paper increases the annual profit of the shared energy storage operator by 7180¥, reduces the operating cost of the VPP system by 7.08 %, improves the rate of renewable energy consumption by 0.82 %, and reduces the annual carbon emission by 54.91 t, which realizes the mutual benefits of the virtual power plant and the shared energy storage.