I find that sage tends to last a long time. So typically, you could put pesto in an airtight container in the fridge, cover with a thin layer of olive oil, and keep for about a week. But the sage might last even longer than that.