Jeffrey Epstein’s alleged madam Ghislaine Maxwell has sued his estate for coverage of legal bills, security costs and costs for “safe accommodations,” according to court papers filed in the US Virgin Islands.

The disgraced British socialite — who has been in hiding — says she worked for Epstein from 1999 through at least 2006 and he “promised Maxwell that he would support her financially.”

Maxwell says Epstein also paid for legal costs in two prior lawsuits filed by Sarah Ransome and alleged Epstein “sex slave” Virginia Roberts Giuffre.

“Epstein made a clear and unambiguous promise to Maxwell that he would indemnify Maxwell and advance any expense incurred by reason of her prior employment relationship with him and his affiliated businesses,” says Maxwell’s lawsuit, dated March 12.

Maxwell says Epstein’s promise was reaffirmed by his lawyer Darren Indyke, one of the executors of the estate, who told her she “would be paid because she would not have incurred any legal expenses but for Epstein’s alleged misconduct, and that Epstein’s promises would be honored,” say the court papers, first reported by the New York Times.

“Maxwell has incurred and will continue to incur significant legal fees, personal security costs, and other costs in connection with legal suits, proceedings, and investigations relating to Epstein, his affiliated businesses, and his alleged victims,” the court documents claim.

Maxwell says in the suit she “receives regular threats to her life and safety, which have required her to hire personal security services and find safe accommodation.”

Maxwell says she sent a letter Nov. 22 asking the estate to “honor its obligation” to pay her legal costs, but it has “failed to uphold Epstein’s promise to indemnify and advance expenses incurred,” the court papers allege.

Sources close to Giuffre — who claims Maxwell and Epstein instructed her to have sex with Prince Andrew — said, “It’s unconscionable that [Maxwell] would attempt this. But she lost sight of what is right from wrong a very long time ago.”

Another one of Epstein’s accusers, Jennifer Araoz, sued Maxwell along with Epstein’s estate last year, claiming that Maxwell and other Epstein employees lured her to Epstein’s Manhattan townhouse to be sexually abused.

Accuser Annie Farmer also sued Maxwell in Manhattan federal court claiming that when she was at Epstein’s New Mexico ranch, Maxwell pressured her to get naked and then touched the then-16-year-old girl’s private parts.

Maxwell, 47, the daughter of the late disgraced publishing tycoon Robert Maxwell, has not been charged with any crimes but is believed to be one of the key targets of ongoing federal investigations.

Prince Andrew has vigorously denied Giuffre’s claims that he had sex with her three times.

Epstein, 66, hanged himself in a lower Manhattan lockup last August.

A lawyer for Epstein’s estate declined to comment on Maxwell’s suit.