Can I just get meds to quit meth and cannabis without having to go into rehab or treatment?

Mutual support helps. The most effective "medication" is mutual support. Consider attending a meeting of narcotics anonymous or marijuana anonymous.
No. There r meds that may help a little but we dont have an "addiction no more" pill.