Sounds like he could be allergic to cephalexin. Though maybe side effects, as some do in people. I'm sure they can change him to a different antibiotic that will help him without the side effects. Hope he get to feeling better real soon.
You should call the vet phone number tomorrow. If its serious, call the emergency 24/7clinic tonight.
Thanks! Your answer is awaiting moderation.