It depends on how it is made and how much water it contains in the prepared Chili oil. Too much water is easy to deteriorate, usually for two or three weeks, and too little water is not easy to deteriorate. However, Chili oil can be preserved for a long time. Generally, the prepared Chili oil can be stored for 1-2 months if the water content is low, and the storage time will be slightly shortened when the temperature is high in summer, but it can also be stored for more than one month. But it's best to keep it in a cool, ventilated and dry place to avoid sun exposure, so it can be preserved for a long time.
Note: Chili oil must be oily, and pepper powder can be completely soaked for a long time.