Egypts President Abdul Fattah al-Sisi and his Sudanese counterpart Omar al-Bashir have agreed to support Libyas military as the nations parliament struggles to retake control of the countrys two biggest cities.
The two leaders announced the agreement on 19 October, after two days of talks in Cairo.
As well as supporting the military, Egypt and Sudan will also coordinate efforts to support other state institutions.
The announcement from Cairo about the plan to assist Libyas military comes one day after the countrys Prime Minister Abdullah al-Thani said he is looking to take back control of the nations capital, Tripoli, and its second city, Benghazi.
Libyas capital has been under the control of the General National Congress (GNC), an unelected parliament backed by a coalition of Islamist-led militias, since August, when pro-government militias were defeated in a battle over Tripolis international airport.
Military operations to attempt to defeat Islamist militias and take control of Benghazi started on 15 October.
A total of 65 people have died in the fighting so far, according to a government official who spoke to news agency AP on 20 October.
Thousands of residents have been displaced by the fighting.
Libyas elected parliament, the House of Representatives, is currently based on a cruise ship in the small port city of Tobruk due to concerns about militia attacks from groups operating in Tripoli and Benghazi.