Hydrogen energy has various advantages such as cleanliness, storage and high energy carrier, which is considered to be one of the key paths to achieve the goal of “double carbon”. Utilization of hydrogen production in renewable energy is an important technical means to achieve new energy amazing and energy cleaning utilization. In response to the uncertainty characteristics of local scenery resources and local electricity load and hydrogen load demand, considering the investment cost of hydrogen storage system and the influence of flexible load of electric load on the optimal operation of the system, a two-stage distributed robust optimization model for hydrogen production system (H2-RES) from renewable energy is established, the capacity of the first stage hydrogen production system is determined by the system economy, and the second stage is designed to optimize the real-time scheduling of the system, aiming at the total operating cost, which is solved by C&CG algorithm, finally, an example is given to verify the validity of the proposed model.