Heat the oil in a medium skillet over medium-high heat. Add onions, tomatoes, garlic, jalapeno, chipotle pepper, salt, ancho, cumin, cayenne powders and Mexican oregano. Cook for 10 minutes, stirring occasionally, until onions soften and the mixture becomes thick and concentrated.
Add the chicken stock, stir to combine and cook for another minute. Remove from heat and stir in cilantro and lime juice.
Using an immersion blender or regular stand blender, carefully blend the mixture until it reaches the consistency you want. A few pulses for a slightly chunky sauce, or you can puree it until it's completely smooth.
Use immediately or store in covered container and refrigerate for 1 week.