Lead-free perovskites are considered to be candidates for next-generation photodetectors, because of their excellent charge carrier transport properties and low toxicity. However, their application in integrated circuits is hindered by their inadequate performance and size restrictions. To aim at the development of lead-free perovskiteintegrated optoelectronic devices, a CsAg 2 I 3 /silicon (CAI/Si) heterojunction is presented in this work by using a spatial confinement growth method, where the in-plane growth of CAI microbelts with high-quality single-crystal characteristics is primarily dependent on the concentration of surrounding precursor solution. The fabricated photodetectors based on the CAI/Si heterojunctions exhibit a broad-spectrum detection capability in the ultraviolet− visible−near-infrared (UV-vis-NIR) range. In addition, the photodetectors show good photoelectric detection performance, including a maximum responsivity of 48.5 mA/W and detectivity of 1.13 × 10 11 Jones, respectively. Besides, the photodetectors have a rapid response of 6.5/224 μs and good air stability for over 2 months. This work contributes a new idea to design next-generation optoelectronic devices with high integration density.