Hamsters are omnivores, which means they eat both plants and insects in the wild. In captivity, hamsters can be raised as gentle omnivores with relatively simple nutritional needs. The majority of their diet should be made up of grains, seeds, and nuts, which are the cornerstone of their diet both in the wild and in captivity. In addition to these, dark greens and other vegetables should be a part of their diet as well. Most hamsters enjoy snacking on whole grains in the form of bits of whole-grain toast, whole-grain cereals, cooked pasta, and cooked rice. It is important to avoid sugary cereals or breads with added sugar. Hamsters need protein in their diets, and they do enjoy non-plant-based proteins on occasion. You can give your hamster small pieces of boiled egg to help them achieve their protein needs. It is also important to provide your hamster with fresh water at all times. Some foods that should be avoided include grapes and rhubarb, as these can be poisonous to rodents. Wet or powdered food should only be given if advised by a vet, for example because of dental problems. Most hamsters love leafy greens as a treat in addition to their regular pellet or seed diet.