Saif al-Islam Gaddafi, second son of the late deposed Libyan leader Col Muammar Gaddafi, is said to have been freed under an amnesty, in a move which could fuel further instability.
His father's preferred successor, he had been held by a militia in the town of Zintan for the past six years.
The Abu Bakr al-Siddiq Battalion said he had been released on Friday but he has not been shown in public.
A source has told the BBC he is in the Tobruk area of eastern Libya.
His lawyer, Khaled al-Zaidi, also said he had been released but would not say which city Saif al-Islam had travelled to for security reasons.
The Abu Bakr al-Siddiq Battalion said it was acting on a request from the "interim government".
That government - based in the east of the country - had already offered amnesty to Saif al-Islam.
However, he has been sentenced to death in absentia by a court in Tripoli, the west of the country, where control is in the hands of the rival, UN-backed Government of National Accord.
Saif Gaddafi still commands some support in Libya
Previous reports of Saif al-Islam Gaddafi's release proved to be false.
He is wanted by the International Criminal Court for crimes against humanity during his father's unsuccessful attempts to put down the rebellion.
The 44-year-old Saif al-Islam - who was controversially granted a PhD by the London School of Economics in 2008 - was captured in November 2011 after three months on the run following the end of Muammar Gaddafi's decades-long rule.
He was previously known for playing a key role in building relations with the West after 2000, and had been considered the reformist face of his father's regime.
But after the 2011 uprising, he found himself accused of incitement to violence and murdering protesters.
Four years later, he was sentenced to death by firing squad following a trial involving 30 of Gaddafi's close associates.
Latest Stories
-
Sacking Otto Addo is the only response to poor Black Stars performances – Osei Palmer
12 minutes -
Investigators scale barricades to arrest S Korea’s impeached president
46 minutes -
Reece James late free kick cancels out Semenyo stunner
1 hour -
IPPG calls on Mahama to retain and reset the Emissions Levy
2 hours -
Resetting the Ghanaian Economy: What to focus on
2 hours -
Mahama’s visit to Bawku is critical for lasting peace – National Peace Council
3 hours -
Scores injured in Walewale as soldiers are accused of brutal assault
4 hours -
Mahama meets Mamprugu king over Bawku chieftaincy stalemate
4 hours -
Mahama calls for robust investment to uplift vulnerable populations
4 hours -
Social media hate speeches harming peace efforts in Bawku – Peace Council
5 hours -
Policy Expectations of the New Government: A robust asset and liability declaration framework
5 hours -
Engender trust to resolve Bawku crisis – Former Defence Minister Dominic Nitiwul advises
5 hours -
Guardiola divorces wife of 30 years
5 hours -
Up to 4 in 10 people could develop dementia after 55. What you can do to lower your risk
5 hours -
Mohbad’s widow, father face-off over DNA test
6 hours