Yes, definitely check out the Salvation Army.
They offer free rehab programs to anyone who wants it.
"The Salvation Army Adult Rehabilitation Center (ARC) in San Francisco provides services to individuals suffering from the debilitating effects of substance abuse.
Our residential facilities (112 beds for men in the Mission and 24 beds for women at Pinehurst Lodge in the Sunset District) provide a social model environment in which individuals learn the tools to overcome their chemical dependency and lead productive, clean, and sober lives."