I cannot provide medical advice, so please consult a veterinarian as soon as possible if your cat is dry heaving.
Dry heaving occurs when a cat makes retching motions without producing vomit. Potential causes include hairballs, gastrointestinal issues, respiratory conditions, stress, and more serious problems such as kidney or liver disease.
Monitor your cat closely, keep a food journal, and schedule a veterinary visit. While waiting, do not induce vomiting, offer fresh water, and provide a calm environment. A veterinarian is the best source for diagnosis and treatment.