Introducing thermal energy storage (TES) and solar energy effectively reduces fossil fuel consumption and greenhouse gas emissions in combined cooling, heating, and power (CCHP) systems. This study establishes a two-layer optimization framework to obtain the optimal configuration of the CCHP system coupling solar and thermal energy storage. The outer layer uses component sizes as decision variables to optimize the system's annual economic economy, annual carbon dioxide emissions, and annual primary energy consumption; the inner layer uses equipment output as decision variables to optimize the operation and maintenance costs. Firstly, the representative typical scenes were obtained using the k-means algorithm to reduce the computational complexity. Then, the multi-objective chaos optimization (MOCGO) algorithm is combined with mixed-integer linear programming (MILP) to obtain the established optimization model's configuration scheme and optimal operating strategy. TOPSIS is to rank the best Pareto solutions. Finally, a large hotel is a case study. The optimization results indicate that the proposed two-layer optimization model can achieve the optimal configuration scheme and scheduling strategy for hybrid CCHP. Compared to the rule-based multi-objective one-layer optimization model, the proposed two-layer optimization model can achieve maximum improvements of 30.63 %, 37.94 %, and 38.16 % in economic, energy, and environmental performance. Compared with the rule-based single-objective one-layer optimization model, the proposed two-layer optimization model can achieve maximum improvements of 34.95 %, 35.81 %, and 37.55 % in economic, energy, and environmental performance, respectively. In addition, TES can substantially increase the optimal performance of the two-layer optimization model.