Lucinid bivalves harbor environmentally acquired endosymbionts within the class Gammaproteobacteria and genus Candidatus Thiodiazotropha. Despite recent studies focused on lucinid endosymbiont genomic and functional diversity, processes influencing species diversity have been understudied. From the analysis of 333 metagenome-assembled genomes (MAGs) from 40 host species across 8 waterbodies and 77 distinct locations, 272 were high quality MAGs of Ca. Thiodiazotropha endosymbionts that represented 11 genomospecies. Of those, two new genomospecies from lucinids collected from The Bahamas and Florida (USA) were identified, Ca. Thiodiazotropha fisheri and Ca. Thiodiazotropha grosi. Metabolic specialization was evident, such as potential adaptations to diverse carbon sources based on detection of one-carbon (C1) metabolic genes in eight genomospecies. Genes associated with defense, symbiosis/pathogenesis, and horizontal gene transfer (HGT) were also distinct across genomospecies. For instance, Ca. T. taylori exhibited lower abundances of HGT-associated genes compared to other genomospecies, particularly Ca. T. endolucinida, Ca. T. lotti, and Ca. T. weberae. HGT-associated genes were linked to previously unreported retron-type reverse transcriptases, dsDNA phages, and phage resistance. Collectively, the pangenome highlights how lucinid endosymbiont diversity has been shaped by geographic and host-specific interactions linked to gene loss and HGT through time.