Todd Howe, the prosecution’s star witness against Joseph Percoco, was arrested Thursday night after admitting in court that he likely had violated his cooperation deal with the feds, a source told The Post.

Howe “was remanded back to custody for violating the terms of his bail,” said Nicholas Biase with the Manhattan US Attorney’s Office. No additional charges were added.

Asked if Howe — who is being held at the Metropolitan Correctional Center in Lower Manhattan — will still testify Monday in the corruption trial, the US Attorney’s Office declined comment.

The longtime associate of Gov. Andrew Cuomo appeared briefly in court Friday afternoon — hunched over and shackled at the ankles — where a judge read his rights, and a prosecutors said he was consenting to detention. Howe’s own attorney declined to comment as he exited the courtroom.

Under cross-examination Thursday, Howe admitted he lied to his credit card company in the fall of 2016 — after signing an agreement with the government that required him to avoid committing future crimes.

Howe admitted that in October 2016, he asked his credit card company to refund $604.86 in charges from a stay at the Waldorf Astoria, suggesting he hadn’t stayed there.

His stunning testimony came on the second day of his blistering cross-examination at the corruption trial of Percoco, whom Howe claims to have helped obtain $300,000 in bribes.

Howe said he canceled the charge for the hotel stay amid a series of nine sit-downs with authorities investigating Percoco’s alleged “pay-to-play” scheme involving companies doing business with the state.

The former lobbyist also conceded that the questioning in Manhattan federal court forced him to realize he had violated the terms of his cooperation agreement with the feds.

Under his deal, prosecutors agreed to seek leniency for Howe when he’s sentenced for eight felonies — but only if he told them about all his offenses and didn’t commit more.