Using a vegetable peeler, peel the bitter melon.
Slice the bitter melon into ¼ inch slices and remove as many seeds as possible (the rest will be easy to remove once cooked).
Add 3 tablespoons of avocado oil to a pan over medium heat. Then add the bitter melon slices and stir-fry for 5 minutes.
Add the spices and mix well. Cover the pan and cook for 5 minutes, checking on it halfway to make sure the vegetable isn’t burning.
Add the remaining 1 tablespoon of avocado oil and the onion, give the pan a good stir then reduce the heat to low-medium heat.
Put the cover back on and cook for 30 minutes, stirring every few minutes, until the onions have caramelized.