China is faced with the challenge of community rehabilitation of persons with opioid use disorders. A 1-year comprehensive psychosocial intervention (CPI) was developed, and its effectiveness was assessed in terms of its ability to improve community rehabilitation of persons with opioid use disorders after their release from detention in compulsory treatment centers in Shanghai, China.