What can you grow as a houseplant that you can also eat?
What would you eat? If you aren’t going to eat it then why grow it?
How much light do you have?
You may have more light than you think. Note what times of day you get light and for how long. Generally direct sunlight is not required. My Aloe always bleaches out in direct sunlight. All of my plants receive less light than at my previous homes due to my plant room facing East and large trees outside. The plants listed can be grown in more light than as listed but won’t do well in less. The only time I have used artificial lighting is when starting seeds.
If you don’t have much light:
Sweet Potato – vine
Basil – an annual but if you can delay flowering long enough you may be able to keep it around for awhile
Aloe Vera (Yes, it is edible. See Herbs To Grow)
Salvia including Sage and Pineapple Sage
Scented Geranium – rose, lemon, peppermint, and more
Most fruiting plants including
Peppers (yes, they are perennial and are grown as an annual in many climates because they freeze)
Tomatoes – smaller varieties such as patio types would be better for most of us since the plants are smaller. The size of fruit has no relationship to the size of the plant. (perennials same as peppers
Squash (bush style unless you have room for a vining type)
My edible houseplants include three pepper plants, basil, bay, lemon verbena, 2 lemons, 2 grapefruit, ginger, rose geraniums, aloe vera, mint, and microgreens all growing in my East facing room. I put most outside for the summer just because I want to and have done that almost everywhere I have lived. Many edible plants can be grown in pots. Some need to go through a number hours of colder temperatures and so do not work well as houseplants. These include apples, pears, and cherries.