An optimal control framework using control barrier functions can influence human driving behavior effectively in mixed-autonomy traffic scenarios.