While Israeli Prime Minister Benjamin Netanyahu was miffed at reports he was booed at “Hamilton,” he reveled in anonymity at “Sleep No More.”

Spies said Bibi attended the interactive show, where guests wear masks, the night after he saw “Hamilton.”

“Netanyahu was seen running around ‘Sleep No More’ with a frantic energy,” said an exuberant theater spy, who added that the Israeli leader was “diverting his security detail as he got caught up in the show . . . and becoming an anonymous audience member behind the [show’s] signature mask.”

He was later “found by his guards at the rooftop bar Gallow Green late in the evening,” the source said.

Also in the masked crowd anonymously was Adele, who “remained largely incognito,” said a witness. Page Six has reported that Adele has managed to keep a low profile in town, even without the mask.

We also reported this week that Netanyahu was booed — and cheered — at “Hamilton,” but he wrote on Facebook, “Among the cheering crowd maybe one or two called out derogatory remarks.” A rep didn’t get back to us.