Strong circadian (~24h) rhythms in heart rate (HR) are critical for flexible regulation of cardiac pacemaking function throughout the day. While this circadian flexibility in HR is sustained in diverse conditions, it declines with age, accompanied by reduced maximal HR performance. The intricate regulation of circadian HR involves the orchestration of the autonomic nervous system (ANS), circadian rhythms of body temperature (CRBT), and local circadian rhythmicity (LCR), which has not been fully understood. Here, we developed a mathematical model describing ANS, CRBT, and LCR in sinoatrial nodal cells (SANC) that accurately captures distinct circadian patterns in adult and aged mice. Our model underscores how the alliance among ANS, CRBT, and LCR achieves circadian flexibility to cover a wide range of firing rates in SANC, performance to achieve maximal firing rates, while preserving robustness to generate rhythmic firing patterns irrespective of external conditions. Specifically, while ANS dominates in promoting SANC flexibility and performance, CRBT and LCR act as primary and secondary boosters, respectively, to further enhance SANC flexibility and performance. Disruption of this alliance with age results in impaired SANC flexibility and performance, but not robustness. This unexpected outcome is primarily attributed to the age-related reduction in parasympathetic activities, which maintains SANC robustness while compromising flexibility. Our work sheds light on the critical alliance of ANS, CRBT, and LCR in regulating time-of-day cardiac pacemaking function and dysfunction, offering insights into novel therapeutic targets for the prevention and treatment of cardiac arrhythmias.