Four Afghan factions have agreed on an interim cabinet headed by anti-Taliban commander Hamid Karzai.
It concludes a historic agreement aimed at restoring peace and stability.
United Nations envoy Lakhdar Brahimi won the accord following 10 hours of negotiations near Bonn.
It will govern Afghanistan for six months, until the former king convenes a traditional tribal council, or loya jirga.
With ethnic balance as the primary criterion, Brahimi shuttled among the four factions through the night to cull 29 names from 150 candidates.
However, UN spokesman Ahmad Fawzi said 10 or 11 names still had to be approved.
"These have not been filled yet, because they are in the process of contacting the candidates," Fawzi said. "But I can confirm Karzai is chairman of the interim administration."
The deal paves the way for eventual democratic elections including the right to vote for women.