If not using right away, cover the surface of the pesto with plastic wrap and refrigerate for up to a week. Or freeze pesto in ice cube trays, then transfer to zip-top freezer bags (keeps, frozen, for about 3 months), then use the cubes to stir into soups, pastas, spread on sandwiches, top pizza, and use in veggie sauces.