Here we describe how to tether a fly in an olfactory magnetic-tether (OMT) apparatus. We describe how to align the rare-earth magnets and odor ports, and how to set mass flow rates for both the stimulus delivery and vacuum suction to achieve optimal odor tracking.