Bail for “Smallville” actress Allison Mack was set at $5 million in a Tuesday hearing at Brooklyn Federal Court as she was released to serve home detention at her parents’ house in Los Alamitos, Calif.

Mack was indicted on April 19 on charges of sex trafficking, sex trafficking conspiracy and forced labor conspiracy in New York federal court. She appeared before Magistrate Judge Viktor V. Pohorelsky at the Brooklyn courthouse in New York’s Eastern District.

The expectation is that Mack is cutting a deal with prosecutors to provide information against Nxivm founder Keith Raniere, who was arrested last month in Mexico and remains in federal custody. A bail hearing for Raniere is set for next week.

Her mother, Melinda Mack, was in court and put up her home in Los Alamitos, Calif. as collateral for the bail, in addition to property and a bank account owned by Allison Mack.

The actress accused of helping run a secretive sex cult appeared in court in gray-green jail scrubs. She spoke softly in court and did not appear to make eye contact with her mother during the hearing. After standing before the judge to sign the bond, Melinda Mack turned her head to watch her daughter being led out of the courtroom.

Mack was not handcuffed but she kept her hands clasped behind her back during the 15-minute hearing. The petite 35-year-old said few words and stayed grim-faced but nodded repeatedly. Her shoulder-length blond hair was messy.

Later, as Melinda Mack left the courthouse, she and Allison Mack’s attorney, William McGovern, refused to comment on the case.

Allison Mack was released on the condition she serve home detention with electronic monitoring. The conditions of her bail allow her to travel to Southern California and to the New York City area where her criminal attorneys are based. Mack’s attorneys said she intended to return to her parents home as soon as possible.

Mack’s father, opera singer Jonathan Mack, was not in court but is obligated to co-sign her bail collateral arrangement by May 4. The judge instructed Allison Mack not to associate with anyone connected, past or present, to the Nxivm group that is the source of the sex trafficking charge she faces. According to court documents, Mack is accused of trying to destroy emails, text messages and other material connected with the case against her and Raniere.

Before the hearing, prosecutors and Mack’s attorneys huddled on an agreement to severely restrict Mack’s ability to access the Intenet and online communications. The side agreed to conditions that she would have access to a phone that would limit her to reviewing emails only from her lawyers.

Mack was a regular on the WB Network/CW drama “Smallville” throughout its 10-season run. Her arrest in connection with what prosecutors maintain was a brutal sex cult revolving around Raniere has shocked those who worked with her on “Smallville.” That show was filmed in Vancouver, where Nxivm has a large following.

Mack is accused of masterminding a scheme with Raniere to recruit young women into a secretive group that purported to be focused on women’s empowerment but in reality served as a sex ring for Raniere and others. The women were instructed to serve as “slaves” to male “masters.” According to court documents the women were subjected to brutal conditions including extremely restrictive diets to keep them thin, sleep deprivation, and submitting to being scarred by a branding tool with a symbol that incorporated Raniere’s initials.