Modafinil, sold under the brand name Provigil, is a medication to treat sleepiness due to narcolepsy, shift work sleep disorder, or obstructive sleep apnea.