AAV but not saline injections triggered hypothalamic CD8 T-cell infiltrates associated with a rapid weight gain in mice recapitulating the findings in human obesity. Here, CD8A is linked to obesity due to melanocortin 4 receptor deficiency.