Microbial opsin-based optogenetic tools have been transformative for neuroscience. To extend optogenetic approaches to the immune system to remotely control immune responses with superior spatiotemporal precision, pioneering tools have recently been crafted to modulate lymphocyte trafficking, inflammasome activation, dendritic cell maturation, and antitumor immunity through the photoactivation of engineered chemokine receptors and calcium release-activated calcium channels. We highlight herein some conceptual design strategies for installing light sensitivities into the immune signaling network, and in parallel, we propose potential solutions for in vivo optogenetic applications in living organisms with near-infrared light-responsive upconversion nanomaterials. Moreover, to move beyond proof-of-concept into translational applications, we discuss future prospects for integrating personalized immunoengineering with optogenetics to overcome critical hurdles in cancer immunotherapy.