Store prepared pesto in an airtight container in the fridge for up to 5 days or freeze for up to 6 months.