Imaging modalities combined with a multimodal nanocomposite contrast agent hold great potential for significant contributions in the biomedical field. Among modern imaging techniques, photoacoustic (PA) and fluorescence (FL) imaging gained much attention due to their non-invasive feature and the mutually supportive characteristic in terms of spatial resolution, penetration depth, imaging sensitivity, and speed. In this present study, we synthesized IR783 conjugated chitosan–polypyrrole nanocomposites (IR-CS–PPy NCs) as a theragnostic agent used for FL/PA dual-modal imaging. A customized FL and photoacoustic imaging system was constructed to perform required imaging experiments and create high-contrast images. The proposed nanocomposites were confirmed to have great biosafety, essentially a near-infrared (NIR) absorbance property with enhanced photostability. The in vitro photothermal results indicate the high-efficiency MDA-MB-231 breast cancer cell ablation ability of IR-CS–PPy NCs under 808 nm NIR laser irradiation. The in vivo PTT study revealed the complete destruction of the tumor tissues with IR-CS–PPy NCs without further recurrence. The in vitro and in vivo results suggest that the demonstrated nanocomposites, together with the proposed imaging systems could be an effective theragnostic agent for imaging-guided cancer treatment.