Animals constantly need to judge the valence of an object in their environment: is it potential food or a threat? The brain makes fundamental decisions on the appropriate behavioral strategy by integrating external information from sensory organs and internal signals related to physiological needs. For example, a hungry animal may take more risks than a satiated one when deciding to approach or avoid an object. Using a proteomic profiling approach, we identified the Calmodulin-interacting peptide Pcp4a as a key regulator of foraging-related decisions. Food intake reduced abundance of protein and mRNA of pcp4a via dopamine D2-like receptor-mediated repression of adenylate cyclase. Accordingly, deleting the pcp4a gene made zebrafish larvae more risk averse in a binary decision assay. Strikingly, neurons in the tectum became less responsive to prey-like visual stimuli in pcp4a mutants, thus biasing the behavior toward avoidance. This study pinpoints a molecular mechanism modulating behavioral choice according to internal state.