Breast cancer has the highest incidence rate of cancer worldwide, and brain metastases (BrM) are among the most malignant cases. While some patients have benefited from immune checkpoint inhibitors (ICIs), the complex anatomical structure of the brain and the heterogeneity of metastatic tumors have made it difficult to characterize the tumor immune microenvironment (TME) of metastatic tumors. To address this, we used single-cell RNA sequencing (scRNA-seq) to analyze immune cells in the cerebrospinal fluid (CSF) of BrM patients with breast cancer, thereby providing a comprehensive view of the immune microenvironment landscape of BrM. Based on canonical marker genes, we identified nine cell types, and further identified their subtypes through differential expression gene (DEG) analysis. We compared the changes in cells and functions in the immune microenvironment of patients with different prognoses. Our analysis revealed a series of genes that promote tumor immune function (CCR5, LYZ, IGKC, MS4A1, etc.) and inhibit tumor immune function (SCGB2A2, CD24, etc.). The scRNA-seq in CSF provides a noninvasive method to describe the TME of breast cancer patients and guide immunotherapy.