Soft robots made of hydrogels with anisotropic and shape-change properties offer interesting design opportunities. Here, the authors report zwitterionic hydrogels and anisotropic cellulose nanocrystals composites in which the shear-induced alignment of cellulose nanocrystals allows for the development of shape-change programmable miniature robots.