Codeine is used for the short-term relief of mild to moderate pain. It should only be used when other forms of non-opioid pain relief have not been successful in managing pain or are not tolerated. Codeine is not usually recommended for the treatment of chronic pain. Codeine may also suppress a dry cough.