Charlie Sheen‘s off-the-rails ex Brooke Mueller described how she attended an “’Eyes Wide Shut’-type” sex party in the Hamptons after she showed up with “suitcases full of drugs,” a new audiotape reveals.

The back-on-drugs Mueller, 41, slurs her words on the explosive audiotape — in which she asks to score crystal meth, cocaine and “black tar” heroin — and tells how she and a mystery “married man” watched anonymous naked people indulge in sex acts in a scene like one from the 1999 Tom Cruise and Nicole Kidman erotic drama “Eyes Wide Shut.”

In the exclusive audiotape from the early hours of July 15, Mueller is heard saying, “It was an ‘Eyes Wide Shut’ type of party … in the Hamptons, there’s a party here. It’s after-hours, actually but it was really cool … sex … like.”

She adds, “But you don’t have to have sex, just naked people walking round. It’s really cool. I ran from it last time. I wasn’t expecting it, but this time I watched it. I didn’t know it happens, but it’s really f—ing different. Yeah, it happens — we’re hitting one tonight in Queens.”

When asked about whom she was traveling to the party with, she added, “He’s just my friend, he’s not even my boyfriend … he’s married. I know, I feel evil, but I can’t help it … We didn’t even hook up, but it’s kind of fun, but anyway … but I don’t want anyone to know, you know?”

It is not clear which sex party Mueller — who has physical custody of her twin 10-year-old sons with Sheen — attended in the Hamptons, and whether she actually went to another in Queens. Last summer, Snctm, an elite erotic club based in Los Angeles that reportedly counts Gwyneth Paltrow and Bill Maher among its fans, threw a black-tie “Masquerade” event at an opulent private Hamptons residence on Aug. 5. The erotic “Eyes Wide Shut”-style event, we’re told, was limited to only 99 guests.

However, a source with knowledge of back-on-drugs Mueller’s behavior said, “When Brooke is high, mostly on crystal meth, she becomes very sexual, takes off her clothes and seeks sexual situations.

“This kind of behavior puts her into worrying compromising situations, often with completely random people.”

Mueller is heard adding on the tape, “Now we are almost at Queens. Actually, what we want is, if it’s possible, cocaine and meth, crystal and coke, and if it’s even possible, it has to be the tar, black tar.”

Mueller then quickly says of the black tar, “But that’s not for me.

“Yeah, whatever it is, we’re gonna get it,’’ she adds. “And then I’ll just Venmo you just for doing this. A couple, like what, two hundred bucks? Is that cool?”

The 41-year-old actress — who is now back in a sober facility and has denied to Page Six that she has ever used heroin — was driving to Queens with the mystery man from the Hamptons around 2 a.m. July 15.

Her two sons with Sheen were believed to have been at Mueller’s home in Beverly Hills at the time, under the care of her mother, who often looks after the kids when the troubled actress travels.

When talk on the tape turns to her sobriety, Mueller — who has battled addiction for years — happily admits, “I just go on and off. Everyone does. Almost everyone. There’s the few that stay sober, but not at my level.”

The recording was made a year after Mueller was seen on video getting ready to smoke what looked like crystal meth while one of her sons was alone upstairs in a hotel room — and less than 24 hours after she arrived in the Hamptons with bags full of drugs, as Page Six exclusively reported.

Mueller — who has reportedly been to rehab an incredible 20 times and completed her last live-in treatment in January 2017 — had arrived in Southampton on July 14 with nowhere to stay, witnesses told Page Six.

Sources close to the Sheen ex claimed that she had booked a hotel there but arrived seven hours before her scheduled 3 p.m. check-in.

Mueller then met a random guy at the Rite Aid drug store in Southampton around 8 that Sunday morning and tearfully begged him to take her back to his shared rental house — where she opened her bags and unveiled an array of drugs including cocaine, witnesses said.

