Optogenetic control of microbial metabolism offers flexible dynamic control over fermentation processes. The protocol here shows how to set up blue light-regulated fermentations for chemical and protein production at different volumetric scales.