There are many great options for a xanthan gum substitute for a keto diet, psyllium husk is probably the best option, but chia seeds, flax seeds, unflavored gelatin, agar agar, konjac powder, pectin, corn starch, arrowroot flour, and egg whites are also good options.