This study identifies opposing RANKL+ T cell and OPG-producing B cell immune phenotypes that shape bone metastasis risk in breast cancer. Here, TNFSF11 is linked to breast cancer.