As the milk solids have been removed, ghee doesn't go rancid as rapidly as ordinary butter does, so refrigeration is not so essential. However, it will extend its life, so it's worth keeping opened shop-bought ghee or homemade ghee in the fridge.