Modafinil is a medication used to treat narcolepsy, sleep apnea, and other sleep disorders. It is not considered to be addictive, but some people may develop a dependence on it with long-term use. It is important to take modafinil only as prescribed by a doctor and to not exceed the recommended dose or frequency of use. If you have concerns about the potential for dependence or addiction, you should discuss this with your doctor.