Devices, systems and methods of neurostimulation for treating obstructive sleep apnea. The system is adapted to send an electrical signal from an implanted neurostimulatorthrough a stimulation lead to a patient's nerve at an appropriate phase of the respiratory cycle based on input from a respiration sensing lead. External components are adapted for wireless communication with the neurostimulator. The neurostimulator is adapted to deliver therapeutic stimulation based on inputs.