In a blender, add in garlic cloves, lemongrass, ginger, galangal, red onion, yellow onion, candlenuts and water (all ingredients marked *). Blend into a fine paste and set aside.
Cooking rendang
In a pot heat some sunflower oil on medium heat. Brown the chicken thighs in batches. Remove and set aside.
In the same pot, add in star anise, cinnamon stick, cardamom pods, cloves and bruised lemongrass. Cook for a few minutes until they release their fragrances. Add in previously blended base paste, curry powder, chili powder and turmeric powder. Mix everything together and cook on low heat for 15-20 minutes until it thickens, stir frequently.
Add in previously browned chicken and mix everything together. Add in water, give it a good stir. Bring to a simmer and cook for 25 minutes or until the chicken is fully cooked, use low heat, stir now and then.
Add in brown sugar, salt, roasted coconut paste, squeezed tamarind juice, coconut milk, kefir lime leaves and mix everything together. Bring to a simmer and cook for 20 minutes until the sauce thickens and the oil separates. Use low heat, stir now and then. Ready to serve.
Notes
Give time to your rendang, cook it slowly and you will see it's worth it.
Candlenuts are used as thickening agent. You can substitute them by using cashew nuts, doubling the amount.