Kelsey Grammer split with his wife of 13 years before the Tonys, but asked her to fly to New York for the awards and pretend their marriage was fine while staying at a hotel, sources tell Page Six.

Grammer, 55, dumped LA-based wife Camille Donatacci, 41, by telephone just over a month ago, telling her he “was done and wanted the single life.”

But family sources tell us Grammer begged her to fly in to put on a united front at the Tonys days later on June 13, then refused to let her into his apartment.

One source said, “Kelsey was so cold. He told her it was over and he wanted to see other people, but still asked her to be at the Tonys. She stayed at the London Hotel, and in public they acted like a couple, but he wouldn’t let her in his apartment, or discuss a reconciliation.

“Some friends say he changed after he moved to New York five months ago,” the source said. “He started hanging out late with a new crowd after the show, and became more distanced from Camille. He was living the single life.

“Just over a month ago, he called Camille out of the blue and said he was done with the marriage and wanted to start dating. Camille was devastated he could be so cold. For her, it was totally out of the blue.”

Camille — who had previously helped the former “Frasier” star beat his drug and booze problems — filed for divorce citing “irreconcilable differences” and seeking primary physical custody of the couple’s children — daughter Mason, 8, and son Jude, 5.

Grammer’s rep, Stan Rosenfield, said, “No, Kelsey did not end their marriage by telephone. Yes, she [Camille] did stay at a hotel.” Asked about Grammer’s alleged partying, he said, “He has not started drinking.”

Grammer’s rep said: “While some of what you write has an element of truth, none of it is accurate.”

Grammer said on his Web site earlier this week: “Camille and I had been discussing the possibility of a separation for some time before all this happened. She finally decided she should file. I respect her for this decision. I mean her no harm.”