But Afghans wary of being abandoned are keen to lock America into a longer partnership after the deadline. Many analysts also believe the American military would like to retain a presence close to Pakistan, Iran and China.
Both Afghan and American officials said that they hoped to sign the pact before the Bonn Conference on Afghanistan in December. Barack Obama and Hamid Karzai agreed last week to escalate the negotiations and their national security advisers will meet in Washington in September.
Rangin Dadfar Spanta, Mr Karzai’s top security adviser, told The Daily Telegraph that “remarkable progress” had been made. US officials have said they would be disappointed if a deal could not be reached by December and that the majority of small print had been agreed.
Dr Spanta said a longer-term presence was crucial not only to build Afghan forces, but also to fight terrorism.
“If [the Americans] provide us weapons and equipment, they need facilities to bring that equipment,” he said. “If they train our police and soldiers, then those trainers will not be 10 or 20, they will be thousands.
“We know we will be confronted with international terrorists. 2014, is not the end of international terrorist networks and we have a common commitment to fight them. For this purpose also, the US needs facilities.”
Afghan forces would still need support from US fighter aircraft and helicopters, he predicted. In the past, Washington officials have estimated a total of 25,000 troops may be needed.
Dr Spanta added: “In the Afghan proposal we are talking about 10 years from 2014, but this is under discussion.” America would not be granted its own bases, and would be a guest on Afghan bases, he said. Pakistan and Iran were also deeply opposed to the deal.
Andrey Avetisyan, Russian ambassador to Kabul, said: “Afghanistan needs many other things apart from the permanent military presence of some countries. It needs economic help and it needs peace. Military bases are not a tool for peace.
“I don’t understand why such bases are needed. If the job is done, if terrorism is defeated and peace and stability is brought back, then why would you need bases?
“If the job is not done, then several thousand troops, even special forces, will not be able to do the job that 150,000 troops couldn’t do. It is not possible.”
A complete withdrawal of foreign troops has been a precondition for any Taliban negotiations with Mr Karzai’s government and the deal would wreck the currently distant prospect of a negotiated peace, Mr Avetisyan said.
Abdul Hakim Mujahid, deputy leader of the peace council set up by Mr Karzai to seek a settlement, said he suspected the Taliban had intensified their insurgency in response to the prospect of the pact. “They want to put pressure on the world community and Afghan government,” he said.