by Drugs.com Gabapentin is commonly used to treat some types of nerve pain but is classified as an anticonvulsant medicine, not as an opioid or painkiller.