The 'gamma' parameter in the RBF kernel for OCSVM dictates the influence radius of individual training samples, directly impacting the decision boundary's shape and tightness for anomaly detection. A high gamma value creates a localized, complex boundary, potentially leading to overfitting, while a low gamma results in a smoother, more general boundary that might underfit.