CO2 enhanced shale gas recovery (CO2-ESGR), as one of the most promising carbon capture, utilization and storage (CCUS) technologies, can both improve the shale gas production for clean energy supply and mitigate greenhouse gas emissions for the goal of carbon neutrality. The adsorption characteristics of CO2 and CH4 in shale play a key role in the reserve assessment of shale gas and the implementation of CO2-ESGR. The problem of accurate prediction of the adsorption and competitive adsorption characteristics of CO2 and CH4 in shale is still one of the main challenges for CO2-ESGR. To bridge the gap, this work developed a generalized prediction model for the adsorption properties of CH4, CO2, and their mixed gas in shale by improving the Langmuir model, covering a large range of temperature, pressure, and total organic carbon content (TOC). The mathematical models for the key parameters of the Langmuir model, the saturated adsorption capacity Q0 and Langmuir pressure PL, were built for the single-component gas based on their functional relationship with temperature and TOC, and for the mixed gas based on their relationship with Q0 and PL of the single-component gas and CO2 content. Then an improved Langmuir model for the adsorption properties of CO2-CH4 in shale was established. The accuracy of the improved model was verified with a relative deviation below 5 % in a large range of temperature (303–363 K), pressure (0–15 MPa) and TOC (1.06 %-3.83 %) by comparing the calculated adsorption with the experimental data. This generalized adsorption model not only ensures the prediction accuracy of CO2-CH4 adsorption characteristics in shale but also expands its application convenience in a large range of temperatures, pressures and TOC, providing a certain theoretical basis for CO2-ESGR technology.