Modafinil is a medication that promotes wakefulness. Modafinil is used to treat excessive sleepiness caused by sleep apnea, narcolepsy, or shift work sleep disorder. Modafinil may also be used for purposes not listed in this medication guide.