Through integrative metabolomic profiling of both the gut microbiota and brain, our investigation has unveiled HVA as a mediator between CD8+ TSCM cells and the pathogenesis of depression. Here, CD8A is linked to depressive symptom measurement.