Abstract Organic–inorganic halide perovskites have demonstrated great potential for photovoltaic applications owing to their unprecedented optoelectronic properties and low manufacturing costs. However, the commercialization of this technology is hindered by its thermal instability and inherent toxicity. In this study, SCAPS-1D simulation software was used to study the performance of solar cell based on CuAgBi2I8, which is a novel inorganic non-toxic lead-free perovskite-inspired material. Different electron transport layers (TiO2, In2S3, ZnO, Zn0.75Mg0.25O,SnO2 and SrTiO3) and hole transport layers (CuI, PEDOT:PSS, CuSCN and Cu2O) were studied, our research indicated that SnO2 and NiO formed the optimal combination. Further analysis revealed that the optimal absorption layer thickness was 900 nm, the absorption layer doping concentration should be less than 1 × 1013 cm−3 and the defect density should be less than 1 × 1014 cm−3. The optimal thickness of SnO2 and NiO was 30 nm, the optimal doping concentration of SnO2 and NiO was 1 × 1020 cm−3, the defect density of absorber layer/SnO2 and absorber layer/NiO interfaces should be less than 1 × 1012 cm−3, C was the optimal back electrode material. Consequently, the optimal device configuration was identified as FTO/SnO2/CuAgBi2I8/NiO/C, the efficiency was improved from original 2.76% to 19.10% after above optimization. These results indicate that solar cell with CuAgBi2I8 as the absorber layer is a potential alternative to organic–inorganic lead halide perovskite solar cells.