Codeine is a prescription opioid painkiller used to manage moderate to mildly severe discomfort and also to ease the coughing.Codeine is sold as a single-ingredient tablet and is also offered in multi ingredient products that are paired with pain relievers as well as cold and flu medications.