Chlorpyrifos (CPF), a widely used organophosphorus pesticide, presents substantial risks to both environmental and human health due to its persistent accumulation, thereby necessitating the development of effective detection methods. Self-powered photoelectrochemical (PEC) sensors, as an innovative technology, address the limitations inherent in conventional sensors, such as susceptibility to interference and inadequate signal response. Herein, we synthesized Ag