Breathing pure oxygen through a machine is an effective way to treat the pain from cluster headaches. Oxygen can decrease blood flow to the part of the brain that is causing the headache.