You can store pesto in the fridge for up to a week. Anything longer isn't recommended for homemade pesto.