This study aimed to describe opioid prescribing patterns for pregnant patients with a history of or active opioid use to inform postpartum pain management strategies. We conducted a retrospective cohort analysis of all patients with a history of opioid use disorder (OUD) or chronic pain seen at a single outpatient clinic specializing in opioid use and OUD in pregnancy from January 2019 to August 2021. Patient characteristics, delivery outcomes, and opioid prescribing information were collected through electronic health record fields. We used descriptive statistics to characterize differences in receipt of an opioid prescription, prescription size, and receipt of a prescription refill across three patient groups: patients with OUD on medication, patients with OUD maintaining abstinence, and patients with chronic pain using opioids. In the study period, the institutional average rate of opioid prescribing after cesarean and vaginal birth were 80.0 and 2.8%, respectively. Of the 69 patients included in this study, 46 (66.7%) had a history of OUD on medication, 14 (20.3%) had a history of OUD maintaining abstinence, and 9 (13.0%) had a history of chronic pain. Receipt of an opioid prescription after childbirth was more common after cesarean birth (12/23, 52.2%) than vaginal birth (3/46, 6.5%). Refills were common in patients who received an opioid proscription (cesarean: 5/12, 41.7%; vaginal: 1/3, 33.3%). Compared with institutional averages, postpartum opioid prescribing rates for people with a history of OUD or chronic pain were 50 to 60% lower for cesarean birth and three times higher for vaginal birth. Future work is needed to balance opioid stewardship and harm reduction with adequate pain control in these high-risk populations. · Opioid prescribing rates for patients with OUD/chronic pain were 60% lower for cesarean birth than institutional averages.. · Opioid prescribing rates for patients with OUD/chronic pain were three times higher for vaginal birth than institutional averages.. · Refill rates following birth were high overall for cesarean (40%) and vaginal (33%) birth.. · More work is needed to balance opioid prescribing with adequate pain control in high-risk patients..