WASHINGTON — Alexandria Ocasio-Cortez paid her first visit today to Nancy Pelosi’s office — to join a protest about climate change.

The self-described Democratic socialist, who’ll be entering Congress next year, joined environmental activists from the Sunrise Movement to demand legislation to achieve 100 percent renewable energy and a special committee in Congress to address climate change.

They later staged a sit-in, where some were arrested.

Ocasio-Cortez wasn’t present for the arrests, which were planned as part of the protests, said Corbin Trent, her spokesman.

She also didn’t encounter Pelosi in her office.

“She was a movement candidate and she’ll be a movement representative,” Trent told The Post.

Pelosi, the presumptive House Democratic leader, later issued a statement saying she welcomes the energy of young activists and will recommend the reinstatement of a select committee to address the climate crisis.

But Sunrise Movement wasn’t convinced: “Nancy Pelosi is bringing a squirt gun to a wildfire,” the group tweeted.

Ocasio-Cortez, 29, took a more measured approached and thanked Pelosi for listening to the protesters.

“This morning 100s of young people came together to ask us as elected officials to act urgently to draft a Green New Deal that gets us to 100% renewable energy ASAP,” Ocasio-Cortez tweeted.

“They asked me to join them, and I did. We can embrace the energy of activism to move our party’s goals forward.”