In a large skillet or sauté pan, heat the olive oil over medium heat.
Add onion and garlic and sauté for about 3 minutes, or until softened and fragrant.
Add the artichoke hearts, salt, thyme, basil, oregano, black pepper, tomato paste, and red pepper flakes, if desired, and cook, stirring until heated through.