Cut the avocado in half and remove the pit.
Scoop out some of the avocado flesh to make space for the egg.
Crack an egg and place it into the hollowed-out space in the avocado.
Season with salt and black pepper.
Bake in an air fryer or oven at 180°C (356°F) for 12 minutes.