Integrating diverse materials and functions into highly additive produce has piqued global interest due to the increasing demands of intelligent soft robotics. Nevertheless, existing assembly techniques, especially supramolecular assembly which heavily rely on precise chemical design and specific recognition, may prove inadequate when confronted with diverse external demands. Inspired by the traditional mechanical assembly, rivet connection, herein, a thermo-responsive hydrogel with unidirectional shape-morphing is fabricated and a stable mechanical assembly is constructed by emulating the rivet connection mechanism. This system employed poly(acrylamide-co-acrylic acid) [P(AAm-co-AAc)] to induce continuous swelling and hexylamine-modified polyvinyl alcohol (PVA-C6) as a molecular switch to control the swelling process. The hydrogel rivet, initially threaded through pre-fabricated hollows in two components. Subsequently, upon the disassociation of alkane chainsthe molecular switch would activate, inducing swelling and stable mechanical assembly via anchor structures. Moreover, to enhance the assembly strength, knots are introduced to enhance assembly strength, guiding localized stress release for programmed deformations. Additionally, the system can be remotely controlled using near-infrared light (NIR) by incorporating photo-thermal nanoparticles. This work presents a universal and efficient strategy for constructing stable mechanical assemblies without compromising overall softness, offering significant potential for the fabrication of integrated soft robots.