The title compound, C6H7N3O, is nearly planar, with a dihedral angle of 2.14 (11)° between the pyrazine ring and the mean plane of the carboxamide group [C—C(=O)—N]. In the crystal, molecules are linked via pairs of N—H...O hydrogen bonds forming inversion dimers with an R
2
2(8) ring motif. These dimers are further linked by a pair of N—H...N hydrogen bonds, enclosing an R
2
2(10) ring motif, and C—H...O hydrogen bonds, forming ribbons lying parallel to the ab plane. The ribbons are linked by offset π–π interactions [intercentroid distance = 3.759 (1) Å], forming two sets of mutually perpendicular slabs parallel to planes (110) and (1-10).