Endogenous homeostatic mechanisms can restore normal neuronal function following cocaine-induced neuroadaptations. Such mechanisms may be exploited to develop novel therapies for cocaine addiction, but a molecular target has not yet been identified. Here we profiled mouse gene expression during early and late cocaine abstinence to identify putative regulators of neural homeostasis. Cocaine activated the transcription factor, Nr4a1, and its target gene, Cartpt, a key molecule involved in dopamine metabolism. Sustained activation of Cartpt at late abstinence was coupled with depletion of the repressive histone modification, H3K27me3, and enrichment of activating marks, H3K27ac and H3K4me3. Using both CRISPR-mediated and small molecule Nr4a1 activation, we demonstrated the direct causal role of Nr4a1 in sustained activation of Cartpt and in attenuation of cocaine-evoked behavior. Our findings provide evidence that targeting abstinence-induced homeostatic gene expression is a potential therapeutic target in cocaine addiction.