Recent advances in optogenetics have enabled simultaneous optical perturbation and optical readout of membrane potential in diverse cell types. Here, we develop and characterize a Cre-dependent transgenic Optopatch2 mouse line that we call Floxopatch. The animals expressed a blue-shifted channelrhodopsin, CheRiff, and a near infrared Archaerhodopsin-derived voltage indicator, QuasAr2, via targeted knock-in at the rosa26 locus. In Optopatch-expressing animals, we tested for overall health, genetically targeted expression, and function of the optogenetic components. In offspring of Floxopatch mice crossed with a variety of Cre driver lines, we observed spontaneous and optically evoked activity in vitro in acute brain slices and in vivo in somatosensory ganglia. Cell-type-specific expression allowed classification and characterization of neuronal subtypes based on their firing patterns. The Floxopatch mouse line is a useful tool for fast and sensitive characterization of neural activity in genetically specified cell types in intact tissue.