Inclusion Criteria:  Eligible participants will be 18 years of age or older Meet DSM-5 criteria for OUD Enrolled in methadone or buprenorphine treatment at Liberation Have at least moderate-intensity chronic pain as indicated by a score of ≥ 4 over the past week on the 0-10 Numerical Rating Scale Have pain on at least half of the days of the prior six months (indicating chronicity); Self-reported ability to walk at least one block (for the exercise component of CBT4CBT-COPES  Exclusion Criteria:  Inability to read, write, and speak English at a third grade level (for reading informed consent) Untreated or inadequately treated bipolar or psychotic disorder or current suicide risk as identified by Structured Clinical Interview for DSM-5 (SCID-5) Life threatening health conditions that would impede participation (e.g., end stage renal failure, malignant cancer requiring chemotherapy excluding melanoma) Planned surgical treatment related to pain Pending legal action or planned relocation that makes it unlikely they would be able to complete the study