Heat the oil in a medium saucepan over medium heat. Add the onions, chipotles, ginger, garlic, and salt and cook, stirring occasionally, until lightly caramelized and translucent, about 10 minutes.
Add the tomato paste, fenugreek seeds, cayenne, paprika, and brown sugar and cook, stirring, for 1 to 2 minutes to allow the spices to bloom. Stir in the apple cider and red wine vinegars, scraping the bottom of the pot.
Add the tomato puree and bring to a low simmer, stirring frequently. Reduce the heat to low and maintain a gentle simmer.
Cook for 45 minutes, stirring occasionally.
Remove from the heat and blend with an immersion blender until smooth. (Alternatively, blend in a regular blender.) Transfer to an airtight container and refrigerate for up to 2 weeks.