Chelsea Manning, the transgender army private jailed for one of the largest leaks of classified documents in US history, was released from a military prison today after seven years behind bars.

The 29-year-old walked free from a maximum-security facility in Kansas thanks to a commutation of her sentence by president Barack Obama before he left office.

Manning "has been released from the United States Disciplinary Barracks" at Fort Leavenworth, US Army spokeswoman Cynthia Smith said in a brief statement.

In July 2010, Manning - then a male soldier known as Bradley - was arrested over the release of a huge trove of more than 700,000 classified military and diplomatic documents via WikiLeaks.

Without Obama's parting gift, the army private, who served as an intelligence official in Iraq, would have remained behind bars until 2045, after serving a 35-year sentence.

Supporters of Manning - who attempted suicide twice last year alone - said they feared she would not have been able to survive the long sentence. Now, she can complete her transition as a free, openly transgender woman.

"Two more days until the freedom of civilian life," Manning tweeted Monday. "Now hunting for private #healthcare like millions of Americans."

Manning went on a hunger strike during her detention to denounce the disciplinary measures to which she was subjected -- including stints in solitary confinement.

"For the first time, I can see a future for myself as Chelsea. I can imagine surviving and living as the person who I am and can finally be in the outside world," she wrote last week.

Manning's defense team is intent on protecting her.

The Oklahoma native had a difficult childhood. After her parents' divorce, Manning moved with her mother to Wales, where she repressed her sexuality and was mocked for her effeminate ways.

The military was therefore keen on keeping her release low-key. No press conference is planned and media massed at the military installation caught no glimpse of Manning as she was released.

Manning, of whom few photographs are publicly available, could find refuge at an aunt's home in the Washington region.

Virtually unknown at the time of her arrest, Manning today is a well-known figure around the world.

Labeled a traitor by President Donald Trump, she has gained the support of celebrities and is seen by many Americans as a courageous rights activist who was handed an unfair sentence for revealing civilian deaths caused by US bombings in Iraq and Afghanistan.

She wasn't able to flee abroad like Edward Snowden, who in 2013 released documents showing that the NSA was sweeping up US citizens' communications metadata.

Ahead of Manning's release, a group of musicians released a compilation album with all proceeds to go to the former soldier as she starts a new life.

"Hugs for Chelsea," a digital album available for a USD 25 donation, features tracks by artists known for their left- wing activism including Rage Against the Machine guitarist Tom Morello and Sonic Youth co-founder Thurston Moore.

Manning has also surreptitiously become an icon for transgender activists.

"The first thing Chelsea always says when we talk about her freedom is that she wants to give back to the trans community," said Chase Strangio, an American Civil Liberties Union lawyer who is himself transgender.

Manning was able to start hormonal treatment in prison to begin transitioning toward her female identity. This transition is certain to speed up outside a prison environment Manning said denied her "right to exist."

While Manning's sentence was commuted, her conviction remains intact. Manning, who will turn 30 in December, has appealed.

She is also still employed by the army, and retains its insurance coverage.

"Manning is statutorily entitled to medical care while on excess leave in an active duty status, pending final appellate review," said Foster, the Army spokesman.

(This story has not been edited by Business Standard staff and is auto-generated from a syndicated feed.)