Preheat your air fryer to 380°F (193°C) for 3–5 minutes. A hot basket helps vegetables brown better.
Prep the vegetables: Trim the ends off the green beans.
Rinse the mushrooms and pat them very dry. Halve or quarter larger mushrooms so everything is similar in size for even cooking.
Season in a bowl: Toss green beans and mushrooms with olive oil, minced garlic (or garlic powder), salt, pepper, and onion powder if using. Add a small pinch of red pepper flakes for mild heat.
Don’t overcrowd: Add the vegetables to the air fryer basket in a single layer.
If your air fryer is small, cook in two batches for the best sear.
Air fry for 8 minutes, then shake the basket or toss with tongs to move the vegetables around. This helps them brown evenly.
Cook 3–6 minutes more, until green beans are crisp-tender and mushrooms are browned. Total time is usually 11–14 minutes, depending on your air fryer and how well-done you like them.
Finish with brightness: Transfer to a bowl and add lemon zest and a squeeze of juice.
Taste and adjust salt and pepper. For richness, sprinkle with Parmesan or a drizzle of good olive oil.
Optional crunch: Toast nuts in a dry skillet for 2–3 minutes and toss over the top right before serving.