In a hot skillet on medium heat, add oil, onions, saute until translucent about 8 minutes, add chilli, garlic ginger paste and salt as per taste and saute for a few minutes more, add coriander, sugar, peanuts and tamarind and mix well until the mixture is warmed through, turn heat off and let it cool