How can I kick my addiction to Codeine? I really don’t want rehab?

Any tips on how to kick my habit? Got addicted from my shoulder pains… Oded last night how can I stop other than Rehab
This is gonna be really hard… but today I nearly attacked one of my friends I was so on edge. I hate what I’m becoming.