Using the sauté function, heat the ghee and the coconut oil in the pressure cooker.
Stir in the onions and cook, stirring often to encourage even browning, until they are caramelized, 12 to 18 minutes.
Stir in the garlic, ginger, and cumin seeds; cook until fragrant, about 2 minutes.
Stir in the cinnamon and cardamom and cook for another minute.
Then stir in the coriander, salt, turmeric, red pepper flakes, black pepper, and finally the tomato puree.