Preheat the air fryer to 270°F (130°C) for about 5 minutes.
If making hard-boiled eggs, place the eggs directly in the air fryer basket. For soft-boiled eggs, reduce cooking time to 8 minutes. For scrambled eggs, whisk the eggs in a bowl and season with salt and pepper, then pour into a small oven-safe dish that fits in the air fryer.
Cook the eggs in the air fryer for the desired time: Hard-boiled: 10 minutes; Soft-boiled: 8 minutes; Scrambled: 8-10 minutes, stirring halfway.
Once cooked, carefully remove the eggs from the air fryer using tongs.
For hard-boiled eggs, transfer them to an ice bath to cool for a few minutes, then peel and serve.
For soft-boiled eggs, slice the top off and enjoy with a sprinkle of salt and pepper.
For scrambled eggs, let them cool slightly before serving.