Many types of behavioral therapy can be used to treat heroin-use disorder. Some therapies help change the way you think and act. Others, such as contingency management therapy, reward you for staying drug-free. These treatments may be part of a residential or outpatient program. In a residential program, you live with others who have the same problem. You may stay in treatment for 3 to 6 months. As an outpatient, you get therapy while living your normal life.