Preheat the air fryer: Set it to 375°F (190°C).
Preheating helps the onions brown more evenly.
Prep the onions: Peel the papery outer layers and trim just the root fuzz without cutting through the base. Slice about 1/4 inch off the top so you have a flat surface.
Score for flavor: Make a deep “X” cut on the top of each onion, going about two-thirds of the way down. This helps the butter and seasoning sink in.
Season: Rub each onion with butter or drizzle with olive oil.
Sprinkle with salt, pepper, garlic powder, and herbs if using. Press a little butter into the top cuts for extra richness.
Air fry: Place onions upright in the basket, leaving space between them. Cook for 30–40 minutes, depending on size.
They’re done when a knife slides in easily and the tops are browned.
Finish: Drizzle with balsamic vinegar or a squeeze of lemon while hot. Let them rest for 5 minutes so the juices settle.
Serve: Spoon the soft layers apart and garnish with fresh herbs. Serve as a side, or slice and pile over steak, burgers, grains, or roasted veggies.