Cyanine derivatives are organic dyes widely used for optical imaging. However, their potential in longitudinal optoacoustic imaging and photothermal therapy remains limited due to challenges such as poor chemical stability, poor photostability, and low photothermal conversion. In this study, we present a new structural modification for cyanine dyes by introducing a strongly electron-withdrawing group (barbiturate), resulting in a new series of barbiturate-cyanine dyes (BC810, BC885, and BC1010) with suppressed fluorescence and enhanced stability. Furthermore, the introduction of BC1010 into block copolymers (PEG114-b-PCL60) induces aggregation-caused quenching, further boosting the photothermal performance. The photophysical properties of nanoparticles (BC1010-NPs) include their remarkably broad absorption range from 900 to 1200 nm for optoacoustic imaging, allowing imaging applications in NIR-I and NIR-II windows. The combined effect of these strategies, including improved photostability, enhanced nonradiative relaxation, and aggregation-caused quenching, enables the detection of optoacoustic signals with high sensitivity and effective photothermal treatment of in vivo tumor models when BC1010-NPs are administered before irradiation with a 1064 nm laser. This research introduces a barbiturate-functionalized cyanine derivative with optimal properties for efficient optoacoustics-guided theranostic applications. This new compound holds significant potential for biomedical use, facilitating advancements in optoacoustic-guided diagnostic and therapeutic approaches.