Non-alcoholic steatohepatitis (NASH) impairs the mitochondrial function and glucose uptake of CD8+ T cells, diminishing its anti-tumor capacity. Here, CD8A is linked to metabolic dysfunction-associated steatohepatitis.