The United States on Tuesday sent its highest-level official to Libya since 2014 in what it called a signal of Washington's increased focus on efforts to resolve the country's crisis.
Acting assistant secretary of state Joey Hood met Libya's new Government of National Unity (GNU) head Abdulhamid Dbeibeh and Presidential Council chief Mohammed al-Menfi.
"The goal of the United States is a sovereign, stable, unified Libya with no foreign interference, and a state that is capable of combating terrorism," he said at a joint news conference with Libyan Foreign Minister Najla al-Mangoush.
The GNU's appointment in March was accepted by both main sides in the war in a move seen as representing the best hope for peace in years, though with many big obstacles remaining.
The UN-facilitated peace process, including a ceasefire and steps to resolve tangled economic grievances, has coincided with increased US attention, evident in the appointment of its ambassador Richard Norland as US special envoy to Libya.
The GNU has a mandate to unify state institutions split by the years of warfare, improve government services and prepare for a national election in December.
However, the risk of a return to fighting remains, with armed groups holding territory across the country, foreign mercenaries entrenched with allied Libyan forces along the frozen frontline and outside powers engaged from afar.
Turkey, which in the war backed the former Government of National Accord (GNA) with military help, has kept its presence in western areas.
On both main sides of the conflict, in eastern and western Libya, powerful figures have challenged elements of the GNU's mandate or cabinet, and diplomats have privately called into question the likelihood of elections going ahead.
"We oppose foreign fighters, we oppose proxy forces," Hood said.
"The agreement on an electoral roadmap for elections in December is very important," he added.
Hood is the latest in a parade of foreign diplomats and politicians visiting Libya since the GNU took office with some reopening long-closed embassies.
Mangoush said they had affirmed the need for the United States to support the GNU, particularly in creating the necessary conditions to hold elections.
She said Libya had called on the United States to reopen both its Tripoli embassy and the consulate in Benghazi, where a 2012 militant attack killed the ambassador and three other US personnel.
The United States has been more vocal on Libya issues since last summer, when its military Africa Command issued statements about the presence of Russian military assets in the country.
Since Joe Biden became president in January, its approach towards Libya has become more focused, diplomats from other countries involved in Libya have said.