Hydrogenation studies were carried out on an intermediate-valence compound Ce 2 Ni 2 In. The alloy was found to absorb up to x=4.98 hydrogen atoms per formula unit at 430K and at a pressure of 0.3MPa. The synthesized hydrides were stable in air for a period of few months. The hydrides with x<2 retain the tetragonal Mo 2 FeB 2 -type structure (space group P4/mbm) of the parent compound. For larger hydrogen content a new hydride phase appears with an orthorhombic structure (space group Pbam). Along with the hydrogen uptake in Ce 2 Ni 2 InH x there occurs a change in the character of the electronic ground state related to the 4f electrons, from valence fluctuations in the parent compound to rather stable 4f 1 configuration in the hydride with x=4.98. Furthermore, for x=2.02 and x=4.98 long-range antiferromagnetic ordering is observed at low temperatures.