I think im dying of a drug dependence. How do I get free?

Seek support. To get free you must completely surrender to the fact you can't stop by your self . That you do indeed have a terminal disease if left untreated. Seek medical support especially if detox is needed. Try a twelve step meeting and get brutally honest with yourself and others that can help. You sound as though you are at a bottom, but there is a solution and you can be free. Rehab is another option.