Homemade pesto can typically be stored in an airtight container in the refrigerator for up to one week. Make sure to cover the surface of the pesto with a thin layer of olive oil to help preserve its vibrant green colour and prevent oxidation.