Emerging immunotherapies with monoclonal antibodies against programmed cell death protein-1 (PD-1) have shown success in treating cancers. However, PD-1 signaling in neurons is largely unknown. We recently reported that dorsal root ganglion (DRG) primary sensory neurons express PD-1 and activation of PD-1 inhibits neuronal excitability and pain. Opioids are mainstay treatments for cancer pain, and morphine produces antinociception via mu opioid receptor (MOR). Here, we report that morphine antinociception and MOR signaling require neuronal PD-1. Morphine-induced antinociception after systemic or intrathecal injection was compromised in mice. Morphine antinociception was also diminished in wild-type mice after intravenous or intrathecal administration of nivolumab, a clinically used anti-PD-1 monoclonal antibody. In mouse models of inflammatory, neuropathic, and cancer pain, spinal morphine antinociception was compromised in mice. MOR and PD-1 are coexpressed in sensory neurons and their axons in mouse and human DRG tissues. Morphine produced antinociception by (i) suppressing calcium currents in DRG neurons, (ii) suppressing excitatory synaptic transmission, and (iii) inducing outward currents in spinal cord neurons; all of these actions were impaired by PD-1 blockade in mice. Loss of PD-1 also enhanced opioid-induced hyperalgesia and tolerance and potentiates opioid-induced microgliosis and long-term potentiation in the spinal cord in mice. Last, intrathecal infusion of nivolumab inhibited intrathecal morphine-induced antinociception in nonhuman primates. Our findings demonstrate that PD-1 regulates opioid receptor signaling in nociceptive neurons, leading to altered opioid-induced antinociception in rodents and nonhuman primates.