Currently, lots of studies are going to find out the quality of the materials that could be used in solar cells and energy storage devices because of their higher absorption and utmost conductivity. We used density functional theory simulations utilizing the full potential linear augmented plane-wave approach. The generalized gradient approximation functional intended for materials (PBE-GGA) was utilized to compute structural characteristics, although the modified Becke and Johnson (mBJ) potential functional was employed to compute optoelectronic and thermalproperties. Their band gaps, may capture electromagnetic waves in the IR to the visible spectrum, rendering them appealingfor optoelectronics devices. Achieving the highest values of transition in the visible region against photon energy in the optical characteristics suggested that investigated double perovskites could be used in solar cells. Additionally, the transport characteristics premeditated using the Boltzmann transport equation indicate that the temperature and chemical potential in K2AgSbI6 to K2AgBiI6 perovskites might be used to make them suitable for solar energy. In order to investigate the optoelectronic as well as thermoelectric characteristics of K2AgXI6 (X = Sb, Bi)compounds used in energy storage devices.