In the title compound, C17H20ClN5O2, the benzene ring and the purine ring system make a dihedral angle of 78.56 (4)°. In the crystal, mol-ecules are linked by pairs of N-H⋯N hydrogen bonds, forming inversion dimers. C-H⋯O and C-H⋯Cl contacts further link the mol-ecules, forming a three-dimensional network.