Preheat the air fryer to 375° F if your air fryer calls for preheating.
Rub the green beans with just enough oil to coat them. Toss with salt and pepper.
Put in the air fryer basket or tray and set to 375 degrees for 8 minutes. Toss halfway through. *Spray basket/tray with a light coat of oil if desired, to further prevent sticking.