Cephalexin(keflex) is a cephalosporin not in the penicillin family. They do have cross reactions so someone who is allergic to penicillins needs to be more careful and watch for signs of allergic reaction esp if it is given IV. I am allergic to penicillin but not to keflex.