Aims. The total and n-, l-, and S -resolved single-electron-capture cross sections for the collisions of O7+ with atomic hydrogen are studied in the energy region from 10−3eV u−1−5keV u−1. Methods. These state-selective cross sections were calculated by employing the full quantum-mechanical molecular-orbital close-coupling (QMOCC) method. The ab initio multireference single- and double-excitation configuration interaction approach, with optimized atomic basis sets to accurately describe the highly excited states, was used to obtain the adiabatic potentials and the radial and rotational coupling matrix elements that are required in the QMOCC calculation. Results. Our results are compared with other available theoretical and experimental data. The n = 5 manifold is the dominant reaction channel for the chasrge-transfer process for this collision system over the entire energy range, and our results agree better with the experimental data than the other theoretical results in the energy region in which they overlap because we included the necessary highly excited states in the expansion basis set. These charge-exchange cross-section data are useful for understanding and modeling the X-ray emission in astrophysical environments.