Phase separation of proteins is recognized as an important aspect of cellular organization and disease mechanisms. Shin et al. introduce a novel optogenetic tool, which enables different phase-space regimes inside living cells to be assessed and the transition paths between them to be studied with unprecedented spatiotemporal control.