Huang et al. develop an interface to allow electrode-mediated stimulation of gene expression in human cells, utilizing direct current-generated reactive oxygen species to stimulate transgene expression downstream of the KEAP1–NRF2 biosensor. In a type 1 diabetic mouse model, this interface is demonstrated to ameliorate hyperglycemia by stimulating insulin expression.