Bill Cosby woke up Thursday in his Elkins Park mansion a free man for the first time in more than two years and was already plotting a comeback.

After the surprise decision a day earlier by the state’s highest court to toss his sexual assault conviction and bar prosecutors from trying him again, the 83-year-old comedian spent the evening fielding congratulatory calls from his celebrity pals and noshing on pizza brought in from Zio’s in Center City.

“He stayed up until 2 in the morning telling jokes,” his spokesperson Andrew Wyatt told reporters camped outside his home Thursday morning. “This morning, he’s been talking to a number of promoters and comedy club owners over his breakfast this morning. … He’s just excited the way the world is welcoming him back.”

Whether Hollywood — and the American public — are ready to receive him, though, remains an open question.

His shows are still off the air. His finances have taken a significant hit since his 2015 arrest. And for all his new post-prison intentions, his accusers say they have plans, too — including holding Cosby and a justice system they say failed them accountable with new lawsuits and pushes for legislative reform.

“Mr. Cosby is not home free,” said celebrity attorney Gloria Allred, who is pursuing a civil case against the entertainer on behalf of a Los Angeles accuser.

Though Cosby has always maintained his innocence, Wyatt said the timing of the Pennsylvania Supreme Court’s decision Wednesday that led to the comedian’s release came as a surprise. Cosby learned of it from a prison guard in the state detention center outside Collegeville where he’d served more than two years of a three-to-10-year sentence.

“An officer just opened up the cell door and said, ‘Hey, you getting out today,’” said Wyatt. “He heard all of this screaming from inmates knocking on the wall, ‘Get outta here, Bill! You’re free! Get outta here!’”

But advocates for victims of sexual assault have been quick to point out that the court’s decision was not based on the sufficiency of the evidence that led to his conviction and it did not amount to a pronouncement of innocence.

Instead, the justices’ ruling focused on an oral agreement Cosby elicited 16 years ago from former Montgomery County District Attorney Bruce L. Castor Jr. that he would never be prosecuted for his alleged 2004 assault of Temple University sports administrator Andrea Constand if he agreed to sit for a deposition in a separate civil case she brought against him that eventually settled for $3.4 million.

» READ MORE: Bill Cosby's conviction overturned: A timeline of the court case

On Thursday, the two ranking members of the state Senate Judiciary Committee — chair Lisa Baker (R., Luzerne) and Steve Santarsiero (D., Bucks) — announced they intended to pursue legislation that would make future non-prosecution agreements unenforceable unless they are memorialized in writing.

Meanwhile, lawyers for Cosby accusers still see him as a viable target for blockbuster legal settlements or judgments.

The only currently active civil suit stems from Allred’s client Judy Huth, who contends in a sexual battery lawsuit filed in Los Angeles that Cosby forced her to perform a sex act on him at the Playboy Mansion in the ’70s when she was 15.

The case had been stayed by a judge until Cosby could be deposed. Now that he’s out of prison, Allred hopes to schedule his testimony within months.

He could also face additional suits, depending on what, if anything, he says next, said attorney Lisa Bloom, Allred’s daughter who represented supermodel Janice Dickinson, one of six Cosby accusers to testify against him at his 2018 trial.

Dickinson separately sued him for defamation when his representatives publicly denied her account that Cosby raped her in 1982. Her case ended with what Bloom described Thursday as “a substantial settlement.”

“Fresh claims for defamation” could emerge, Bloom said, should Cosby go on a post-prison publicity tour claiming vindication from his accusers.

» READ MORE: Bill Cosby’s release leaves accusers dismayed, but women’s advocates say no court can erase their ‘courage and resolve’

But how much of his fortune is left after a seven-year scandal and his stint in prison is unclear.

Once an earnings juggernaut with residuals from reruns of The Cosby Show, appearance fees, and endorsements from brands like Jell-O, the comedian has legal bills that have been mounting for years — including payments owed to multiple sets of lawyers for two criminal trials, dozens of associated lawsuits, and the appeal that set him free.

Cosby’s insurer — American International Group — has quietly settled defamation suits from at least nine accusers, including Dickinson, over Cosby’s objections.

And though he and his wife, Camille, continue to hold ownership stakes in properties in California, Massachusetts, Pennsylvania, and New York, they’ve shed real estate worth tens of millions as his legal woes grew.

On Thursday, Wyatt said the comedian is now mulling legal action of his own — a potential malicious prosecution suit against the Montgomery County District Attorney’s Office, based on the Supreme Court’s finding that it had violated his due process rights.

Castor, a former county commissioner, raised the prospect himself on Wednesday within hours of Cosby’s release.

“I immediately thought that that might be used contrary to the county, so I’m glad I’m not commissioner anymore,” he said.

(It’s possible prosecutors could seek to overturn the Supreme Court’s ruling by urging the justices to reconsider or by challenging it in federal court, but legal experts described both strategies Thursday as unlikely to change anything.)

In the meantime, Cosby is already planning speaking tours, a push for criminal justice reform, and what his spokesperson described as advocacy for other Black men “who are incarcerated unjustly” — an agenda that infuriated one of the prosecutors who helped put Cosby behind bars.

Kristen Feden, a former Montgomery County assistant district attorney, objected to Cosby’s efforts to cloak himself in the rhetoric surrounding systemic racism in the justice system, given his status as one of the world’s most famous celebrities with access to top-flight lawyers — advantages not available to most.

“I’m disgusted by that when you take it in conjunction with his other statements such as that this overturned conviction is justice for Black Americans,” she told MSNBC. “As a Black female it makes me very sick to my stomach that he is exploiting Black Americans’ thirst for justice.”

Whatever his plans, Cosby appeared for now just happy to be free as he left his Montgomery County home Thursday afternoon to reunite with his family for the first time since his sentencing in 2018. He asked them not to visit him in prison, Wyatt said.

The comedian flashed a peace sign to reporters but said nothing as Wyatt guided him to an awaiting SUV. They refused to say where they were going.

“Mrs. Cosby just wants him at home with her for a while,” he said. “She wants to spend time with her husband, and she said, ‘I want him all to myself.’ ”

Staff writer Oona Goodin-Smith contributed to this article.