In summary, this study identified four key genes (FOS, IL6, EGR1, and JUN) that might be involved in cocaine addiction mechanisms and had potential roles as biomarkers and therapeutic targets for cocaine addiction. Here, JUN is linked to cocaine dependence.