The integrity of myelinated axons relies on homeostatic support from oligodendrocytes (OLs), which is essential for brain function. However, the mechanisms by which OLs detect axonal spiking and rapidly control axon-OL metabolic coupling are largely unknown. Here, we combine optic nerve electrophysiology and two-photon imaging to study activity-dependent calcium (Ca2+) dynamics in OLs and metabolite fluxes in myelinated axons. Both high-frequency axonal firing and extracellular potassium (K+) elevations trigger a fast Ca2+response in OLs that is facilitated by barium-sensitive, inwardly rectifying K+channels. Using OL-specific Kir4.1 knockout mice (Kir4.1 cKO) we now demonstrate that, in addition to being crucial for K+clearance, oligodendroglial Kir4.1 regulates axonal energy metabolism and long-term axonal integrity. Before the manifestation of axonal damage, we observed reduced glucose transporter GLUT1 and monocarboxylate transporter MCT1 expression in myelin of young Kir4.1 cKO mice, suggesting early deficits in metabolite supply to axons. Strikingly, we found lower resting lactate levels and activity-induced lactate surges in optic nerve axons of young Kir4.1 cKO mice. Moreover, both axonal glucose uptake and consumption were hampered in the absence of oligodendroglial Kir4.1, uncovering a new role of OLs in regulating axonal glucose metabolism. Our findings reveal a novel model of axon-OL signaling and metabolic coupling in which OLs detect high-frequency axonal activity through K+signaling, which is critical in adjusting the axon-OL metabolic unit and in preserving long-term axonal health.