Prep the potatoes: Wash and peel if you like. Slice thinly, about 1/8 inch.
A mandoline helps, but a sharp knife works.
Soften the onions: Heat 1 tablespoon olive oil in a pan over medium heat. Cook the sliced onion with a pinch of salt for 5–7 minutes until soft and lightly golden. Set aside.
Make the quick sauce: In a bowl, whisk milk (or milk and sour cream), melted butter, garlic powder, thyme, smoked paprika, 1 teaspoon salt, and several grinds of pepper.
Stir in Parmesan if using.
Grease your dish: Choose an air fryer–safe round or square baking dish that fits your basket. Lightly grease with nonstick spray or a little oil.
Layer one: Add a thin layer of potatoes to cover the bottom. Sprinkle with a pinch of salt and pepper.
Add onions and cheese: Scatter some of the sautéed onions and a small handful of cheese over the potatoes.
Repeat layers: Keep layering potatoes, onions, and cheese until you’re near the top, finishing with potatoes.
Pour the sauce evenly over everything, gently tilting the dish so it settles in.
Top and oil: Add the remaining cheese on top and drizzle with the last tablespoon of olive oil for extra browning.
Air fry: Preheat the air fryer to 350°F (175°C) for 3 minutes. Place the dish in the basket and cook for 25 minutes.
Check and cover if needed: If the top is browning too quickly while the center is not yet tender, loosely cover with foil and continue cooking 10–15 minutes, until a knife slides through easily.
Finish hot and crisp: Remove the foil for the last 3–5 minutes to get a bubbly, golden top. Total time is usually 35–45 minutes, depending on your air fryer and slice thickness.
Rest and serve: Let the pie rest for 10 minutes to set.
Slice into wedges and serve warm.