In this article, the aim is to develop a model for efficient energy management using hybrid energy to power a drilling rig. This involves utilizing wind turbines and emergency generators, as well as charging battery storage systems with recycled energy from the depot through regenerative braking. The goal is to decrease the fuel consumption of diesel generators, while also reducing energy costs and environmental impact. The model takes into account the combined energy demand for diesel generators and battery charging as input. The results indicate that the proposed model can reduce operating costs and greenhouse gas emissions by over 25% compared to using only diesel generators. Analysis of 365 days in the last year reveals that three-quarters of operating costs could be saved due to random loading on the drilling rig. The investment payback period is estimated to be 1 year and 4 months. The proposed micro-drilling rig network with the optimal battery system and energy recovery has a lower life cycle cost of $1,500,000 with a $114,000 investment, compared to $5,400,000 for the baseline method. A reservation cost of $4,000,000 can be achieved within three-quarters of the specified period. For system performance analysis, a complete Model Power Supply of Drilling Rig is established on MATLAB/Simulink environment. Overall, this study demonstrates that the rig's generator load demand is reduced, leading to decreased environmental pollutants and operating costs.