especially if you're following a vegetarian-friendly keto diet. However, only certain beans, such as green beans, soybeans, and green peas, are low enough in carbohydrates to qualify as keto-friendly.
Even sources of nonanimal protein, such as lentils and beans, can be relatively high ... even if they are keto-friendly. The keto diet is a high fat, moderate protein, and low carbohydrate diet.