Opioid use disorder (OUD) is defined as a compulsion to seek and take opioids, loss of control over intake and the development of a negative emotional state when access to opioids is denied. Using functional magnetic resonance imaging (fMRI) data in a rat model of OUD, we demonstrate that the escalation of heroin self-administration (SA) and the increased heroin SA following an injection of an opioid receptor antagonist (naloxone) are associated with changes in distinct brain circuits, centered on the cingulate cortex (Cg). Here, SA escalation score was negatively associated with changes in resting state functional connectivity (rsFC) between the Cg and the dorsal striatum. Conversely, increased heroin SA following naloxone injection, was associated with increased connectivity between the Cg and the extended amygdala and hypothalamus. Naloxone-induced increased SA was also positively associated with changes in the amplitude of low frequency fluctuations within the Cg, a measure of spontaneous neuronal activity. Characterizing the distinct brain circuit and behavior changes associated with different facets of addiction increases our understanding of OUD and may provide insight into addiction prevention and treatment.