The asymmetric unit of the title compound, C22H23N5O2, contains two independent mol-ecules with similar conformations; the terminal pyridine rings are oriented at dihedral angles of 23.99 (8) and 18.07 (8)° with respect to the central benzene ring in one mol-ecule and 28.99 (8) and 23.22 (8)° in the other. In the crystal, N-H⋯O and weak C-H⋯O hydrogen bonds link the mol-ecules into a three-dimensional supra-molecular structure. Weak inter-molecular C-H⋯π inter-actions are also observed in the crystal.