Covalent organic frameworks (COFs) have garnered considerable attention for their potential in photocatalytic hydrogen peroxide (H2O2) generation. However, their limited photocatalytic efficiency, resulting from rapid photogenerated carrier recombination and weak oxygen adsorption, remains a critical challenge, especially in systems without sacrificial agents. Herein, we present a cyano-functionalized COF, BTT-CN-COF, synthesized by Schiff-base condensation of benzotrithiophene-2,5,8-tricarbaldehyde and 2,5-diaminobenzonitrile monomers. Incorporating the electron-withdrawing cyano groups into the COF creates a strongly polarized microenvironment that redistributes π-electron structure. This modulation enhances material hydrophilicity, reduces exciton binding energy to accelerate charge separation, prolongs photogenerated carrier lifetime, and favors a Yeager-type oxygen adsorption configuration, thereby enhancing photocatalytic performance. Consequently, BTT-CN-COF achieves an impressive H2O2 production rate of 3711 μmol g−1 h−1 under sacrificial-agent-free conditions and retains high stability for at least 20 h, surpassing the cyano-free analogue COF (BTT-Ph-COF) and numerous reported COF-based photocatalysts. Mechanism studies reveal that H2O2 generation primarily proceeds via a sequential two-step single-electron oxygen reduction reaction, accompanied by a direct two-electron water oxidation reaction.