A money-lending firm will go after Harvey Weinstein personally for repayment on a $45 million loan while his companies are locked up in bankruptcy proceedings, according to court records filed Friday.

AI International Holdings sued last November for immediate repayment of the money after the producer was ousted from his namesake company amid sexual misconduct allegations.

When Weinstein was fired on Oct. 3 the loan became due by default because of an “adverse” change in the business, AI argued in the lawsuit.

But the case has been in limbo since Weinstein’s companies, TWC Borrower and The Weinstein Company Holdings LLC, began bankruptcy proceedings in March. An automatic stay was entered on April 4 temporarily halting the case, ­according to Manhattan ­Supreme Court records.

AI and the defendants agreed to separate the cases so that the lender can go forward with its claims against Weinstein, who hasn’t personally declared bankruptcy, Friday’s court documents reveal. A judge must still approve the case’s division.

AI declined to comment. Weinstein’s lawyer, Elior Shiloh, said: “AI and its ownership was generous and assisted TWC at a critical time. It is appreciated.”

The parties are due back in court Nov. 27.