Notoriously chatty “Pharma Bro” Martin Shkreli has finally opted to shut his trap — declaring Monday he won’t be taking the stand in his own defense.

“Have you had sufficient time to confer with counsel?” Brooklyn federal Judge Kiyo Matsumoto asked, as he stood flanked by defense attorneys Ben Brafman and Marc Agnifilo.

A grinning Shkreli clasped his hands and leaned forward toward the courtroom microphone to say, “Yes.”

Shkreli faces up to 20 years behind bars if convicted of securities fraud charges. He’s accused of using his hedge fund, MSMB Capitol, as a personal piggy bank to feed the pharmaceutical company he formerly headed, Retrophin.

Shkreli — infamous for jacking up the price of an AIDS drug by 5,000 percent when he ran Turing Pharmaceuticals — is on trial for allegedly running an $11 million Ponzi-like scheme to pay off Retrophin debts. He was ordered not to talk about his case by Matsumoto earlier this month.

The jurist gagged Shkreli on courthouse grounds after he burst into a room full of reporters to rant about his trial.

“They blame me for everything,” Shkreli whined to the reporters. “They blame me for capitalism.”

He even went so far as to call his prosecutors “junior varsity.”

Shkreli has exhibited unpredictable behavior online as well, getting booted from Twitter four times this year — as recently as Sunday — and using his Facebook to insult those who tune in to his perpetual livestreams.

“You might wanna lose some weight before you come at me one more time, you nasty a– h-,” he told one viewer on July 11. “I wouldn’t f–k you with my friend’s d–k. Get the hell out of here, b—h.”

The 34-year-old — who winked and blew a kiss to a Post reporter Monday — was officially barred from Twitter after harassing female journalists.

Even sheltered jurors aren’t safe from his venom — having read emails sent by the often foul-mouthed Shkreli as part of trial evidence.

“Do you know how I know you’re an incompetent idiot?” the infamous loudmouth wrote to an accountant who was attempting to untangle his finances in 2013.