It's possible it's a parasite. You can try an over the counter wormer, but I'm not aware of any home remedy for treatment.
If your kitten has not eaten in five days, he needs to see a veterinarian immediately if you intend to save him. After it has gone on this long, with evidence of pain, it is far too late, I imagine, to look for a home remedy.