Where President Obama flew, so flew his trusty stenographer — and now she’s written a memoir that offers a fair share of drugs and sex, but is frustratingly short on naming names.

Beck Dorey-Stein traveled for five years alongside the White House press corps, describing the experience as “summer camp on steroids” in her new book, “From the Corner of the Oval.”

Her job was to record everything the president said, and then provide fast transcripts to the press office and presidential archive — but there was still plenty of time for extracurricular activities with her reporter and Obama-staffer colleagues.

The press corps traveled on a privately chartered “party plane,” she dishes of jetting to more than 60 countries with a pool of 13 reporters.

On long flights, everyone took whatever worked to get some shuteye, including Sonata, Xanax and Ambien.

The drugs made “awkward intimacy with colleagues suddenly just funny and bizarre,” Dorey-Stein writes, according to the Daily Mail.

And while Dorey-Stein offers no gossip on Obama himself, the stenographer — one of three rotating on Air Force One trips and other travel assignments — did admit leaving her hotel room ajar in foreign cities, for the benefit of a senior-staffer sweetheart she calls “Jason Wolf.”

“She’d listen to old-timer boozy party animals tell stories about the different administrations, presidents, international incidents they’ve witnessed – from George H.W. puking on the prime minister of Japan, Reagan in Rome falling asleep in front of the pope, Monica Lewinsky, 9/11, and Katrina,” the Mail writes.

“Pinch me,” Dorey-Stein recalls thinking, “because how is this scene my real life?”

Obama makes several cameos — appearing next to Dorey-Stein on a hotel treadmill, where the then-president jovially “trash talked” her efforts, in order to push her to work out harder.

She describes Obama being on vacation in Martha’s Vineyard when news broke that photojournalist Jim Foley had been beheaded by ISIS.

Dorey-Stein taped his press conference that day: “No one in that room can deny the power and sincerity of the president’s address. But even more remarkable than the president’s palpable anger – the sound that follows his words: unprecedented silence.”

After taking no questions, Obama went golfing.

Dorey-Stein doesn’t criticize him, explaining, “that exercise is how POTUS copes with stress and grief…golf doesn’t provide the president an escape; it allows him the only breathing room he’s afforded.”

The book comes out July 10 and is published by Spiegal & Grau.

Additional reporting by Elizabeth Rosner