According to multiple sources, Muller — who appeared as if she had cocaine around her nostrils — urged the male housemates to party with her, telling those who did not want to indulge first thing on a Sunday after a late night out, “You guys are boring, what is wrong with you?,” witnesses said.

A frazzled Mueller was forcibly thrown out of the Hamptons shared house two hours later, when another resident returned and was appalled to find the wasted woman with her narcotics stash, which a witness described as a scene from the Al Pacino drug-lord flick “Scarface.”

The witness said the disgusted resident “threw Brooke’s suitcases right out of the door into the street, and then he threw her right out after them.”

When Page Six reached Mueller by phone after her troubled Long Island trip, she claimed — amid family fears for her safety following her relapse — “I am OK, I am more than OK.”

She added of her early-hours car ride to Queens, “I was with my treatment team, so there’s no way I would be looking for black tar. I’ve never done heroin in my life. This is getting out of control.”

Mueller’s rep didn’t comment about the audiotape, but a source explained, “Brooke’s family is very concerned about her relapse and about her safety.

“They are worried about her pattern of behavior that leads her to put herself in the hands of total strangers. They don’t know why she was in Queens or what happened there, but she was there.

“Her family urgently wants Brooke to go back to rehab, but they can’t force her. Ultimately, she has to make the decision to get sober herself. Thankfully, her sons are safe in California.”

Mueller has since checked into a trauma rehabilitation center, a facility that helps address underlying emotional issues and PTSD that lead to addiction.

A spokesman for Mueller told Page Six, “Brooke has voluntarily checked herself into a trauma center on the East Coast and is under the supervision of a team of professionals. Like millions of other people, staying sober is a daily challenge and she is working hard to overcome her disease.”

Her rep declined to comment on the audiotape.

Mueller and Sheen — who has his own rocky history of drug and alcohol addiction — married in 2008 and filed for divorce in November 2010 following his arrest for assaulting her in Aspen, Colorado.

They both checked into rehab after the incident, and Sheen was placed on probation and ordered to undergo domestic-violence counseling.

According to divorce papers, Sheen and Mueller share legal custody of their sons, but she has primary physical custody. It was reported at the time of their divorce that he had agreed to pay $55,000 a month in child support to Mueller, the same amount he pays ex-wife actress and former model Denise Richards, with whom he has two daughters.

Sheen was diagnosed with HIV in 2012, and Mueller released a statement at the time confirming that she and their twin boys “are not HIV positive.” He stated that the diagnosis sent him into a spiral of booze and cocaine use. But in January this year, Sheen announced he had just celebrated one year of being sober.

Meanwhile, Mueller has continued to battle her own demons. She was arrested in December 2011 at an Aspen nightclub for suspicion of assault and cocaine possession and sentenced to probation. She reportedly returned to rehab in May 2012 and again in December that year.

In May 2013, Richards was granted temporary custody of Mueller and Sheen’s twin boys after child-welfare workers removed the boys from Mueller’s home, saying the environment was “unsafe.” Mueller then checked into UCLA Medical Center to seek treatment for prescription drug abuse.

In November 2013, Sheen claimed to the media he had reported Mueller to the Department of Children and Family Services ahead of her first unsupervised overnight visit with their boys. He claimed at the time to TMZ that Mueller was “as awful a parent and a person as you can possibly draw up.”

Around the time, a video emerged online of Mueller appearing to smoke crack cocaine and asking someone off-camera, “Where is the crystal? I’m giving you $1,500.”

In 2014, Mueller was sued by her former assistant, who said he watched her twin boys while she got “so high as to be literally wasted.” He also claimed she engaged in sex acts with others while her young kids were in the room.

Then in November 2016, Salt Lake City police launched a search for Mueller and her sons. She turned up at a bar, barefoot and reportedly “disheveled,” in the early hours of the morning with the then-7-year-old boys in tow.

Mueller was immediately hospitalized for an evaluation. Then she entered live-in rehab again, later starting an outpatient rehabilitation program in Utah in January 2017.