A defined commensal consortium elicits CD8 T cells and anti-cancer immunity. Here, CD8A is linked to cancer.