Preheat air fryer to 400°F (200°C) for 2–3 minutes.
Place frozen patties or prepared shredded potatoes in the basket in a single layer.
For shredded, spray lightly with oil and season with salt and garlic powder.
Air fry patties for 8–10 minutes, flipping halfway if desired.
For shredded hash browns, cook at 375°F for 10–12 minutes, flipping or stirring at the halfway mark.
Remove when golden and crisp. Serve hot.