London (AFP) - WikiLeaks founder Julian Assange will agree to be extradited to the United States if President Barack Obama grants clemency to the former US soldier Chelsea Manning, jailed for leaking documents, the company said on Thursday.

Assange has been living in the Ecuadoran embassy in London since June 2012 to avoid extradition to Sweden to face sexual assault allegations.

The Australian former computer hacker said he fears Stockholm will in turn extradite him to the US, where he angered Washington over WikiLeaks' publication of thousands of US military and diplomatic documents leaked by former US soldier Manning.

Manning is currently serving a 35-year sentence in solitary confinement for handing over the 700,000 sensitive documents from the US State Department.

People hold signs calling for the release of imprisoned WikiLeaks whistleblower Chelsea Manning while marching in a gay-pride parade in San Francisco, June 28, 2015. REUTERS/Elijah Nouvelage/File Photo

Manning has already made two suicide attempts and currently has an appeal pending before a military court.

Washington has maintained the threat of prosecuting Assange over the 2010 leak, though no charges have been filed.

WikiLeaks' post on Twitter was accompanied by a letter addressed to US Attorney General Loretta Lynch, in which Assange's lawyer Barry Pollack argues there is no legitimate basis for continuing the investigation into the WikiLeaks founder.