CD8+ T cell responses to chronic infection and cancer rely on precursors of exhausted T (Tpex) cells, which retain self-renewal capacity and generate exhausted effector T cells that mediate disease control. Tpex cells display a transcriptional profile that combines memory-like features with elements reminiscent of follicular helper T (Tfh) cells. However, the functional significance of this Tfh-associated program in Tpex cells remains incompletely understood. Here, we reveal antagonistic functions for the Tfh-associated receptors CXCR5 and ICOS in regulating Tpex cell maintenance in chronic infection. CXCR5 promoted the localization of Tpex cells to the splenic white pulp, supporting their maintenance. In contrast, ICOS acted as a co-stimulatory receptor to enhance TCR signalling strength upon activation. ICOS deficiency prevents over-activation in response to high antigen loads, thus promoting Tpex cell expansion and the generation of their effector-like progeny. Finally, by taking advantage of a novel antigen-specific chronic lymphocytic leukemia model, we show that ICOS expression negatively regulated splenic tumor-specific T cell responses thereby limiting tumor control. Together, our findings identify ICOS and CXCR5 as critical regulators for the maintenance and effector-fate of Tpex cells, shaping exhausted T cell responses in chronic infection and cancer.