Soften the garlic: Put the peeled cloves in a small ovenproof dish and cover with olive oil. Cover with foil and bake at 325°F (160°C; 140°C fan) for 45 to 60 minutes, checking from 40 minutes. For the stovetop, use a small saucepan over very low heat for about 40 to 50 minutes, stirring occasionally. The oil should barely bubble, and the cloves should crush easily. Lift out the cloves with a slotted spoon and measure the garlic oil listed under For the pasta.
Cook the spaghetti: When the garlic is nearly ready, cook the spaghetti in salted water until al dente, following the package timing. Reserve the amount of cooking water listed in the ingredients before draining.
Make the garlic butter: In a large bowl, mash the warm cloves with the softened vegan butter and the measured garlic oil. Stir in the vegan Parmesan, parsley, thyme, oregano, chili flakes and black pepper.
Loosen the sauce: Gradually mix in about one quarter of the reserved hot pasta water until the butter melts and the mixture looks creamy.
Toss and serve: Immediately add the hot spaghetti and toss well. Add more pasta water a tablespoon at a time until the sauce coats the strands. Taste for salt and serve with extra vegan Parmesan, parsley and chili flakes.
