Recent advances in technology, including high resolution crystal structures of opioid receptors, novel chemical tools, and new genetic approaches have provided an unparalleled pallette of tools for deconstructing opioid receptor actions in vitro and in vivo. Here we provide a brief description of our understanding of opioid receptor function from both molecular and atomic perspectives, as well as their role in neural circuits in vivo. We then show how insights into the molecular details of opioid actions can facilitate the creation of functionally-selective (biased) and photoswitchable opioid ligands. Finally, we describe how newly engineered opioid receptor-based chemo- and optogenetic tools, and new mouse lines are expanding and transforming our understanding of opioid function and, perhaps, paving the way for new therapeutics.