I'm also simultaneously going through alcohol withdrawals (after 3 months of drinking every day, all day), lingering opiate withdrawals, and coming off an amphetamine binge
Coffee was just a cheaper and healthier alternative to quench my desire of "being on something". I'd drink coffee to the point of getting shaky, and at that point I wouldn't want to be on any drugs so my strategy worked.