The 18-gene signature of literature reported psychological stress-related genes establishes a model with consistent performance for predicting clinical outcomes and captures immune activation, which could improve prognostic precision and predict immunotherapy response.