Transition metal alloys have emerged as promising catalysts for oxygen reduction/evolution reactions (ORR/OER) because of their intermetallic synergy and tunable redox properties. However, for alloy nanoparticles, it is quite challenging to suppress the self-aggregation and promote the bifunctional activity. Anchoring alloys in heteroatoms-doped carbon matrix with excellent electro-conductibility is a powerful strategy to form strongly-coupled alloy-carbon nanohybrids. Here, highly-dispersed NiFe alloys are evenly in-situ anchored on the surface of Co, N co-doped carbon nanotubes (NiFe/Co-N@CNTs) via a gravity-guided chemical vapor deposition and self-assembly strategy. Stably-structured NiFe/Co-N@CNTs possesses a tubular skeleton with diameters of 80-100 nm and a hydrophilic surface. For ORR, half-wave potential of NiFe/Co-N@CNTs (0.87 V vs RHE) is higher than that of Pt/C (0.85 V). Strong synergies between NiFe alloys and Co-Nx species facilitate the charge transfer on one-dimensional conductive structure to boost the 4e- ORR kinetics. For OER, NiFe/Co-N@CNTs has a lower overpotential (300 mV) than RuO2 (400 mV) at 10 mA cm-2 due to in-situ formation of highly-active NiOOH/FeOOH species (as indicated by in-situ X-ray diffraction) at the catalytic sites on NiFe alloy. Rechargeable Zn-air battery (ZAB) with NiFe/Co-N@CNTs-based air-cathode exhibits promising open-circuit potential (1.52 V) and charge-discharge cycling stability (350 h). This alloy-carbon integrating strategy is meaningful for promoting dispersion, activity and stability of non-noble metal alloys for oxygen electrocatalysis.