• A soft, untethered electronic robot integrates magnetically responsive composites for reversible programming and diverse motions.
• Seamless integration of soft/flexible electronics ensures stable multi-modal electrical functions without hindering mechanical movement.
• Demonstrations in artificial tracks show on-demand, environment-responsive navigation and optoelectrical detection/stimulation.
• Potential for miniaturized biomedical implants enabling in situ monitoring and treatment.