2-3 weeks in the fridge — just like larger pickled onions! If the shallots smell "off" or start to get too floppy or slimy, toss them.