Developing materials which mimic thermal homeostasis is limited by complicated fabrication steps or unidirectional temperature transport. Here, the authors develop a homeostatic hydrogel that shows improved heat trapping at low temperatures, and enhanced evaporative cooling at high temperatures. Thermal homeostasis is an essential physiological function for preserving the optimal state of complex organs within the human body. Inspired by this function, here, we introduce an autonomous thermal homeostatic hydrogel that includes infrared wave reflecting and absorbing materials for improved heat trapping at low temperatures, and a porous structure for enhanced evaporative cooling at high temperatures. Moreover, an optimized auxetic pattern was designed as a heat valve to further amplify heat release at high temperatures. This homeostatic hydrogel provides effective bidirectional thermoregulation with deviations of 5.04 degrees C +/- 0.55 degrees C and 5.85 degrees C +/- 0.46 degrees C from the normal body temperature of 36.5 degrees C, when the external temperatures are 5 degrees C and 50 degrees C, respectively. The autonomous thermoregulatory characteristics of our hydrogel may provide a simple solution to people suffering from autonomic nervous system disorders and soft robotics that are susceptible to sudden temperature fluctuations.