Store leftover gnocchi in an airtight container in the refrigerator for up to 2 days. For freezing uncooked gnocchi, place them on a baking sheet in a single layer and freeze until solid before transferring to a freezer bag. They can be frozen for up to 2 months.