In the title compound, [CdNi(C9H8N2)2(CN)4]n, the Cd and Ni atoms both lie on centres of inversion in space group P21/c. The Cd atom is coordinated by two bidentate quinolin-8-amine ligands and by the N atoms of two cyano ligands, while the square planar Ni atom is coordinated by the C atoms of four cyano ligands. These units form a one-dimensional coordination polymer containing an (–NC—Ni—CN—Cd–)n backbone, and the coordination polymer chains are linked into a three-dimensional array by a combination of N—H...N and C—H...N hydrogen bonds, augmented by a π–π stacking interaction.