Wild hornworms eat a variety of plants, especially crops like tomatoes and tobacco. This wild diet can make them toxic, which is why you should never feed wild-caught hornworms to your pet. However, when hornworms captive-bred, they're raised on a special diet that makes them safe for consumption.
All the food you will need for your hornworms should come with your purchase. If you start to run out of hornworm food, you can buy and prepare more hornworm food so they will stay alive. It's best to only buy as many hornworms as you can feed off in about one week.