A drug dealer accused of helping an HBO producer drag a woman’s unconscious body to the doorway of a Chelsea apartment building, leaving her to die, pleaded guilty Monday to running a cocaine “stash house.”

Kiersten Rickenbach CervenyTwitter

James “Pepsi” Holder, 61, admitted to running a drug den in the West 16th Street walkup where Kiersten Rickenbach Cerveny, a young doctor and mother of three, was found dead after a night partying with friends — including producer Marc Henry Johnson.

Holder faces up to eight years in prison under the deal he cut with prosecutors. He is not cooperating with the feds under the deal, but could still be called to testify against Johnson, who was also arrested in the wake of Cerveny’s death.

Prosecutors have said Johnson — a producer of the upcoming HBO pilot “The Deuce,” about the porn industry on 42nd Street in the 1970s — was with Cerveny for much of the drug-filled night leading up to her death. Johnson met Cerveny and her girlfriends at a bar that night and offered to share “a significant amount of cocaine” with them, prosecutors have said.

Johnson then took Cerveny to Holder’s apartment, arriving around 4:25 am.

HBO producer Marc Henry JohnsonFacebook

A few hours later, Johnson and Holder were caught on video surveillance carrying Cerveny’s unconscious body through the hallway to the front-door vestibule, where they left her, prosecutors have said.

Neither man has been charged with Cerveny’s death as prosecutors have said the blond dermatologist had been using cocaine before Johnson showed up. But Johnson was charged with helping to remove her body from Holder’s apartment in order to protect his dealer’s illegal operation.

“My client pleaded guilty to what I felt was the most accurate factual charge against him,” Holder’s lawyer, Matthew Kluger, said outside of court. “I don’t think the evidence hows that he did supply her with the drugs that led to her death,” he said.

Johnson, who had been nominated for an Emmy for his work on Michael Moore’s “The Awful Truth,” has pleaded not guilty. His lawyer did not immediately return a request for comment.