Solitons, particle-like excitations ubiquitous in many fields of physics, have been shown to exhibit bound states akin to molecules. The formation of such temporal soliton bound states and their internal dynamics have escaped direct experimental observation. By means of an emerging time-stretch technique, we resolve the evolution of femtosecond soliton molecules in the cavity of a few-cycle mode-locked laser. We track two- and three-soliton bound states over hundreds of thousands of consecutive cavity roundtrips, identifying fixed points and periodic and aperiodic molecular orbits. A class of trajectories acquires a path-dependent geometrical phase, implying that its dynamics may be topologically protected. These findings highlight the importance of real-time detection in resolving interactions in complex nonlinear systems, including the dynamics of soliton bound states, breathers, and rogue waves.