It has broad application prospects in the fields of biomimetic artificial visual perception and neuromorphic computing. 2D van der Walls (vdW) materials are considered as one of the most potential materials for constructing the NVOM due to their unique light-matter interaction at atomic scale, highly tunable band gap, and diversified electronic structure. [1][2][3][4] In recent years, there have been extensive researches on the development of NVOM in the visible range. [5,6] Light in the near infrared (NIR) range has strong penetrability and the NIR spectra of object carries a variety of characteristic information. NVOM responsive to NIR range will offer unique optical environment adaptability in night, foggy, or another complex environment with accurate recognition, which are strongly required in applications of robots, autonomous driving, and unmanned aerial vehicles. [7,8] Furthermore, the widely used band for optical communication and computing, for example 1550 nm, lies in the NIR region, and the corresponding NVOM is the vital device in optoelectronic integrated chips for neuromorphic computing. [9] However, the responsive range of 2D NVOM is still limited to the visible range.The most common structure for 2D vdW NVOM is the floating gate (FG) structure as shown in Figure 1a, in which, charges are stored in the floating gate because of the isolation Nonvolatile optoelectronic memory (NVOM) integrating the functions of optical sensing and long-term memory can efficiently process and store a large amount of visual scene information, which has become the core requirement of multiple intelligence scenarios. However, realizing NVOM with vis-infrared broadband response is still challenging. Herein, the room temperature vis-infrared broadband NVOM based on few-layer MoS 2 /2D Ruddlesden-Popper perovskite (2D-RPP) van der Waals heterojunction is realized. It is found that the 2D-RPP converts the initial n-type MoS 2 into p-type and facilitates hole transfer between them. Furthermore, the 2D-RPP rich in interband states serves as an effective electron trapping layer as well as broadband photoresponsive layer. As a result, the dielectric-free MoS 2 /2D-RPP heterojunction enables the charge to transfer quickly under external field, which enables a large memory window (104 V), fast write speed of 20 µs, and optical programmable characteristics from visible light (405 nm) to telecommunication wavelengths (i.e., 1550 nm) at room temperature. Trapezoidal optical programming can produce up to 100 recognizable states (>6 bits), with operating energy as low as 5.1 pJ per optical program. These results provide a route to realize fast, low power, multi-bit optoelectronic memory from visible to the infrared wavelength.