CD8+ TEX-related genes associated with HCC prognosis were analysed and identified, and a prognostic prediction model was constructed using the ‘least absolute shrinkage and selection operator’ Cox regression model. This evidence concerns the gene CD8A and hepatocellular carcinoma.