Rational engineering of facultative anaerobiosis enables commensal survival in the oxygenated gut.