The invention refers to a portable device (100) for upper limb (2, 3) rehabilitation which is movable over a surface, usually a flat horizontal surface, and which comprises means for detecting an intention to move from the user (1), thereby providing assistance/resistance to perform the right movement just when needed, especially when the goal movement is non-deterministic.