The opioid overdose crisis could be addressed with repetitive transcranial magnetic stimulation (rTMS).Cue-induced craving and error-processing are two cognitive functions with underlying neural circuits that are implicated in opioid use disorder (OUD) and are prime targets for an rTMS intervention.We recruited methadone-maintained individuals, some supplemented with additional opioids and tested the universality of excitatory and inhibitory rTMS applied to the left dorsolateral prefrontal cortex (l-dlPFC) to increase error-processing (i.e., anterior cingulate cortex [ACC] activation) and to decrease craving (and dorsal striatum [DS] activation).Also, we anticipated differential effects based on whether the individual supplemented opioids while receiving methadone.Thirty methadone-maintained (N¼18 supplemented opioids) individuals completed two functional magnetic resonance imaging (fMRI) and rTMS days with an fMRI cue reactivity and stop-signal reaction time (SSRT) tasks before and after an acute rTMS session applied with neuronavigation.One day included excitatory intermittent theta burst stimulation (iTBS) and the other included inhibitory continuous TBS (cTBS).Self-reported craving and the neural activity of ACC and DS were measured before and after each rTMS session.Error-processing was hypoactive in OUD participants prior to rTMS and normalized after a single session only after iTBS, relative to controls.Self-reported craving was reduced for both iTBS and cTBS applications.DS activation did not significantly change for the full group.However, an interaction of rTMS type (iTBS vs cTBS) and opioid use (+/-) was significant within DS activation elicited by cue-reactivity.iTBS was optimal for participants who did not continue to use opioids while on methadone and cTBS was optimal for those who continued to use opioids.Overall, acute rTMS to the l-dlPFC modulated error-processing, self-reported craving, and cue-reactivity informing future applications based on rTMS type (iTBS vs cTBS) and supplemental opioids in methadone-maintained individuals.A urine sample may help optimized rTMS as a treatment for OUD.