The state pension manager charged with taking bribes to fund his rock-star lifestyle — including prostitutes, strippers and drugs — was warned Wednesday that he’d better stay sober pending trial or he’ll be tossed in jail.

“You will be subject to drug testing and treatment,” Manhattan federal Judge J. Paul Oetken told Navnoor Kang (right, leaving court) before releasing him on a $750,000 bond with the provision that he wears a GPS monitor.

The disgraced former New York pension official — hired by state Comptroller Thomas DiNapoli despite a shady past — pleaded not guilty to charges that he steered billions of dollars in fixed-income-securities trades to two brokers in exchange for bribes.

Kang’s co-defendant, broker Deborah Kelley, also pleaded not guilty, was released on a $500,000 bond, and was ordered to “not use or possess illegal narcotics” as a condition of her release.

The feds say Kelley and another broker, Gregg Schonhorn lined the hard-partying Kang’s pockets with more than $100,000 in cash and gifts, including luxury vacations and VIP tickets to a Paul McCartney concert.

In exchange, Kang allegedly boosted their business by steering some $2.4 billion in fixed-income trades their way.

On Wednesday, prosecutors told the judge they have “consensual recordings” and text messages as evidence. Schonhorn, who has pleaded guilty, is cooperating with the feds.