Jackass star Steve-O is cleaning up his act.

“Everybody thinks I’m in the loony bin, but I’m actually in rehab,” says the self-destructive reality-TV star.

Steve-O has been in lockdown for 26 days, he tells his friend Bam Margera in an interview airing Monday on Margera’s radio show, RadioBam.

He recalled how he began “sending crazy e-mails to everyone on how I was ready to die. I was like, ‘I’ll jump a motorcycle out of my window to the roof next door.’” Instead of showing up to watch him kill himself, his friends, including Jackass co-star Johnny Knoxville, staged an intervention and checked him into a mental-health facility in Los Angeles.