ISLAMABAD, Pakistan — Pakistan’s army chief, the most powerful man in the country, is fighting to save his position in the face of seething anger from top generals and junior officers since the American raid that killed Osama bin Laden, according to Pakistani officials and people who have met the chief in recent weeks.

Gen. Ashfaq Parvez Kayani, who has led the army since 2007, faces such intense discontent over what is seen as his cozy relationship with the United States that a colonels’ coup, while unlikely, was not out of the question, said a well-informed Pakistani who has seen the general in recent weeks, as well as an American military official involved with Pakistan for many years.

The Pakistani Army is essentially run by consensus among 11 top commanders, known as the Corps Commanders, and almost all of them, if not all, were demanding that General Kayani get much tougher with the Americans, even edging toward a break, Pakistanis who follow the army closely said.

Washington, with its own hard line against Pakistan, had pushed General Kayani into a defensive crouch, along with his troops, and if the general was pushed out, the United States would face a more uncompromising anti-American army chief, the Pakistani said.