Engineering microscopic collectives of cells or microrobots is challenging due to the often-limited capabilities of the individual agents, our inability to reliably program their motion and local interactions, and difficulties visualising their behaviours. Here, we present a low-cost, modular and open-source Dynamic Optical MicroEnvironment (DOME) and demonstrate its ability to augment microagent capabilities and control collective behaviours using light. The DOME offers an accessible means to study complex multicellular phenomena and implement de-novo microswarms with desired functionalities. Corresponding author(s) Email: [email protected] [email protected]