Under a plan being considered by Gov. Cuomo, hordes of city homeless people could soon find themselves housed in a facility that was once reserved for shock-treating the mentally insane, The Post has learned.

The sprawling Creedmoor Psychiatric Center campus in eastern Queens has entire buildings that are empty — and could easily be converted into suitable lodgings for some of the Big Apple’s skyrocketing vagrant population.

Cuomo and a group of homelessness advocates are giving it serious consideration and are also looking at other state psychiatric centers, sources said.

The discussions follow potshots from the Cuomo administration about how Mayor de Blasio “can’t manage the homeless crisis” and is “inept” at dealing with the issue.

Cuomo promised to unveil an aggressive plan in his upcoming 2016 State of the State Address to tackle the problem.

Cuomo’s office confirmed that Creedmoor has been discussed — and that his Empire State Development Corp. is working on an overall plan for the site.

“The governor’s staff has been holding meetings with dozens of homeless experts and providers to better understand the homeless problem in the city,” said Cuomo spokeswoman Dani Lever.

“During those meetings, people have suggested different facility needs and possible shelter locations, however that was all tentative and there are no plans at this time,” Lever added.

Queens state Sen. Leroy Comrie, whose district includes Creedmoor, said providing homeless people with housing there is not such a crazy idea.

“The homeless individuals would have an excellent chance of being successful with a complement of services,” Comrie said. “I will be talking to the governor about it.”

In the early 1980s, then-Mayor Ed Koch and then-Gov. Mario Cuomo, the father of the current governor, sent some homeless men to Creedmoor — sparking backlash in the community. The plan was scrapped a few years later.

In its heyday a half-century ago, Creedmoor served 7,000 patients. It currently treats about 1,600 outpatients and 325 residents.

The campus has treated celebs such as singers Lou Reed — whose parents sent him there to cure his homosexuality — and Woody Guthrie, who suffered from Huntington’s disease and died there.