Modafinil is a medication that is taken orally. The brand name for Modafinil is Provigil. Modafinil is used to improve wakefulness in patients with excessive sleepiness. The medication has a similar effect as caffeine; it will stimulate the brain and make a tired individual feel more awake and rested. Modafinil (Provigil) is classified as a stimulant.