When asked what he wanted from the company, he did not respond directly.

“Their behavior does not present a path forward,” Mr. Gianaris said of Amazon. “They’re sitting there threatening to leave, which is what they did to Seattle when they got them to bend to their will.

“Amazon is big, but it’s not bigger than New York. They don’t get to tell us what to do.”

Councilman Jimmy Van Bramer of Queens, another onetime proponent turned vigorous opponent, was more direct. “I want the deal to be scrapped in its entirety,” he said. “They want to crush unions. They want to work with ICE. They want to bypass community review. They want to take giant subsidies. I don’t see them changing one bit and so, yeah, they’re not welcome here.”

The fight has drawn in unions on both sides. It has highlighted divisions between long-term residents of public housing in Long Island City, most of them black and Hispanic, and wealthier recent arrivals, many of whom are white. It has become a kind of litmus test for progressive bona fides on the left flank of the Democratic Party in New York, exposing the same sorts of fault lines — pragmatism versus principle; rapid versus deliberate change; capitalism versus socialism — that are roiling the party nationally.

The opponents to Amazon are eclectic, but they unite on one point: They do not want the city and the state to offer up to $3 billion in incentives and direct subsidies to the company for bringing 25,000 to 40,000 jobs to Queens.

They are divided, however, on what should happen instead. Young activists and nonprofit groups that are going door-to-door in neighborhoods across western Queens want Amazon to pack its bags — and even to cease to exist in its present form.

“We would like to see changes at the federal level and Amazon broken up,” said Will Spisak, of the Queens-based antipoverty group, Chhaya. “Obviously that’s a big long-term goal.”