AR was negatively correlated with the immune microenvironment in patients with HER2+HR− nonmetastatic breast cancer. Here, AR is linked to breast cancer.