Wireless delivery of both light and pharmacological agents is important for optogenetic and other mechanistic experiments in the brain. Here the authors present a wireless real-time programmable optofluidic platform that enables optogenetics and photopharmacology experiments that require real-time precise control of light and drug delivery.