Animals modify food-seeking behavior and metabolism according to perceived food availability. Here we show that, in the roundworm C. elegans, release of neuropeptides from interneurons that are directly postsynaptic to olfactory, gustatory, and thermosensory neurons coordinately regulates behavior and metabolism. Animals lacking these neuropeptides, encoded by the flp-18 gene, are defective in chemosensation and foraging, accumulate excess fat, and exhibit reduced oxygen consumption. Two G protein-coupled receptors of the NPY/RFamide family, NPR-4 and NPR-5, are activated by FLP-18 peptides in vitro and exhibit mutant phenotypes that recapitulate those of flp-18 mutants. Our data suggest that sensory input can coordinately regulate behavior and metabolism via NPY/RFamide-like receptors. They suggest that peptidergic feedback from interneurons regulates sensory neuron activity, and that at least some of this communication occurs extrasynaptically. Extrasynaptic neuropeptide signaling may greatly increase the computational capacity of neural circuits.