Note from Ricardo Pesto conservation Pesto will keep for about 2 weeks in the refrigerator. You can also freeze it. On contact with air, the top of the pesto tends to darken. Add a thin layer of olive oil on the surface to prevent oxidation.