Finely chop the onion and mince the garlic. Measure the flour, vegetable broth, soy sauce, and seasonings before beginning. Having everything ready makes the cooking process quick and easy.
Heat the olive oil or vegan butter in a medium saucepan over medium heat. Add the chopped onion and cook for 3–4 minutes, stirring occasionally, until softened and lightly golden. This step builds the gravy's savory foundation.
Stir in the minced garlic and cook for approximately 30 seconds. Keep stirring and avoid browning the garlic too much, as burnt garlic can make the gravy taste bitter.
Sprinkle the flour over the onion and garlic mixture. Stir continuously for 1–2 minutes until the flour is fully coated in the oil and begins to smell slightly toasted. This mixture will help thicken the gravy.
Slowly pour in the vegetable broth while whisking continuously. Add it gradually at first to prevent lumps from forming, then pour in the remaining broth. Keep whisking until the mixture becomes smooth.
Stir in the soy sauce, nutritional yeast, onion powder, dried thyme, and black pepper. Taste before adding salt because both the broth and soy sauce may already contain plenty of sodium.
Reduce the heat to medium-low and simmer for 4–6 minutes, stirring frequently. The gravy should gradually thicken and coat the back of a spoon. If it becomes too thick, whisk in a little extra vegetable broth.
Taste the gravy and adjust the seasoning as needed. For an extra-smooth texture, carefully blend it with an immersion blender or strain it through a fine-mesh sieve. Serve hot over mashed potatoes, roasted vegetables, biscuits, or your favorite vegan main dish.