In order to assist after-stroke individuals to rehabilitate their movements, research centers have developed lower limbs exoskeletons and control strategies for them. Robot-assisted therapy can help not only by providing support, accuracy, and precision while performing exercises, but also by being able to adapt to different patient needs, according to their impairments. As a consequence, different control strategies have been employed and evaluated, although with limited effectiveness. This work presents a bio-inspired controller, based on the concept of motor primitives. The proposed approach was evaluated on a lower limbs exoskeleton, in which the knee joint was driven by a series elastic actuator. First, to extract the motor primitives, the user torques were estimated by means of a generalized momentum-based disturbance observer combined with an extended Kalman filter. These data were provided to the control algorithm, which, at every swing phase, assisted the subject to perform the desired movement, based on the analysis of his previous step. Tests are performed in order to evaluate the controller performance for a subject walking actively, passively, and at a combination of these two conditions. Results suggest that the robot assistance is capable of compensating the motor primitive weight deficiency when the subject exerts less torque than expected. Furthermore, though only the knee joint was actuated, the motor primitive weights with respect to the hip joint were influenced by the robot torque applied at the knee. The robot also generated torque to compensate for eventual asynchronous movements of the subject, and adapted to a change in the gait characteristics within three to four steps.