The functional principle of the vertebrate brain is often paralleled to a computer: information collected by dedicated devices is processed and integrated by interneuron circuits and leads to output. However, inter- and motorneurons present in today's vertebrate brains are thought to derive from neurons that combined sensory, integration, and motor function. Consistently, sensory inter-motorneurons have been found in the simple nerve nets of cnidarians, animals at the base of the evolutionary lineage. We show that light-sensory motorneurons and light-sensory interneurons are also present in the brains of vertebrates, challenging the paradigm that information processing and output circuitry in the central brain is shielded from direct environmental influences. We investigated two groups of nonvisual photopigments, VAL- and TMT-Opsins, in zebrafish and medaka fish; two teleost species from distinct habitats separated by over 300 million years of evolution. TMT-Opsin subclasses are specifically expressed not only in hypothalamic and thalamic deep brain photoreceptors, but also in interneurons and motorneurons with no known photoreceptive function, such as the typeXIV interneurons of the fish optic tectum. We further show that TMT-Opsins and Encephalopsin render neuronal cells light-sensitive. TMT-Opsins preferentially respond to blue light relative to rhodopsin, with subclass-specific response kinetics. We discovered that tmt-opsins co-express with val-opsins, known green light receptors, in distinct inter- and motorneurons. Finally, we show by electrophysiological recordings on isolated adult tectal slices that interneurons in the position of typeXIV neurons respond to light. Our work supports "sensory-inter-motorneurons" as ancient units for brain evolution. It also reveals that vertebrate inter- and motorneurons are endowed with an evolutionarily ancient, complex light-sensory ability that could be used to detect changes in ambient light spectra, possibly providing the endogenous equivalent to an optogenetic machinery.