Modafinil is a glutamate-enhancing agent that blunts cocaine euphoria under controlled conditions. Due to its stimulant-like properties, modafinil is also likely to relieve severe cocaine withdrawal symptoms. In turn, this may lead to better clinical outcomes. The purpose of this study is to determine whether modafinil improves abstinence during early recovery from cocaine dependence.