Organisms surveil and respond to their environment using behaviors entrained by metabolic cues that reflect food availability. Mitochondria act as metabolic hubs and at the center of mitochondrial energy production is the protonmotive force (PMF), an electrochemical gradient generated by metabolite consumption. The PMF serves as a central integrator of mitochondrial status, but its role in governing metabolic signaling is poorly understood. We used optogenetics to dissipate the PMF in Caenorhabditis elegans tissues to test its role in food-related behaviors. Our data demonstrate that PMF reduction in the intestine is sufficient to initiate locomotor responses to acute food deprivation. This behavioral adaptation requires the cellular energy regulator AMP-activated protein kinase (AMPK) in neurons, not in the intestine, and relies on mitochondrial dynamics and axonal trafficking. Our results highlight a role for intestinal PMF as an internal metabolic cue, and we identify a bottom-up signaling axis through which changes in the PMF trigger AMPK activity in neurons to promote foraging behavior.