We here identified different distribution, function, and trajectory of CD8+PD-1+CD161+ and CD8+PD-1+CD161− T cells in tumor lesions, which provided new insights for the heterogeneity of immune environment in HCCs and also shed light on the potential target for immunotherapy. The gene discussed is KLRB1; the disease is neoplasm.