By improving the delivery and tumor retention of chemotherapeutics, nanomedicines hold potential for cancer treatment. The usefulness of nanoparticle (NP)-encapsulated analgesics for the cancer pain treatment is comparatively unexplored. We investigated whether NPs encapsulating olcegepant (OCP), an antagonist of the calcitonin receptor-like receptor (CLR) for the calcitonin gene-related peptide (CGRP), effectively relieved oral cancer pain in mice. Because persistent endosomal CLR signaling in Schwann cells mediates craniofacial pain, we reasoned that the predisposition of NPs to accumulate in endosomes could be leveraged to effectively relieve oral cancer pain. By expressing biosensors for activated CLR, Gα proteins and β-arrestins in HEK293T and Schwann cells, we found that CGRP activates CLR signaling first at the plasma membrane and then in early, late and recycling endosomes and the cis- and trans-Golgi apparatus. We synthesized biocompatible NPs encapsulating OCP and fluorophores by integrating hydrophobic ion pairing nanoformulation with Flash NanoPrecipitation. NPs slowly released OCP and accumulated in early endosomes, leading to sustained inhibition of endosomal CLR signaling in HEK293T and Schwann cells. Oral cancers were established in mice, which led to heightened pain-like responses. After intra-tumoral injection, NPs were retained in tumors for at least one week. OCP-loaded NPs almost completely reversed allodynia and hyperalgesia for a prolonged period, whereas unencapsulated OCP had small and transient effects. The NP accumulation in endosomal sites of pain signaling, the sustained release of antagonist, and the retention of NPs in tumors explain their beneficial actions. Thus, NP-encapsulation holds promise for the relief of painful cancers that are inadequately treated by opioids.