Melt the ghee in a large pot over medium heat. Once melted, add the onion. Cover the pot and sweat until onions are soft.
Turn the heat back up to medium and add the ginger, garlic, chilies to the onion and sauté for about 30 seconds.
Toss the apples into the pot and sauté for two minutes. Add the eggplant, reduce the heat, and cover the pot once more. Keep covered until both are soft (about 10 minutes), check and stir periodically. During this time, measure out your spices into a ramekin or small bowl.
Add the carrots and celery to the pot, increase heat to medium and sauté five minutes, then mix in the spices. Once fragrant, add the broth and lentils.
Bring the broth to a bowl, then reduce slightly and simmer for 10 minutes. Add in the green beans and simmer for an additional 5 minutes.
Stir in the coconut milk along with the kuzu and water slurry.
If using, stir in the agave, then add the rice. Once the rice is thoroughly heated (if it wasn’t hot when added), the soup is ready to serve.