How do I get meds for alcohol and opioids and

How do I get meds for alcohol and opioids and get in to a resedential program that is Mat or medical detox and takes my medicare insurance