He will leave the court 'a free man,' Judge Ramona Manglona said.

The judge said it was appropriate to accept the 62-month sentence he has already spent in a UK cell. "You will be able to walk out of this courtroom a free man," Judge Manglona said.

Earlier, Assange pleaded guilty in court as part of a deal with the US Justice Department to avoid further prison sentence and end the years-long legal saga.

The WikiLeaks founder arrived on Wednesday morning in the Northern Mariana Islands, a US territory in the Pacific Ocean, after being released from a British prison where he spent five years.

Australia's Ambassador to the US and former Prime Minister Kevin Rudd and High Commissioner to Britain Stephen Smith were also present in the court.

Assange will now fly to Canberra, the capital of Australia.