In a skillet, heat olive oil over medium heat, then sauté onion and carrot. Season with spices, salt, and pepper, and cook until softened. Add garlic and cook for another 30 seconds.
2 tablespoon olive oil, ¾ cup yellow onion, ½ cup carrot, 1 teaspoon salt, 1 teaspoon minced garlic, ¼ teaspoon black pepper, ⅛ teaspoon red pepper flakes, 1 teaspoon ground smoked paprika