Protists in the gut microbiota influence intestinal immunity and epithelial composition, yet the mechanisms used by these protists to shape the gut environment remain poorly understood. Here, we identify a new protist species, Tritrichomonas casperi, and show that metabolic differences between closely related commensal protists modulate their effects on host immunity and determine their ecological niche within the murine microbiota. Genomic and metabolomic analysis of commensal tritrichomonads reveal species-level differences in excretion of the tuft cell activating metabolite succinate, leading to differential induction of Th1, Th2, and Th17 cells in the small intestine. Using defined diets and in vitro growth assays, we show that different tritrichomonad species preferentially rely on dietary polysaccharides or mucus glycans, which leads to trans-kingdom competition with specific bacteria in the microbiota. Our findings elucidate differences in commensal tritrichomonad metabolism and suggest how dietary interventions could regulate the impact of these protists on gut health.