Riboflavin-functionalized repeat proteins enable controlling the photocatalytic activation and delivery of Pt anticancer agents in vitro.