All-inorganic cesium lead halide perovskites have attracted intensive interest as light absorbing materials due to their large absorption coefficient, long charge carrier lifetime and diffusion length, especially they show better stability than their organic and inorganic hybrid counterparts. Herein, we demonstrate a high-performance self-powered CsPbBr3 perovskite photodetector based on an all-inorganic structure. Our self-powered devices show high performance with the responsivity of 0.3 A/W, detectivity of 1.15 × 1013 cm Hz1/2/W and on/off ratio of 4.5 × 102. Notably, ZnO nanorods as a scaffold, which functions as a protection layer, are used to effectively enhance the stability and durability of perovskite photodetectors. Our all-inorganic device exhibits improvement of the stability in the air, has a certain high temperature endurance and shows the anti-corrosion ability to water and alcohol. These good performances and high stability present a potential application in harsh environments without external power sources.