Feeding your hamster a basic staple diet of commercial dry seeds or pellets will provide the main part of its diet. ... Alfalfa should also be added to a hamster's diet. Not only does it help the digestive process by supplying roughage, but hamsters will also use it as a good healthy nesting material.