RET (REarranged during Transfection) is a receptor tyrosine kinase that transduces various external stimuli into biological functions, such as survival and differentiation, in neurons. In the current study, we developed an optogenetic tool for modulating RET signaling, termed optoRET, combining the cytosolic region of human RET with a blue-light–inducible homo-oligomerizing protein. By varying the duration of photoactivation, we were able to dynamically modulate RET signaling. Activation of optoRET recruited Grb2 (growth factor receptor-bound protein 2) and stimulated AKT and ERK (extracellular signal-regulated kinase) in cultured neurons, evoking robust and efficient ERK activation. By locally activating the distal part of the neuron, we were able to retrogradely transduce the AKT and ERK signal to the soma and trigger formation of filopodia-like F-actin structures at stimulated regions through Cdc42 (cell division control 42) activation. Importantly, we successfully modulated RET signaling in dopaminergic neurons of the substantia nigra in the mouse brain. Collectively, optoRET has the potential to be developed as a future therapeutic intervention, modulating RET downstream signaling with light.Supplementary InformationThe online version contains supplementary material available at 10.1186/s13041-023-01046-6.