Acute bacterial endocarditis is a rapid, difficult to manage, and frequently lethal disease. Potent antibiotics often cannot efficiently kill Staphylococcus aureus that colonizes the heart’s valves. S. aureus relies on virulence factors to evade therapeutics and the host’s immune response, usurping the host’s clotting system by activating circulating prothrombin with staphylocoagulase and von Willebrand factor–binding protein. An insoluble fibrin barrier then forms around the bacterial colony, shielding the pathogen from immune cell clearance. Targeting virulence factors may provide previously unidentified avenues to better diagnose and treat endocarditis. To tap into this unused therapeutic opportunity, we codeveloped therapeutics and multimodal molecular imaging to probe the host-pathogen interface. We introduced and validated a family of small-molecule optical and positron emission tomography (PET) reporters targeting active thrombin in the fibrin-rich environment of bacterial colonies. The imaging agents, based on the clinical thrombin inhibitor dabigatran, are bound to heart valve vegetations in mice. Using optical imaging, we monitored therapy with antibodies neutralizing staphylocoagulase and von Willebrand factor–binding protein in mice with S. aureus endocarditis. This treatment deactivated bacterial defenses against innate immune cells, decreased in vivo imaging signal, and improved survival. Aortic or tricuspid S. aureus endocarditis in piglets was also successfully imaged with clinical PET/magnetic resonance imaging. Our data map a route toward adjuvant immunotherapy for endocarditis and provide efficient tools to monitor this drug class for infectious diseases.