The optimal time for cleft lip repair is typically within the first 3 to 6 months of life. Early intervention is crucial to minimize potential complications and promote normal development. However, the timing can vary depending on the baby's overall health and the extent of the cleft.