Peritoneal metastases (PM) in gastric cancer (GC) portend a poor prognosis, yet our understanding of tumor microenvironmental (TME) characteristics associated with GCPM remain limited. Here, we analyzed intrinsic genomic alterations and transcriptomic programs predictive of GCPM in a prospective cohort of 248 patients, identifying CDH1, PIGR, and ELF3 mutations as predictors. By inspecting the spatial dynamics of the TME, we find that tumor compartment infiltration of pro-tumorigenic cell types such as inflammatory cancer-associated fibroblasts (CAFs) predict peritoneal recurrence. Next, in a cross-sectional study of 205 samples from 55 patients, distinct pathways and immune compositions in GCPM relative to liver metastases highlight the TME's significance in transcoelomic metastases. Notably, several putative therapeutic targets exhibited distinct expression patterns between PTs and PMs. We also observed increased immune infiltration in GCPMs treated with systemic immunotherapy and intraperitoneal chemotherapy. Our findings highlight transcriptomic variations and niche reprogramming in the GCPM peritoneal environment, revealing roles of myeloid dendritic cells, effector memory CD8+ T cells, and CAFs in metastatic progression.