Space cooling and heating consume huge energy resources globally, while existing cooling/heating equipment can only address indoor temperature control. In this work, we report a multifunctional layered Janus-coated fabric (JCF) with radiative cooling/solar heating/Joule heating, which can utilize space and the sun as a source of cooling and heating. By adjusting the reflectivity, emissivity, and absorptivity of the coating, the fabric performs a thermal management function in a complex and changeable environment without consuming energy. In cooling mode, the cooling layer achieves a high solar reflectivity of 96% and an infrared emissivity of 96%, resulting in a 3.1 degrees C reduction in ambient temperature without any convective shielding. In addition, it reduces temperatures by 1.6 degrees C on human arms and by 5.1 degrees C inside houses, respectively. In the heating mode, the heating layer demonstrates excellent light-to-heat conversion efficiency under direct sunlight, achieving a 13.3 degrees C radiation warming ability, 16 degrees C heating effect on the surface of the arm, and a 12.8 degrees C temperature increase in the house. Furthermore, when switched to active heating for temperature regulation, JCF exhibits fast electrical response, high-efficiency electrical heat conversion capability, and stable electrical heat circulation capability. Building energy simulations indicate that widespread deployment of JCF across China could lead to a reduction in cooling and heating energy consumption by more than 25 MJ/m2 in 80% of cities. This multifunctional Janus-coated fabric not only provides a viable engineering path for the practical application of radiative heat management technology but also demonstrates its potential applications in human thermal comfort, smart wearable and building energy efficiency.